pkgsrc-Changes archive

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

CVS commit: pkgsrc/wm/afterstep



Module Name:    pkgsrc
Committed By:   joerg
Date:           Fri Jul 14 12:52:49 UTC 2017

Modified Files:
        pkgsrc/wm/afterstep: distinfo
Added Files:
        pkgsrc/wm/afterstep/patches: patch-libAfterBase_selfdiag.c
            patch-libAfterStep_colorscheme.c

Log Message:
Fix unused function to at least compile on NetBSD. Fix C99 inline use.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/wm/afterstep/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/wm/afterstep/patches/patch-libAfterBase_selfdiag.c \
    pkgsrc/wm/afterstep/patches/patch-libAfterStep_colorscheme.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/wm/afterstep/distinfo
diff -u pkgsrc/wm/afterstep/distinfo:1.21 pkgsrc/wm/afterstep/distinfo:1.22
--- pkgsrc/wm/afterstep/distinfo:1.21   Sun May  1 19:30:58 2016
+++ pkgsrc/wm/afterstep/distinfo        Fri Jul 14 12:52:49 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2016/05/01 19:30:58 dholland Exp $
+$NetBSD: distinfo,v 1.22 2017/07/14 12:52:49 joerg Exp $
 
 SHA1 (AfterStep-2.2.11.tar.bz2) = ecfd815b659046281530441af0bc4fc42900d0da
 RMD160 (AfterStep-2.2.11.tar.bz2) = a82a4b3fddcbcd97862212669c11d14629e51a4d
@@ -13,12 +13,14 @@ SHA1 (patch-libAfterBase_asvector.h) = f
 SHA1 (patch-libAfterBase_output.c) = fe0d9b4cbe3c2d1eac50e4c4c0d6fbd3b8b7487f
 SHA1 (patch-libAfterBase_parse.c) = aba8ed0b11821ed09ded8833140c250abf6ea6da
 SHA1 (patch-libAfterBase_parse.h) = 5e2e0a1b3351f7d3b7d84076879e3827d47e3f24
+SHA1 (patch-libAfterBase_selfdiag.c) = 72fa80bb37f8c73bcf27eb9c0a7b65af561d2e96
 SHA1 (patch-libAfterConf_Color.c) = 346f16a2ea539cb0ff352b73ba1f60d522efea00
 SHA1 (patch-libAfterConf_DesktopEntry.c) = 57b8ff21093434434711d05ad2054c1415de0ca3
 SHA1 (patch-libAfterImage_asfont.c) = 4fd6498495855c2909530ac5e34accb715b48497
 SHA1 (patch-libAfterImage_export.c) = 0b450561673cb3351c2f8685ba7357cc6a1de366
 SHA1 (patch-libAfterImage_import.c) = 57fdfec498ba05aa6d52470c545d1c9958095435
 SHA1 (patch-libAfterStep_asapp.c) = 3d23d40b862aca272aac3e35574f6bf99cbc8e0a
+SHA1 (patch-libAfterStep_colorscheme.c) = cb5c06e36016d198c3508dfbec1d0743231cc7eb
 SHA1 (patch-libAfterStep_font.c) = e47477b5d0a0b54af19d603eb37937dbfa24dd19
 SHA1 (patch-libAfterStep_freestor.c) = e66249ff9edc2f7441e406aa34db923420b201d6
 SHA1 (patch-libAfterStep_functions.c) = a01482b2eff7d659afc98aa028191cca65465d0b

Added files:

Index: pkgsrc/wm/afterstep/patches/patch-libAfterBase_selfdiag.c
diff -u /dev/null pkgsrc/wm/afterstep/patches/patch-libAfterBase_selfdiag.c:1.1
--- /dev/null   Fri Jul 14 12:52:49 2017
+++ pkgsrc/wm/afterstep/patches/patch-libAfterBase_selfdiag.c   Fri Jul 14 12:52:49 2017
@@ -0,0 +1,31 @@
+$NetBSD: patch-libAfterBase_selfdiag.c,v 1.1 2017/07/14 12:52:49 joerg Exp $
+
+Provide something at least sensible, even though the function seems to be
+unused.
+
+--- libAfterBase/selfdiag.c.orig       2017-07-12 21:29:50.328824882 +0000
++++ libAfterBase/selfdiag.c
+@@ -52,6 +52,9 @@
+ 
+ #ifdef HAVE_ELF_H
+ # include <elf.h>
++# ifdef __NetBSD__
++# include <dlfcn.h>
++# endif
+ #endif
+ 
+ #include <signal.h>
+@@ -97,6 +100,13 @@ get_proc_tables (proc_tables * ptabs)
+ # if (defined(HAVE_ELF32_DYN_D_TAG) || defined(HAVE_ELF64_DYN_D_TAG)) && HAVE_DECL_ELFW
+       ElfW (Dyn) * dyn;
+ 
++# ifdef __NetBSD__
++      const struct link_map *map;
++      if (dlinfo(RTLD_SELF, RTLD_DI_LINKMAP, &map))
++              return;
++      void *_DYNAMIC = map->l_ld;
++#endif
++
+       memset (ptabs, 0x00, sizeof (proc_tables));
+       for (dyn = _DYNAMIC; dyn != NULL && dyn->d_tag != DT_NULL; ++dyn)
+               switch (dyn->d_tag)
Index: pkgsrc/wm/afterstep/patches/patch-libAfterStep_colorscheme.c
diff -u /dev/null pkgsrc/wm/afterstep/patches/patch-libAfterStep_colorscheme.c:1.1
--- /dev/null   Fri Jul 14 12:52:49 2017
+++ pkgsrc/wm/afterstep/patches/patch-libAfterStep_colorscheme.c        Fri Jul 14 12:52:49 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-libAfterStep_colorscheme.c,v 1.1 2017/07/14 12:52:49 joerg Exp $
+
+Fix build with C99 inline.
+
+--- libAfterStep/colorscheme.c.orig    2017-07-12 21:35:22.546616813 +0000
++++ libAfterStep/colorscheme.c
+@@ -122,7 +122,7 @@ compare_color_lightness( ARGB32 c1, ARGB
+       return ASCS_BLACK_O_WHITE_CRITERIA16_VAL( red1, green1, blue1 )-ASCS_BLACK_O_WHITE_CRITERIA16_VAL( red2, green2, blue2 );
+ }
+ 
+-inline void
++static inline void
+ make_grad_argb( ASColorScheme *cs, int id,  ARGB32 base_alpha16, int hue360, int sat100, int val100, Bool base )
+ {
+       int dark_val = val100-ASCS_GRADIENT_BRIGHTNESS_OFFSET ;



Home | Main Index | Thread Index | Old Index