diff options
author | martin <martin@pkgsrc.org> | 2013-01-09 10:34:03 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2013-01-09 10:34:03 +0000 |
commit | efcdf5c1f5f2aebc0c46f9c7fc55b9ce3f95b052 (patch) | |
tree | 1dde134bb6a875984ae9ed9b35682772463f7acd /devel/xulrunner192/patches | |
parent | c39c9f9bcac7625f33fbce414a3ab4b3ad2bfefd (diff) | |
download | pkgsrc-efcdf5c1f5f2aebc0c46f9c7fc55b9ce3f95b052.tar.gz |
Prevent configure to pick up non thread safe code that uses _res on NetBSD.
Diffstat (limited to 'devel/xulrunner192/patches')
-rw-r--r-- | devel/xulrunner192/patches/patch-aa | 35 | ||||
-rw-r--r-- | devel/xulrunner192/patches/patch-as | 28 |
2 files changed, 46 insertions, 17 deletions
diff --git a/devel/xulrunner192/patches/patch-aa b/devel/xulrunner192/patches/patch-aa index 304c15ce144..e8298ff7cf1 100644 --- a/devel/xulrunner192/patches/patch-aa +++ b/devel/xulrunner192/patches/patch-aa @@ -1,8 +1,10 @@ -$NetBSD: patch-aa,v 1.3 2012/11/18 01:55:52 joerg Exp $ +$NetBSD: patch-aa,v 1.4 2013/01/09 10:34:03 martin Exp $ ---- configure.in.orig 2012-03-06 14:45:23.000000000 +0000 -+++ configure.in -@@ -1858,7 +1858,7 @@ case "$target" in +Do not allow access to _res on NetBSD. + +--- configure.in.orig 2012-03-06 15:45:23.000000000 +0100 ++++ configure.in 2013-01-08 16:00:11.000000000 +0100 +@@ -1858,7 +1858,7 @@ fi ;; @@ -11,7 +13,7 @@ $NetBSD: patch-aa,v 1.3 2012/11/18 01:55:52 joerg Exp $ if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then DLL_SUFFIX=".so.1.0" DSO_LDOPTS="-shared" -@@ -1872,6 +1872,9 @@ case "$target" in +@@ -1872,6 +1872,9 @@ # MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive' # MKSHLIB_UNFORCE_ALL='' # fi @@ -21,7 +23,7 @@ $NetBSD: patch-aa,v 1.3 2012/11/18 01:55:52 joerg Exp $ ;; *-hpux*) -@@ -2939,6 +2942,9 @@ if test "$GNU_CC"; then +@@ -2939,6 +2942,9 @@ AC_CACHE_CHECK(for visibility(hidden) attribute, ac_cv_visibility_hidden, [cat > conftest.c <<EOF @@ -31,7 +33,7 @@ $NetBSD: patch-aa,v 1.3 2012/11/18 01:55:52 joerg Exp $ int foo __attribute__ ((visibility ("hidden"))) = 1; EOF ac_cv_visibility_hidden=no -@@ -3110,6 +3116,9 @@ dnl ==================================== +@@ -3110,6 +3116,9 @@ case $target in *-hpux11.*) ;; @@ -41,7 +43,20 @@ $NetBSD: patch-aa,v 1.3 2012/11/18 01:55:52 joerg Exp $ *) AC_CHECK_LIB(c_r, gethostbyname_r) ;; -@@ -4326,6 +4335,14 @@ else +@@ -3556,7 +3565,11 @@ + #endif + #include <resolv.h> + ], +- [int foo = res_ninit(&_res);], ++ [ ++ #ifdef __NetBSD__ ++ #error "_res is not usable in threaded programs" ++ #endif ++ int foo = res_ninit(&_res);], + [ac_cv_func_res_ninit=yes], + [ac_cv_func_res_ninit=no]) + ]) +@@ -4326,6 +4339,14 @@ fi fi @@ -56,7 +71,7 @@ $NetBSD: patch-aa,v 1.3 2012/11/18 01:55:52 joerg Exp $ if test -z "$SKIP_LIBRARY_CHECKS"; then dnl system JPEG support dnl ======================================================== -@@ -8630,7 +8647,8 @@ rm -f confdefs.h.save +@@ -8630,7 +8651,8 @@ mv confdefs.h confdefs.h.save egrep -v "$_EGREP_PATTERN" confdefs.h.save > confdefs.h AC_OUTPUT_MAKE_DEFS() @@ -66,7 +81,7 @@ $NetBSD: patch-aa,v 1.3 2012/11/18 01:55:52 joerg Exp $ AC_SUBST(MOZ_DEFINES) rm -f confdefs.h mv confdefs.h.save confdefs.h -@@ -8721,6 +8739,8 @@ if test -z "$MOZ_NATIVE_NSPR"; then +@@ -8721,6 +8743,8 @@ AC_MSG_WARN([Recreating autoconf.mk with updated nspr-config output]) if test "$OS_ARCH" != "WINNT" && test "$OS_ARCH" != "WINCE"; then NSPR_LIBS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --libdir=$LIBXUL_DIST/lib --libs` diff --git a/devel/xulrunner192/patches/patch-as b/devel/xulrunner192/patches/patch-as index a951b7845a5..e4b4da54eda 100644 --- a/devel/xulrunner192/patches/patch-as +++ b/devel/xulrunner192/patches/patch-as @@ -1,10 +1,11 @@ -$NetBSD: patch-as,v 1.2 2012/11/18 01:55:52 joerg Exp $ +$NetBSD: patch-as,v 1.3 2013/01/09 10:34:03 martin Exp $ Treat DragonFly like FreeBSD. +Do not allow access to _res on NetBSD. ---- js/src/configure.in.orig 2012-03-06 14:45:30.000000000 +0000 -+++ js/src/configure.in -@@ -1653,7 +1653,7 @@ case "$target" in +--- js/src/configure.in.orig 2012-03-06 15:45:30.000000000 +0100 ++++ js/src/configure.in 2013-01-08 16:00:11.000000000 +0100 +@@ -1653,7 +1653,7 @@ fi ;; @@ -13,7 +14,7 @@ Treat DragonFly like FreeBSD. if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then DLL_SUFFIX=".so.1.0" DSO_LDOPTS="-shared" -@@ -2509,7 +2509,7 @@ darwin*) +@@ -2509,7 +2509,7 @@ solaris*) AC_DEFINE(AVMPLUS_UNIX) ;; @@ -22,7 +23,7 @@ Treat DragonFly like FreeBSD. AC_DEFINE(AVMPLUS_UNIX) ;; *cygwin*|*mingw*|*mks*|*msvc*|*wince) -@@ -2724,6 +2724,9 @@ if test "$GNU_CC"; then +@@ -2724,6 +2724,9 @@ AC_CACHE_CHECK(for visibility(hidden) attribute, ac_cv_visibility_hidden, [cat > conftest.c <<EOF @@ -32,7 +33,20 @@ Treat DragonFly like FreeBSD. int foo __attribute__ ((visibility ("hidden"))) = 1; EOF ac_cv_visibility_hidden=no -@@ -4150,7 +4153,7 @@ if test "$MOZ_MEMORY"; then +@@ -3182,7 +3185,11 @@ + #endif + #include <resolv.h> + ], +- [int foo = res_ninit(&_res);], ++ [ ++ #ifdef __NetBSD__ ++ #error "_res is not usable in threaded programs" ++ #endif ++ int foo = res_ninit(&_res);], + [ac_cv_func_res_ninit=yes], + [ac_cv_func_res_ninit=no]) + ]) +@@ -4150,7 +4157,7 @@ darwin*) AC_DEFINE(MOZ_MEMORY_DARWIN) ;; |