pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/eterm x11/eterm: Fix for graphics/imlib2 update



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6e61087c6de9
branches:  trunk
changeset: 382465:6e61087c6de9
user:      rin <rin%pkgsrc.org@localhost>
date:      Fri Jul 29 06:05:49 2022 +0000

description:
x11/eterm: Fix for graphics/imlib2 update

imlib_strerror() has been introduced to imlib2; mangle local version.

Bump revision.

diffstat:

 x11/eterm/Makefile                   |   4 ++--
 x11/eterm/distinfo                   |   4 +++-
 x11/eterm/patches/patch-src_pixmap.c |  33 +++++++++++++++++++++++++++++++++
 x11/eterm/patches/patch-src_pixmap.h |  15 +++++++++++++++
 4 files changed, 53 insertions(+), 3 deletions(-)

diffs (87 lines):

diff -r 497b6aca66be -r 6e61087c6de9 x11/eterm/Makefile
--- a/x11/eterm/Makefile        Fri Jul 29 06:04:25 2022 +0000
+++ b/x11/eterm/Makefile        Fri Jul 29 06:05:49 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.88 2022/06/28 11:37:52 wiz Exp $
+# $NetBSD: Makefile,v 1.89 2022/07/29 06:05:49 rin Exp $
 
 DISTNAME=      Eterm-0.9.6
 PKGNAME=       ${DISTNAME:S/^E/e/}
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    x11
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=eterm/}
 DISTFILES=     ${DEFAULT_DISTFILES} ${PIXMAP_FILES}
diff -r 497b6aca66be -r 6e61087c6de9 x11/eterm/distinfo
--- a/x11/eterm/distinfo        Fri Jul 29 06:04:25 2022 +0000
+++ b/x11/eterm/distinfo        Fri Jul 29 06:05:49 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2021/10/26 11:33:48 nia Exp $
+$NetBSD: distinfo,v 1.27 2022/07/29 06:05:49 rin Exp $
 
 BLAKE2s (Eterm-0.9.6.tar.gz) = 6f7b2d8dc741929ad4b8f93fa257cd6ae22ac7d68012b2d04da9d27316b70715
 SHA512 (Eterm-0.9.6.tar.gz) = 07ef5587b7c8444d49ffd6f20f09c98bd248ccee9b3de311f5705961579f707c4a8e2b69a2193500b75cc1e4bdeabb711a1dd23637d6b94433508d8a93d377fe
@@ -11,5 +11,7 @@
 SHA1 (patch-ai) = 1f1a050c27b042c5cccff91aae4ced7b887b68b1
 SHA1 (patch-src_Makefile.in) = 3000a407bed7d7c23bfc127fd09b0723d9c0b395
 SHA1 (patch-src_command.c) = 0b5b3dbde8eba16b1690155a28764ec7ea0f6bff
+SHA1 (patch-src_pixmap.c) = 4894169d1f23c6e8de09fc53a9fc2b242b0e8f36
+SHA1 (patch-src_pixmap.h) = 5ade255a6a6d8d8c423eacc3057b9e1ee89c9bf4
 SHA1 (patch-src_screen.c) = f820501e3a67cfc59dedd1dd5e3eb6f06ae2be23
 SHA1 (patch-src_term.c) = 45b1fecdb9b0f726f4ce5c001c27cc20340cd687
diff -r 497b6aca66be -r 6e61087c6de9 x11/eterm/patches/patch-src_pixmap.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/eterm/patches/patch-src_pixmap.c      Fri Jul 29 06:05:49 2022 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_pixmap.c,v 1.1 2022/07/29 06:05:49 rin Exp $
+
+imlib_strerror() has been introduced to imlib2; mangle local version.
+
+--- src/pixmap.c.orig  2022-07-29 02:12:11.471134723 +0900
++++ src/pixmap.c       2022-07-29 02:12:47.891883811 +0900
+@@ -172,7 +172,7 @@ image_mode_any(unsigned char mode)
+ 
+ #ifdef PIXMAP_SUPPORT
+ const char *
+-imlib_strerror(Imlib_Load_Error err)
++eterm_imlib_strerror(Imlib_Load_Error err)
+ {
+     switch (err) {
+         case IMLIB_LOAD_ERROR_NONE:
+@@ -1447,7 +1447,7 @@ load_image(const char *file, simage_t *s
+         if (f) {
+             im = imlib_load_image_with_error_return(f, &im_err);
+             if (!im) {
+-                libast_print_error("Unable to load image file \"%s\" -- %s\n", file, imlib_strerror(im_err));
++                libast_print_error("Unable to load image file \"%s\" -- %s\n", file, eterm_imlib_strerror(im_err));
+                 return 0;
+             } else {
+                 reset_simage(simg, (RESET_IMLIB_IM | RESET_PMAP_PIXMAP | RESET_PMAP_MASK));
+@@ -2178,7 +2178,7 @@ set_icon_pixmap(char *filename, XWMHints
+ 
+             temp_im = imlib_load_image_with_error_return(icon_path, &im_err);
+             if (!temp_im) {
+-                libast_print_error("Unable to load icon file \"%s\" -- %s\n", icon_path, imlib_strerror(im_err));
++                libast_print_error("Unable to load icon file \"%s\" -- %s\n", icon_path, eterm_imlib_strerror(im_err));
+             } else {
+                 /* If we're going to render the image anyway, might as well be nice and give it to the WM in a size it likes. */
+                 if (XGetIconSizes(Xdisplay, Xroot, &icon_sizes, &count)) {
diff -r 497b6aca66be -r 6e61087c6de9 x11/eterm/patches/patch-src_pixmap.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/eterm/patches/patch-src_pixmap.h      Fri Jul 29 06:05:49 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_pixmap.h,v 1.1 2022/07/29 06:05:49 rin Exp $
+
+imlib_strerror() has been introduced to imlib2; mangle local version.
+
+--- src/pixmap.h.orig  2022-07-29 04:41:21.385340371 +0900
++++ src/pixmap.h       2022-07-29 04:41:31.374499903 +0900
+@@ -221,7 +221,7 @@ _XFUNCPROTOBEGIN
+ extern const char *get_image_type(unsigned char);
+ extern unsigned char image_mode_any(unsigned char);
+ #ifdef PIXMAP_SUPPORT
+-extern const char *imlib_strerror(Imlib_Load_Error);
++extern const char *eterm_imlib_strerror(Imlib_Load_Error);
+ extern unsigned short parse_pixmap_ops(char *);
+ extern unsigned short set_pixmap_scale(const char *, pixmap_t *);
+ extern unsigned char check_image_ipc(unsigned char);



Home | Main Index | Thread Index | Old Index