Add support for kqueue by using the patches written by Dmitry Matveev during the Google Summer of Code 2011 program. Congratulations, Dmitry! :-) This comes in the form of a new 'kqueue' build-time option. This should NOT be an option, but it is for two reasons: - I consider this still experimental for it to be enabled on everyone's machines, and the code is not "official". - The patch requires us to run automake/autoconf during the pre-configure stage, and I don't want to add these dependencies on the default package build. When these patches get integrated upstream, we can get rid of the option altogether. Also note that I had to backport some of our custom changes to Makefile.in files and some to configure to the original Makefile.am files and configure.ac. This is to prevent our custom patches from being lost during the automake/autoconf invocations we now do when 'kqueue' is enabled. Bump PKGREVISION to 1.diff -r1.186 -r1.187 pkgsrc/devel/glib2/Makefile
(jmmv)
@@ -1,16 +1,19 @@ | @@ -1,16 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.186 2011/08/04 23:52:04 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.187 2011/10/09 19:40:02 jmmv Exp $ | |
2 | 2 | |||
3 | .include "Makefile.common" | 3 | .include "Makefile.common" | |
4 | .include "options.mk" | |||
5 | ||||
6 | PKGREVISION= 1 | |||
4 | 7 | |||
5 | CATEGORIES= devel | 8 | CATEGORIES= devel | |
6 | 9 | |||
7 | COMMENT= Some useful routines for C programming (glib2) | 10 | COMMENT= Some useful routines for C programming (glib2) | |
8 | 11 | |||
9 | USE_TOOLS+= msgfmt perl:run | 12 | USE_TOOLS+= msgfmt perl:run | |
10 | 13 | |||
11 | PKGCONFIG_OVERRIDE= glib-2.0-uninstalled.pc.in | 14 | PKGCONFIG_OVERRIDE= glib-2.0-uninstalled.pc.in | |
12 | PKGCONFIG_OVERRIDE+= glib-2.0.pc.in | 15 | PKGCONFIG_OVERRIDE+= glib-2.0.pc.in | |
13 | PKGCONFIG_OVERRIDE+= gmodule-2.0-uninstalled.pc.in | 16 | PKGCONFIG_OVERRIDE+= gmodule-2.0-uninstalled.pc.in | |
14 | PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in | 17 | PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in | |
15 | PKGCONFIG_OVERRIDE+= gmodule-export-2.0.pc.in | 18 | PKGCONFIG_OVERRIDE+= gmodule-export-2.0.pc.in | |
16 | PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0-uninstalled.pc.in | 19 | PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0-uninstalled.pc.in |
@@ -1,31 +1,38 @@ | @@ -1,31 +1,38 @@ | |||
1 | $NetBSD: distinfo,v 1.153 2011/06/09 11:16:38 drochner Exp $ | 1 | $NetBSD: distinfo,v 1.154 2011/10/09 19:40:02 jmmv Exp $ | |
2 | 2 | |||
3 | SHA1 (glib-2.28.8.tar.bz2) = 20cd63705a8805260da0320c65b979233f2e3c18 | 3 | SHA1 (glib-2.28.8.tar.bz2) = 20cd63705a8805260da0320c65b979233f2e3c18 | |
4 | RMD160 (glib-2.28.8.tar.bz2) = f087a71445eb40fae5eab45a14cb74d4e239d5e6 | 4 | RMD160 (glib-2.28.8.tar.bz2) = f087a71445eb40fae5eab45a14cb74d4e239d5e6 | |
5 | Size (glib-2.28.8.tar.bz2) = 7017806 bytes | 5 | Size (glib-2.28.8.tar.bz2) = 7017806 bytes | |
6 | SHA1 (glib-gio-kqueue-2.28.8-v0.patch) = 2705a9da3aa87cf3ef15e4288adb1367462ff012 | |||
7 | RMD160 (glib-gio-kqueue-2.28.8-v0.patch) = ebd7c05b2b6adde972c15476a728eb4a98b19969 | |||
8 | Size (glib-gio-kqueue-2.28.8-v0.patch) = 58453 bytes | |||
6 | SHA1 (patch-aa) = 44a3cc4b457ea75a3516d5c49155a3720bde515f | 9 | SHA1 (patch-aa) = 44a3cc4b457ea75a3516d5c49155a3720bde515f | |
7 | SHA1 (patch-ab) = 757cfd7f686d3e3147d13f530d1c85c7835bf762 | 10 | SHA1 (patch-ab) = 757cfd7f686d3e3147d13f530d1c85c7835bf762 | |
8 | SHA1 (patch-ac) = 96e153339675457356f71e35d20375bed669d337 | 11 | SHA1 (patch-ac) = 96e153339675457356f71e35d20375bed669d337 | |
9 | SHA1 (patch-ad) = c926d96bdc9ddf4f434fc57af0adbe11002cffc3 | 12 | SHA1 (patch-ad) = c926d96bdc9ddf4f434fc57af0adbe11002cffc3 | |
10 | SHA1 (patch-ae) = 09f16e8e14bdea3ee0e478d335f65cb66939e5f5 | 13 | SHA1 (patch-ae) = 09f16e8e14bdea3ee0e478d335f65cb66939e5f5 | |
11 | SHA1 (patch-af) = 4db7dff19ba34d5a204c12c0c410415fcb077f20 | 14 | SHA1 (patch-af) = 4db7dff19ba34d5a204c12c0c410415fcb077f20 | |
12 | SHA1 (patch-ag) = 65e50668eb909353210152ef54dfea923740179b | 15 | SHA1 (patch-ag) = 65e50668eb909353210152ef54dfea923740179b | |
13 | SHA1 (patch-ah) = 239dc3d0734424a7cafc5dd8d8381768cba2d23e | 16 | SHA1 (patch-ah) = 239dc3d0734424a7cafc5dd8d8381768cba2d23e | |
14 | SHA1 (patch-ai) = ff1963c05cf82059de692cd5bf08872544297b7f | 17 | SHA1 (patch-ai) = ff1963c05cf82059de692cd5bf08872544297b7f | |
15 | SHA1 (patch-aj) = 9e5a7ccf081e3ebdf7888a67b027b696f632177c | 18 | SHA1 (patch-aj) = 9e5a7ccf081e3ebdf7888a67b027b696f632177c | |
16 | SHA1 (patch-ak) = 718dad5f27cb8254d84d6f8007a96b33e7c4a435 | 19 | SHA1 (patch-ak) = 29a2adc7d7cd41a28ecad039cb5f46be5e9df974 | |
17 | SHA1 (patch-al) = bde29693322c568f9a4ad090f1d469de5f69920e | 20 | SHA1 (patch-al) = bde29693322c568f9a4ad090f1d469de5f69920e | |
18 | SHA1 (patch-am) = 062d3d295f00485ac3c3839dd4697957ebc66772 | 21 | SHA1 (patch-am) = 062d3d295f00485ac3c3839dd4697957ebc66772 | |
19 | SHA1 (patch-an) = dd136645f7555f3600562b055cdcb4f60b41ae78 | 22 | SHA1 (patch-an) = dd136645f7555f3600562b055cdcb4f60b41ae78 | |
20 | SHA1 (patch-ap) = 3df3c29373efb491d1b0e96d57a192b1b30f2cfa | 23 | SHA1 (patch-ap) = 3df3c29373efb491d1b0e96d57a192b1b30f2cfa | |
21 | SHA1 (patch-aq) = aa7087b91c7d0eca9f9895feb6924df95eccb372 | 24 | SHA1 (patch-aq) = aa7087b91c7d0eca9f9895feb6924df95eccb372 | |
22 | SHA1 (patch-ba) = b235c2037bce84e0cdd9c87abaac274550ec0c95 | 25 | SHA1 (patch-ba) = b235c2037bce84e0cdd9c87abaac274550ec0c95 | |
23 | SHA1 (patch-cb) = 0f084c33fb67fbb8e12448034450699da26289ff | 26 | SHA1 (patch-cb) = 0f084c33fb67fbb8e12448034450699da26289ff | |
24 | SHA1 (patch-cc) = dd73079b727bca9013465204dc3b53b76a280e54 | 27 | SHA1 (patch-cc) = dd73079b727bca9013465204dc3b53b76a280e54 | |
25 | SHA1 (patch-cd) = d1c6fa921be58469adb6b860f4e91f0a7eff067e | 28 | SHA1 (patch-cd) = d1c6fa921be58469adb6b860f4e91f0a7eff067e | |
26 | SHA1 (patch-ce) = 7192ae3bbf27ff92287a66ee090baa80a12cdc79 | 29 | SHA1 (patch-ce) = 7192ae3bbf27ff92287a66ee090baa80a12cdc79 | |
27 | SHA1 (patch-cf) = 41ed2146e19cf088456795d4f0e8dc4af4368e44 | 30 | SHA1 (patch-cf) = 41ed2146e19cf088456795d4f0e8dc4af4368e44 | |
28 | SHA1 (patch-cg) = f65c5a23102d3dee12bee68bd126385b3c3fe632 | 31 | SHA1 (patch-cg) = f65c5a23102d3dee12bee68bd126385b3c3fe632 | |
29 | SHA1 (patch-ch) = df8444835b9954f902936c8b6fab5b44ac350db0 | 32 | SHA1 (patch-ch) = df8444835b9954f902936c8b6fab5b44ac350db0 | |
30 | SHA1 (patch-ci) = f0191fd416222617a2e95e95a05c3dcf6b6ce2d2 | 33 | SHA1 (patch-ci) = f0191fd416222617a2e95e95a05c3dcf6b6ce2d2 | |
31 | SHA1 (patch-cj) = ef6b6ec1986990df096b342cfd8e9513e42671df | 34 | SHA1 (patch-cj) = ef6b6ec1986990df096b342cfd8e9513e42671df | |
35 | SHA1 (patch-ck) = 324116cc6fb8dbce8ce8d20f5b237fc469a55cd2 | |||
36 | SHA1 (patch-cl) = a78266f135dc08e1f4710370c19cc820a6da7eb8 | |||
37 | SHA1 (patch-cm) = 8ddac97b3476c992abea3e5d9383cd3a5c9008f3 | |||
38 | SHA1 (patch-cn) = b930dc95d44eacc9448f2a3a799a95db2880bfd4 |
# $NetBSD: options.mk,v 1.8 2011/10/09 19:40:02 jmmv Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.glib2
PKG_SUPPORTED_OPTIONS= kqueue
PKG_SUGGESTED_OPTIONS= # empty
# We really should be doing this by default. However, the kqueue patch is not
# official, needs some more testing and, due to the way it is written, forces
# us to run autoconf. If the code gets integrated upstream, there is no reason
# for us to provide a 'kqueue' option here and it should just go away.
#
#.if exists(/usr/include/sys/event.h)
#PKG_SUGGESTED_OPTIONS+= kqueue
#.endif
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
.if $(PKG_OPTIONS:Mkqueue)
PATCH_SITES= http://dmitrymatveev.co.uk/files/
PATCHFILES= glib-gio-kqueue-2.28.8-v0.patch
PATCH_DIST_STRIP= -p0
USE_TOOLS+= automake autoconf
pre-configure: regen-autotools
regen-autotools:
cd ${WRKSRC} && automake
cd ${WRKSRC} && autoconf
.endif
@@ -1,77 +1,71 @@ | @@ -1,77 +1,71 @@ | |||
1 | $NetBSD: patch-ak,v 1.7 2010/11/02 14:52:24 drochner Exp $ | 1 | $NetBSD: patch-ak,v 1.8 2011/10/09 19:40:02 jmmv Exp $ | |
2 | 2 | |||
3 | --- configure.ac.orig 2010-05-02 23:58:58.000000000 +0000 | 3 | --- configure.ac.orig 2011-06-05 19:18:49.000000000 -0400 | |
4 | +++ configure.ac | 4 | +++ configure.ac 2011-10-08 23:50:38.000000000 -0400 | |
5 | @@ -846,7 +846,7 @@ int main (int argc, char **argv) | 5 | @@ -825,7 +825,7 @@ int main (int argc, char **argv) | |
6 | AC_MSG_RESULT($g_have_gnuc_visibility) | 6 | AC_MSG_RESULT($g_have_gnuc_visibility) | |
7 | AM_CONDITIONAL(HAVE_GNUC_VISIBILITY, [test x$g_have_gnuc_visibility = xyes]) | 7 | AM_CONDITIONAL(HAVE_GNUC_VISIBILITY, [test x$g_have_gnuc_visibility = xyes]) | |
8 | 8 | |||
9 | -AC_MSG_CHECKING([whether using Sun Studio C compiler]) | 9 | -AC_MSG_CHECKING([whether using Sun Studio C compiler]) | |
10 | +AC_MSG_CHECKING([whether using Sun Studio C compiler visibilily]) | 10 | +AC_MSG_CHECKING([whether using Sun Studio C compiler visibilily]) | |
11 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550) | 11 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550) | |
12 | #else | 12 | #else | |
13 | # include "error: this is not Sun Studio." | 13 | # include "error: this is not Sun Studio." | |
14 | @@ -1043,10 +1043,22 @@ fi | 14 | @@ -1023,8 +1023,20 @@ fi | |
15 | 15 | |||
16 | case $host in | 16 | case $host in | |
17 | *-*-solaris* ) | 17 | *-*-solaris* ) | |
18 | - AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) | |||
19 | - AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris) | |||
20 | - AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) | |||
21 | - ;; | |||
22 | + AC_MSG_CHECKING([whether using Sun Studio C compiler with C99]) | 18 | + AC_MSG_CHECKING([whether using Sun Studio C compiler with C99]) | |
23 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if defined(__STDC_VERSION__) || (__STDC_VERSION__ - 0 >= 199901L) | 19 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if defined(__STDC_VERSION__) || (__STDC_VERSION__ - 0 >= 199901L) | |
24 | +#else | 20 | +#else | |
25 | +# include "error: this is STD C99." | 21 | +# include "error: this is STD C99." | |
26 | +#endif | 22 | +#endif | |
27 | + ]], [[]])], [ g_have_sunstudio_c99=yes ], [ g_have_sunstudio_c99=no ]) | 23 | + ]], [[]])], [ g_have_sunstudio_c99=yes ], [ g_have_sunstudio_c99=no ]) | |
28 | + AC_MSG_RESULT($g_have_sunstudio_c99) | 24 | + AC_MSG_RESULT($g_have_sunstudio_c99) | |
29 | + if test $g_have_sunstudio_c99 = yes; then | 25 | + if test $g_have_sunstudio_c99 = yes; then | |
30 | + AC_DEFINE(_XOPEN_SOURCE, 600, Needed to get declarations for msg_control and msg_controllen on Solaris) | 26 | + AC_DEFINE(_XOPEN_SOURCE, 600, Needed to get declarations for msg_control and msg_controllen on Solaris) | |
31 | + else | 27 | + else | |
32 | + AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) | 28 | AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) | |
33 | + AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris) | 29 | AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris) | |
34 | + fi | 30 | + fi | |
35 | + | 31 | + | |
36 | + AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) | 32 | AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) | |
37 | + ;; | 33 | ;; | |
38 | esac | 34 | esac | |
39 | 35 | @@ -1379,11 +1391,12 @@ if test x"$glib_native_win32" = xyes; th | ||
40 | dnl | |||
41 | @@ -1399,11 +1411,12 @@ if test x"$glib_native_win32" = xyes; th | |||
42 | G_MODULE_LDFLAGS= | 36 | G_MODULE_LDFLAGS= | |
43 | else | 37 | else | |
44 | export SED | 38 | export SED | |
45 | - G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` | 39 | - G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` | |
46 | + G_MODULE_LDFLAGS=`(libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` | 40 | + G_MODULE_LDFLAGS=`(libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` | |
47 | fi | 41 | fi | |
48 | dnl G_MODULE_IMPL= don't reset, so cmd-line can override | 42 | dnl G_MODULE_IMPL= don't reset, so cmd-line can override | |
49 | G_MODULE_NEED_USCORE=0 | 43 | G_MODULE_NEED_USCORE=0 | |
50 | G_MODULE_BROKEN_RTLD_GLOBAL=0 | 44 | G_MODULE_BROKEN_RTLD_GLOBAL=0 | |
51 | +G_MODULE_BROKEN_DLOPEN_NULL=0 | 45 | +G_MODULE_BROKEN_DLOPEN_NULL=0 | |
52 | G_MODULE_HAVE_DLERROR=0 | 46 | G_MODULE_HAVE_DLERROR=0 | |
53 | dnl *** force native WIN32 shared lib loader | 47 | dnl *** force native WIN32 shared lib loader | |
54 | if test -z "$G_MODULE_IMPL"; then | 48 | if test -z "$G_MODULE_IMPL"; then | |
55 | @@ -1464,7 +1477,7 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMP | 49 | @@ -1444,7 +1457,7 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMP | |
56 | LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS" | 50 | LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS" | |
57 | dnl *** check for OSF1/5.0 RTLD_GLOBAL brokenness | 51 | dnl *** check for OSF1/5.0 RTLD_GLOBAL brokenness | |
58 | echo "void glib_plugin_test(void) { }" > plugin.c | 52 | echo "void glib_plugin_test(void) { }" > plugin.c | |
59 | - ${SHELL} ./libtool --mode=compile ${CC} -shared \ | 53 | - ${SHELL} ./libtool --mode=compile ${CC} -shared \ | |
60 | + ${SHELL} libtool --mode=compile ${CC} -shared \ | 54 | + ${SHELL} libtool --mode=compile ${CC} -shared \ | |
61 | -export-dynamic -o plugin.o plugin.c 2>&1 >/dev/null | 55 | -export-dynamic -o plugin.o plugin.c 2>&1 >/dev/null | |
62 | AC_CACHE_CHECK([for RTLD_GLOBAL brokenness], | 56 | AC_CACHE_CHECK([for RTLD_GLOBAL brokenness], | |
63 | glib_cv_rtldglobal_broken,[ | 57 | glib_cv_rtldglobal_broken,[ | |
64 | @@ -1528,6 +1541,38 @@ dnl *** check for having dlerror() | 58 | @@ -1508,6 +1521,38 @@ dnl *** check for having dlerror() | |
65 | [G_MODULE_HAVE_DLERROR=0]) | 59 | [G_MODULE_HAVE_DLERROR=0]) | |
66 | LIBS="$LIBS_orig" | 60 | LIBS="$LIBS_orig" | |
67 | fi | 61 | fi | |
68 | +dnl *** check for dlopen(NULL, 0) brokenness | 62 | +dnl *** check for dlopen(NULL, 0) brokenness | |
69 | + AC_CACHE_CHECK([for dlopen(NULL, 0) brokenness], | 63 | + AC_CACHE_CHECK([for dlopen(NULL, 0) brokenness], | |
70 | + glib_cv_dlopennull_broken,[ | 64 | + glib_cv_dlopennull_broken,[ | |
71 | + AC_TRY_RUN([ | 65 | + AC_TRY_RUN([ | |
72 | +#include <stdio.h> | 66 | +#include <stdio.h> | |
73 | +#include <dlfcn.h> | 67 | +#include <dlfcn.h> | |
74 | +#ifndef RTLD_GLOBAL | 68 | +#ifndef RTLD_GLOBAL | |
75 | +# define RTLD_GLOBAL 0 | 69 | +# define RTLD_GLOBAL 0 | |
76 | +#endif | 70 | +#endif | |
77 | +#ifndef RTLD_LAZY | 71 | +#ifndef RTLD_LAZY | |
@@ -90,56 +84,65 @@ $NetBSD: patch-ak,v 1.7 2010/11/02 14:52 | @@ -90,56 +84,65 @@ $NetBSD: patch-ak,v 1.7 2010/11/02 14:52 | |||
90 | + ], | 84 | + ], | |
91 | + [glib_cv_dlopennull_broken=no], | 85 | + [glib_cv_dlopennull_broken=no], | |
92 | + [glib_cv_dlopennull_broken=yes], | 86 | + [glib_cv_dlopennull_broken=yes], | |
93 | + [glib_cv_dlopennull_broken=no]) | 87 | + [glib_cv_dlopennull_broken=no]) | |
94 | + ]) | 88 | + ]) | |
95 | + if test "x$glib_cv_dlopennull_broken" = "xyes"; then | 89 | + if test "x$glib_cv_dlopennull_broken" = "xyes"; then | |
96 | + G_MODULE_BROKEN_DLOPEN_NULL=1 | 90 | + G_MODULE_BROKEN_DLOPEN_NULL=1 | |
97 | + else | 91 | + else | |
98 | + G_MODULE_BROKEN_DLOPEN_NULL=0 | 92 | + G_MODULE_BROKEN_DLOPEN_NULL=0 | |
99 | + fi | 93 | + fi | |
100 | dnl *** done, have we got an implementation? | 94 | dnl *** done, have we got an implementation? | |
101 | if test -z "$G_MODULE_IMPL"; then | 95 | if test -z "$G_MODULE_IMPL"; then | |
102 | G_MODULE_IMPL=0 | 96 | G_MODULE_IMPL=0 | |
103 | @@ -1538,7 +1583,7 @@ fi | 97 | @@ -1518,7 +1563,7 @@ fi | |
104 | 98 | |||
105 | AC_MSG_CHECKING(for the suffix of module shared libraries) | 99 | AC_MSG_CHECKING(for the suffix of module shared libraries) | |
106 | export SED | 100 | export SED | |
107 | -shrext_cmds=`./libtool --config | grep '^shrext_cmds='` | 101 | -shrext_cmds=`./libtool --config | grep '^shrext_cmds='` | |
108 | +shrext_cmds=`libtool --config | grep '^shrext_cmds='` | 102 | +shrext_cmds=`libtool --config | grep '^shrext_cmds='` | |
109 | eval $shrext_cmds | 103 | eval $shrext_cmds | |
110 | module=yes eval std_shrext=$shrext_cmds | 104 | module=yes eval std_shrext=$shrext_cmds | |
111 | # chop the initial dot | 105 | # chop the initial dot | |
112 | @@ -1557,6 +1602,8 @@ AC_SUBST(G_MODULE_PLUGIN_LIBS) | 106 | @@ -1537,6 +1582,8 @@ AC_SUBST(G_MODULE_PLUGIN_LIBS) | |
113 | AC_SUBST(G_MODULE_LDFLAGS) | 107 | AC_SUBST(G_MODULE_LDFLAGS) | |
114 | AC_SUBST(G_MODULE_HAVE_DLERROR) | 108 | AC_SUBST(G_MODULE_HAVE_DLERROR) | |
115 | AC_SUBST(G_MODULE_BROKEN_RTLD_GLOBAL) | 109 | AC_SUBST(G_MODULE_BROKEN_RTLD_GLOBAL) | |
116 | +AC_SUBST(G_MODULE_BROKEN_DLOPEN_NULL) | 110 | +AC_SUBST(G_MODULE_BROKEN_DLOPEN_NULL) | |
117 | + | 111 | + | |
118 | AC_SUBST(G_MODULE_NEED_USCORE) | 112 | AC_SUBST(G_MODULE_NEED_USCORE) | |
119 | AC_SUBST(GLIB_DEBUG_FLAGS) | 113 | AC_SUBST(GLIB_DEBUG_FLAGS) | |
120 | 114 | |||
121 | @@ -1945,22 +1992,8 @@ if test x"$have_threads" != xno; then | 115 | @@ -1925,22 +1972,8 @@ if test x"$have_threads" != xno; then | |
122 | G_THREAD_LIBS="-lpthread -lthread" | 116 | G_THREAD_LIBS="-lpthread -lthread" | |
123 | ;; | 117 | ;; | |
124 | *) | 118 | *) | |
125 | - for flag in pthread pthreads mt; do | 119 | - for flag in pthread pthreads mt; do | |
126 | - glib_save_CFLAGS="$CFLAGS" | 120 | - glib_save_CFLAGS="$CFLAGS" | |
127 | - CFLAGS="$CFLAGS -$flag" | 121 | - CFLAGS="$CFLAGS -$flag" | |
128 | - AC_TRY_RUN(glib_thread_test(0), | 122 | - AC_TRY_RUN(glib_thread_test(0), | |
129 | - glib_flag_works=yes, | 123 | - glib_flag_works=yes, | |
130 | - glib_flag_works=no, | 124 | - glib_flag_works=no, | |
131 | - [AC_LINK_IFELSE(glib_thread_test(0), | 125 | - [AC_LINK_IFELSE(glib_thread_test(0), | |
132 | - glib_flag_works=yes, | 126 | - glib_flag_works=yes, | |
133 | - glib_flag_works=no)]) | 127 | - glib_flag_works=no)]) | |
134 | - CFLAGS="$glib_save_CFLAGS" | 128 | - CFLAGS="$glib_save_CFLAGS" | |
135 | - if test $glib_flag_works = yes ; then | 129 | - if test $glib_flag_works = yes ; then | |
136 | - G_THREAD_CFLAGS=-$flag | 130 | - G_THREAD_CFLAGS=-$flag | |
137 | - G_THREAD_LIBS=-$flag | 131 | - G_THREAD_LIBS=-$flag | |
138 | - break; | 132 | - break; | |
139 | - fi | 133 | - fi | |
140 | - done | 134 | - done | |
141 | + G_THREAD_LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" | 135 | + G_THREAD_LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" | |
142 | + G_THREAD_CFLAGS="${PTHREAD_CFLAGS}" | 136 | + G_THREAD_CFLAGS="${PTHREAD_CFLAGS}" | |
143 | ;; | 137 | ;; | |
144 | esac | 138 | esac | |
145 | fi | 139 | fi | |
140 | @@ -3638,7 +3671,7 @@ AC_ARG_ENABLE(Bsymbolic, | |||
141 | enable_Bsymbolic=no) | |||
142 | LDFLAGS="${SAVED_LDFLAGS}"]) | |||
143 | ||||
144 | -if test "x${enable_Bsymbolic}" == "xyes"; then | |||
145 | +if test "x${enable_Bsymbolic}" = "xyes"; then | |||
146 | GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions | |||
147 | fi | |||
148 |
$NetBSD: patch-ck,v 1.1 2011/10/09 19:40:02 jmmv Exp $
--- glib/libcharset/Makefile.am.orig 2011-06-05 23:18:49.000000000 +0000
+++ glib/libcharset/Makefile.am
@@ -25,18 +25,6 @@ EXTRA_DIST += \
charset_alias = $(DESTDIR)$(libdir)/charset.alias
charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
install-exec-local: all-local
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- if test -f $(charset_alias); then \
- sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
- $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
- rm -f $(charset_tmp) ; \
- else \
- if test @GLIBC21@ = no; then \
- sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
- $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
- rm -f $(charset_tmp) ; \
- fi ; \
- fi
uninstall-local: all-local
if test -f $(charset_alias); then \
$NetBSD: patch-cl,v 1.1 2011/10/09 19:40:02 jmmv Exp $
--- gio/Makefile.am.orig 2011-10-09 17:21:29.000000000 +0000
+++ gio/Makefile.am
@@ -632,12 +632,6 @@ gdbus_LDADD = libgio-2.0.la \
$(top_builddir)/glib/libglib-2.0.la \
$(top_builddir)/gobject/libgobject-2.0.la
-completiondir = $(sysconfdir)/bash_completion.d
-completion_SCRIPTS = \
- gdbus-bash-completion.sh \
- gsettings-bash-completion.sh
-EXTRA_DIST += $(completion_SCRIPTS)
-
# ------------------------------------------------------------------------
dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
$NetBSD: patch-cm,v 1.1 2011/10/09 19:40:02 jmmv Exp $
sysutils/gio-fam builds the gio/fam backend as a separate module. Force it
to link against the installed version of glib2, as it is not rebuilt by the
package.
--- gio/fam/Makefile.am.orig 2010-09-27 18:48:33.000000000 +0000
+++ gio/fam/Makefile.am
@@ -25,11 +25,9 @@ libgiofam_la_CFLAGS = \
-DGIO_COMPILATION \
-DG_DISABLE_DEPRECATED
-libgiofam_la_LDFLAGS = $(module_flags)
+libgiofam_la_LDFLAGS = $(module_flags) \
+ $$(pkg-config --libs gio-2.0 gobject-2.0 glib-2.0)
libgiofam_la_LIBADD = \
- $(top_builddir)/gio/libgio-2.0.la \
- $(top_builddir)/gobject/libgobject-2.0.la \
- $(top_builddir)/glib/libglib-2.0.la \
$(GLIB_LIBS) \
$(FAM_LIBS) \
$(NULL)
@@ -41,9 +39,6 @@ RUN_QUERY_MODULES=true
endif
install-data-hook:
- if $(RUN_QUERY_MODULES) && test -z "$(DESTDIR)" ; then \
- $(top_builddir)/gio/gio-querymodules$(EXEEXT) $(DESTDIR)$(GIO_MODULE_DIR) ; \
- fi
uninstall-local:
$(RM) $(DESTDIR)$(GIO_MODULE_DIR)/giomodules.cache
$NetBSD: patch-cn,v 1.1 2011/10/09 19:40:03 jmmv Exp $
The mem-overflow test contains a declaration of an empty struct, which breaks
on at least SunPro cc, and presumably some other non-gcc compilers. Skip this
test for now, pending a better fix.
https://bugzilla.gnome.org/show_bug.cgi?id=641350
--- glib/tests/Makefile.am.orig 2011-06-05 23:18:49.000000000 +0000
+++ glib/tests/Makefile.am
@@ -66,9 +66,6 @@ hostutils_LDADD = $(progs_ldadd)
TEST_PROGS += gvariant
gvariant_LDADD = $(progs_ldadd)
-TEST_PROGS += mem-overflow
-mem_overflow_LDADD = $(progs_ldadd)
-
TEST_PROGS += utf8-performance
utf8_performance_SOURCES = utf8-performance.c
utf8_performance_LDADD = $(progs_ldadd)