Sat Dec 22 02:22:44 2012 UTC ()
Disable use of visibility attributes for clang, it is much stricter
about enforcing consistency than gcc.


(joerg)
diff -r1.9 -r1.10 pkgsrc/devel/xulrunner10/distinfo
diff -r1.2 -r1.3 pkgsrc/devel/xulrunner10/patches/patch-aa
diff -r1.1.1.1 -r1.2 pkgsrc/devel/xulrunner10/patches/patch-ac
diff -r1.1.1.1 -r1.2 pkgsrc/devel/xulrunner10/patches/patch-as

cvs diff -r1.9 -r1.10 pkgsrc/devel/xulrunner10/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/xulrunner10/Attic/distinfo 2012/12/12 11:12:20 1.9
+++ pkgsrc/devel/xulrunner10/Attic/distinfo 2012/12/22 02:22:44 1.10
@@ -1,33 +1,33 @@ @@ -1,33 +1,33 @@
1$NetBSD: distinfo,v 1.9 2012/12/12 11:12:20 ryoon Exp $ 1$NetBSD: distinfo,v 1.10 2012/12/22 02:22:44 joerg Exp $
2 2
3SHA1 (firefox-10.0.11esr.source.tar.bz2) = 3afbc0cc6edae94aa4e9fb3a8b060e5b2aabc0e7 3SHA1 (firefox-10.0.11esr.source.tar.bz2) = 3afbc0cc6edae94aa4e9fb3a8b060e5b2aabc0e7
4RMD160 (firefox-10.0.11esr.source.tar.bz2) = 55dabf58e48bd5628c0d209576a12b231350283a 4RMD160 (firefox-10.0.11esr.source.tar.bz2) = 55dabf58e48bd5628c0d209576a12b231350283a
5Size (firefox-10.0.11esr.source.tar.bz2) = 75444542 bytes 5Size (firefox-10.0.11esr.source.tar.bz2) = 75444542 bytes
6SHA1 (patch-aa) = c0db75aa9eb12e407c6ad7a869087fca8172e08e 6SHA1 (patch-aa) = 3724d682a564b0a47b1313c4e5403d5b43b1904a
7SHA1 (patch-ab) = b1efa63d3f9e0dca0247037696839dbce756f88c 7SHA1 (patch-ab) = b1efa63d3f9e0dca0247037696839dbce756f88c
8SHA1 (patch-ac) = 4da7049472449bb05590ca434c09a1e08423d2eb 8SHA1 (patch-ac) = 4194776ef3978f261cdade72617c05c08bd33aa6
9SHA1 (patch-ad) = c5589daa0a2ec33bab17e1b6994b43313e3ba8e3 9SHA1 (patch-ad) = c5589daa0a2ec33bab17e1b6994b43313e3ba8e3
10SHA1 (patch-ae) = ca217066945938eece33a6ee41ca8b8d2ccbf6f0 10SHA1 (patch-ae) = ca217066945938eece33a6ee41ca8b8d2ccbf6f0
11SHA1 (patch-af) = 57bb4796db6e039ece84641c07f18b27e372f650 11SHA1 (patch-af) = 57bb4796db6e039ece84641c07f18b27e372f650
12SHA1 (patch-ag) = 588c45ed234065f86b047e2a794d979d4bad71fb 12SHA1 (patch-ag) = 588c45ed234065f86b047e2a794d979d4bad71fb
13SHA1 (patch-ai) = aa72079de6e9baf601858ab55d7300c1ed280156 13SHA1 (patch-ai) = aa72079de6e9baf601858ab55d7300c1ed280156
14SHA1 (patch-aj) = 66c1ef5c3c7d9535852de2c22e792999a6a5f0a7 14SHA1 (patch-aj) = 66c1ef5c3c7d9535852de2c22e792999a6a5f0a7
15SHA1 (patch-ak) = f62c0a24a73c6846ff970509ff3cf78c361bb877 15SHA1 (patch-ak) = f62c0a24a73c6846ff970509ff3cf78c361bb877
16SHA1 (patch-al) = b6c3ba5a629497792fb44e90194f31d58328ac53 16SHA1 (patch-al) = b6c3ba5a629497792fb44e90194f31d58328ac53
17SHA1 (patch-am) = b9f661c03254d15a4f9b83eb355d3b3b6b92dd65 17SHA1 (patch-am) = b9f661c03254d15a4f9b83eb355d3b3b6b92dd65
18SHA1 (patch-an) = 46118ebe923396152ce1ca61d160fbddf1052d2a 18SHA1 (patch-an) = 46118ebe923396152ce1ca61d160fbddf1052d2a
19SHA1 (patch-ao) = 0d4a477ab9269cddc4a2247394218e44f12f7d1f 19SHA1 (patch-ao) = 0d4a477ab9269cddc4a2247394218e44f12f7d1f
20SHA1 (patch-as) = 8a4354a05fb4c83cbd68dc6f7e2604f0c2716fa4 20SHA1 (patch-as) = c80bc3d7fae15bcc16b9070d699bbed1fcc15fc2
21SHA1 (patch-at) = 4d8d23696420eebb23750c540b716684c5fb0d3e 21SHA1 (patch-at) = 4d8d23696420eebb23750c540b716684c5fb0d3e
22SHA1 (patch-au) = cb37d97689feb836f519b6349b2dbda95b8a9836 22SHA1 (patch-au) = cb37d97689feb836f519b6349b2dbda95b8a9836
23SHA1 (patch-av) = 65999b032ec3135c53a3515b220af8af622e11c9 23SHA1 (patch-av) = 65999b032ec3135c53a3515b220af8af622e11c9
24SHA1 (patch-aw) = 7fcd504c1a62468ec8967df17a7f5273c8a8c0ad 24SHA1 (patch-aw) = 7fcd504c1a62468ec8967df17a7f5273c8a8c0ad
25SHA1 (patch-ax) = 23f02e7143c506c945982fa4188c2f638359a9dc 25SHA1 (patch-ax) = 23f02e7143c506c945982fa4188c2f638359a9dc
26SHA1 (patch-ay) = 17ecad1d8318d7b2bf7f5c0ddafd7632342824de 26SHA1 (patch-ay) = 17ecad1d8318d7b2bf7f5c0ddafd7632342824de
27SHA1 (patch-az) = a67db6a9177608db285543024a038057000236b4 27SHA1 (patch-az) = a67db6a9177608db285543024a038057000236b4
28SHA1 (patch-ba) = 6b89bca6bf1386727c7524a27eb6542a95f0942e 28SHA1 (patch-ba) = 6b89bca6bf1386727c7524a27eb6542a95f0942e
29SHA1 (patch-bd) = 5587f869954c9468924c42200f87910b49c0f153 29SHA1 (patch-bd) = 5587f869954c9468924c42200f87910b49c0f153
30SHA1 (patch-bf) = e47c21494521a39f71132cc0badf727e7050bd9c 30SHA1 (patch-bf) = e47c21494521a39f71132cc0badf727e7050bd9c
31SHA1 (patch-bg) = 669ca920b137d5fdd10b621013a7a02f78bfba6b 31SHA1 (patch-bg) = 669ca920b137d5fdd10b621013a7a02f78bfba6b
32SHA1 (patch-bi) = 9e76596ab9a48abdab0bfbcd9f8bb3d067c6f7bd 32SHA1 (patch-bi) = 9e76596ab9a48abdab0bfbcd9f8bb3d067c6f7bd
33SHA1 (patch-build_autoconf_gcc-pr49911.m4) = d994d058116875255af451c4bf411929caf8c1a9 33SHA1 (patch-build_autoconf_gcc-pr49911.m4) = d994d058116875255af451c4bf411929caf8c1a9

cvs diff -r1.2 -r1.3 pkgsrc/devel/xulrunner10/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/devel/xulrunner10/patches/Attic/patch-aa 2012/12/12 11:12:20 1.2
+++ pkgsrc/devel/xulrunner10/patches/Attic/patch-aa 2012/12/22 02:22:44 1.3
@@ -1,117 +1,127 @@ @@ -1,117 +1,127 @@
1$NetBSD: patch-aa,v 1.2 2012/12/12 11:12:20 ryoon Exp $ 1$NetBSD: patch-aa,v 1.3 2012/12/22 02:22:44 joerg Exp $
2 2
3--- configure.in.orig 2012-11-15 18:24:02.000000000 +0000 3--- configure.in.orig 2012-11-15 18:24:02.000000000 +0000
4+++ configure.in 4+++ configure.in
5@@ -2328,7 +2328,7 @@ case "$target" in 5@@ -2328,7 +2328,7 @@ case "$target" in
6 MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin' 6 MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
7 ;; 7 ;;
8  8
9-*-freebsd*) 9-*-freebsd*)
10+*-freebsd* | *-dragonfly*) 10+*-freebsd* | *-dragonfly*)
11 if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then 11 if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then
12 DLL_SUFFIX=".so.1.0" 12 DLL_SUFFIX=".so.1.0"
13 DSO_LDOPTS="-shared" 13 DSO_LDOPTS="-shared"
14@@ -2336,6 +2336,9 @@ case "$target" in 14@@ -2336,6 +2336,9 @@ case "$target" in
15 if test ! "$GNU_CC"; then 15 if test ! "$GNU_CC"; then
16 DSO_LDOPTS="-Bshareable $DSO_LDOPTS" 16 DSO_LDOPTS="-Bshareable $DSO_LDOPTS"
17 fi 17 fi
18+ if test "$LIBRUNPATH"; then 18+ if test "$LIBRUNPATH"; then
19+ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS" 19+ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
20+ fi 20+ fi
21 ;; 21 ;;
22  22
23 ia64*-hpux*) 23 ia64*-hpux*)
24@@ -3377,6 +3380,9 @@ dnl ==================================== 24@@ -3178,6 +3181,9 @@ if test "$GNU_CC"; then
 25 AC_CACHE_CHECK(for visibility(hidden) attribute,
 26 ac_cv_visibility_hidden,
 27 [cat > conftest.c <<EOF
 28+#ifdef __clang__
 29+#error Not supported by old Mozilla
 30+#endif
 31 int foo __attribute__ ((visibility ("hidden"))) = 1;
 32 EOF
 33 ac_cv_visibility_hidden=no
 34@@ -3377,6 +3383,9 @@ dnl ====================================
25 case $target in 35 case $target in
26 *-hpux11.*) 36 *-hpux11.*)
27 ;; 37 ;;
28+*-dragonfly*) 38+*-dragonfly*)
29+ AC_CHECK_LIB(c, gethostbyname_r) 39+ AC_CHECK_LIB(c, gethostbyname_r)
30+ ;; 40+ ;;
31 *) 41 *)
32 AC_CHECK_LIB(c_r, gethostbyname_r) 42 AC_CHECK_LIB(c_r, gethostbyname_r)
33 ;; 43 ;;
34@@ -3711,6 +3717,9 @@ AC_CACHE_CHECK( 44@@ -3711,6 +3720,9 @@ AC_CACHE_CHECK(
35 #ifdef linux 45 #ifdef linux
36 #define _BSD_SOURCE 1 46 #define _BSD_SOURCE 1
37 #endif 47 #endif
38+ #ifdef __NetBSD__ 48+ #ifdef __NetBSD__
39+ #error use of global _res variable in threaded programs is not portable 49+ #error use of global _res variable in threaded programs is not portable
40+ #endif 50+ #endif
41 #include <resolv.h> 51 #include <resolv.h>
42 ], 52 ],
43 [int foo = res_ninit(&_res);], 53 [int foo = res_ninit(&_res);],
44@@ -4330,6 +4339,14 @@ if test -n "$YASM"; then 54@@ -4330,6 +4342,14 @@ if test -n "$YASM"; then
45 _YASM_BUILD=` echo ${YASM_VERSION} | $AWK -F\. '{ print $4 }'` 55 _YASM_BUILD=` echo ${YASM_VERSION} | $AWK -F\. '{ print $4 }'`
46 fi 56 fi
47  57
48+if test -n "${LIBXUL_SDK_DIR}"; then 58+if test -n "${LIBXUL_SDK_DIR}"; then
49+ AC_MSG_WARN([pkgsrc: LIBXUL_SDK_DIR is set; assuming we want nss and nspr from xulrunner.]) 59+ AC_MSG_WARN([pkgsrc: LIBXUL_SDK_DIR is set; assuming we want nss and nspr from xulrunner.])
50+ NSPR_CFLAGS="-I${prefix}/include/xulrunner10/unstable `pkg-config --cflags mozilla-nspr`" 60+ NSPR_CFLAGS="-I${prefix}/include/xulrunner10/unstable `pkg-config --cflags mozilla-nspr`"
51+ NSPR_LIBS="`pkg-config --libs mozilla-nspr`" 61+ NSPR_LIBS="`pkg-config --libs mozilla-nspr`"
52+ NSS_CFLAGS="`pkg-config --cflags mozilla-nss`" 62+ NSS_CFLAGS="`pkg-config --cflags mozilla-nss`"
53+ NSS_LIBS="`pkg-config --libs mozilla-nss`" 63+ NSS_LIBS="`pkg-config --libs mozilla-nss`"
54+fi 64+fi
55+ 65+
56 if test -z "$SKIP_LIBRARY_CHECKS"; then 66 if test -z "$SKIP_LIBRARY_CHECKS"; then
57 dnl system JPEG support 67 dnl system JPEG support
58 dnl ======================================================== 68 dnl ========================================================
59@@ -5616,20 +5633,20 @@ if test -n "$MOZ_WEBM"; then 69@@ -5616,20 +5636,20 @@ if test -n "$MOZ_WEBM"; then
60 [MOZ_NATIVE_LIBVPX_DEC_TEST=1], 70 [MOZ_NATIVE_LIBVPX_DEC_TEST=1],
61 ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found])) 71 ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found]))
62 if test -n "$MOZ_NATIVE_LIBVPX_DEC_TEST" ; then 72 if test -n "$MOZ_NATIVE_LIBVPX_DEC_TEST" ; then
63- AC_MSG_CHECKING([for libvpx version >= v0.9.7]) 73- AC_MSG_CHECKING([for libvpx version >= v0.9.7])
64- dnl We need at least v0.9.7 to fix several crash bugs (for which we 74- dnl We need at least v0.9.7 to fix several crash bugs (for which we
65- dnl had local patches prior to v0.9.7). 75- dnl had local patches prior to v0.9.7).
66+ AC_MSG_CHECKING([for libvpx version >= v1.0.0]) 76+ AC_MSG_CHECKING([for libvpx version >= v1.0.0])
67+ dnl We need at least v1.0.0 to fix several crash bugs (for which we 77+ dnl We need at least v1.0.0 to fix several crash bugs (for which we
68+ dnl had local patches prior to v1.0.0). 78+ dnl had local patches prior to v1.0.0).
69 dnl 79 dnl
70 dnl This is a terrible test for the library version, but we don't 80 dnl This is a terrible test for the library version, but we don't
71 dnl have a good one. There is no version number in a public header, 81 dnl have a good one. There is no version number in a public header,
72 dnl and testing the headers still doesn't guarantee we link against 82 dnl and testing the headers still doesn't guarantee we link against
73 dnl the right version. While we could call vpx_codec_version() at 83 dnl the right version. While we could call vpx_codec_version() at
74 dnl run-time, that would break cross-compiling. There are no 84 dnl run-time, that would break cross-compiling. There are no
75- dnl additional exported symbols between the v0.9.7 release and the 85- dnl additional exported symbols between the v0.9.7 release and the
76- dnl v0.9.6 one to check for. 86- dnl v0.9.6 one to check for.
77+ dnl additional exported decoder symbols between the v1.0.0 release 87+ dnl additional exported decoder symbols between the v1.0.0 release
78+ dnl and the v0.9.7 one to check for. 88+ dnl and the v0.9.7 one to check for.
79 AC_TRY_COMPILE([ 89 AC_TRY_COMPILE([
80 #include <vpx/vpx_decoder.h> 90 #include <vpx/vpx_decoder.h>
81- #if !defined(VPX_CODEC_USE_INPUT_PARTITION) 91- #if !defined(VPX_CODEC_USE_INPUT_PARTITION)
82+ #if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS) 92+ #if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS)
83 #error "test failed." 93 #error "test failed."
84 #endif 94 #endif
85 ], 95 ],
86@@ -5639,7 +5656,7 @@ if test -n "$MOZ_WEBM"; then 96@@ -5639,7 +5659,7 @@ if test -n "$MOZ_WEBM"; then
87 MOZ_LIBVPX_INCLUDES="-I${LIBVPX_DIR}/include" 97 MOZ_LIBVPX_INCLUDES="-I${LIBVPX_DIR}/include"
88 MOZ_LIBVPX_LIBS="-L${LIBVPX_DIR}/lib -lvpx"], 98 MOZ_LIBVPX_LIBS="-L${LIBVPX_DIR}/lib -lvpx"],
89 [AC_MSG_RESULT([no]) 99 [AC_MSG_RESULT([no])
90- AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])]) 100- AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])])
91+ AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])]) 101+ AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])])
92 fi 102 fi
93 CFLAGS=$_SAVE_CFLAGS 103 CFLAGS=$_SAVE_CFLAGS
94 LDFLAGS=$_SAVE_LDFLAGS 104 LDFLAGS=$_SAVE_LDFLAGS
95@@ -5673,11 +5690,11 @@ if test -n "$MOZ_WEBM" -a -z "$MOZ_NATIV 105@@ -5673,11 +5693,11 @@ if test -n "$MOZ_WEBM" -a -z "$MOZ_NATIV
96  106
97 dnl See if we have assembly on this platform. 107 dnl See if we have assembly on this platform.
98 case "$OS_ARCH:$CPU_ARCH" in 108 case "$OS_ARCH:$CPU_ARCH" in
99- Linux:x86) 109- Linux:x86)
100+ Linux:x86|DragonFly:x86|*BSD:i386) 110+ Linux:x86|DragonFly:x86|*BSD:i386)
101 VPX_ASFLAGS="-f elf32 -rnasm -pnasm" 111 VPX_ASFLAGS="-f elf32 -rnasm -pnasm"
102 VPX_X86_ASM=1 112 VPX_X86_ASM=1
103 ;; 113 ;;
104- Linux:x86_64) 114- Linux:x86_64)
105+ Linux:x86_64|DragonFly:x86_64|*BSD:x86_64) 115+ Linux:x86_64|DragonFly:x86_64|*BSD:x86_64)
106 VPX_ASFLAGS="-f elf64 -rnasm -pnasm -DPIC" 116 VPX_ASFLAGS="-f elf64 -rnasm -pnasm -DPIC"
107 VPX_X86_ASM=1 117 VPX_X86_ASM=1
108 ;; 118 ;;
109@@ -8930,6 +8947,8 @@ if test -z "$MOZ_NATIVE_NSPR"; then 119@@ -8930,6 +8950,8 @@ if test -z "$MOZ_NATIVE_NSPR"; then
110 AC_MSG_WARN([Recreating autoconf.mk with updated nspr-config output]) 120 AC_MSG_WARN([Recreating autoconf.mk with updated nspr-config output])
111 if test "$OS_ARCH" != "WINNT"; then 121 if test "$OS_ARCH" != "WINNT"; then
112 NSPR_LIBS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --libdir=$LIBXUL_DIST/lib --libs` 122 NSPR_LIBS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --libdir=$LIBXUL_DIST/lib --libs`
113+ AC_MSG_WARN([pkgsrc: adding run path to NSPR_LIBS for bundled NSPR.]) 123+ AC_MSG_WARN([pkgsrc: adding run path to NSPR_LIBS for bundled NSPR.])
114+ NSPR_LIBS="-Wl,-R${prefix}/lib/\${MOZILLA_PKG_NAME} ${NSPR_LIBS}" 124+ NSPR_LIBS="-Wl,-R${prefix}/lib/\${MOZILLA_PKG_NAME} ${NSPR_LIBS}"
115 $PERL -pi.bak -e "s '^NSPR_LIBS\\s*=.*'NSPR_LIBS = $NSPR_LIBS'" config/autoconf.mk 125 $PERL -pi.bak -e "s '^NSPR_LIBS\\s*=.*'NSPR_LIBS = $NSPR_LIBS'" config/autoconf.mk
116 NSPR_CFLAGS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --includedir=$LIBXUL_DIST/include/nspr --cflags` 126 NSPR_CFLAGS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --includedir=$LIBXUL_DIST/include/nspr --cflags`
117 $PERL -pi.bak -e "s '^NSPR_CFLAGS\\s*=.*'NSPR_CFLAGS = $NSPR_CFLAGS'" config/autoconf.mk 127 $PERL -pi.bak -e "s '^NSPR_CFLAGS\\s*=.*'NSPR_CFLAGS = $NSPR_CFLAGS'" config/autoconf.mk

cvs diff -r1.1.1.1 -r1.2 pkgsrc/devel/xulrunner10/patches/Attic/patch-ac (expand / switch to unified diff)

--- pkgsrc/devel/xulrunner10/patches/Attic/patch-ac 2012/03/15 08:58:28 1.1.1.1
+++ pkgsrc/devel/xulrunner10/patches/Attic/patch-ac 2012/12/22 02:22:44 1.2
@@ -1,27 +1,37 @@ @@ -1,27 +1,37 @@
1$NetBSD: patch-ac,v 1.1.1.1 2012/03/15 08:58:28 ryoon Exp $ 1$NetBSD: patch-ac,v 1.2 2012/12/22 02:22:44 joerg Exp $
2 2
3--- nsprpub/configure.in.orig 2012-03-09 22:20:31.000000000 +0000 3--- nsprpub/configure.in.orig 2012-11-15 18:24:51.000000000 +0000
4+++ nsprpub/configure.in 4+++ nsprpub/configure.in
5@@ -71,7 +71,7 @@ OBJDIR_NAME=. 5@@ -71,7 +71,7 @@ OBJDIR_NAME=.
6 OBJDIR_SUFFIX=OBJ 6 OBJDIR_SUFFIX=OBJ
7 NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' 7 NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
8 NOSUCHFILE=/no-such-file 8 NOSUCHFILE=/no-such-file
9-LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)' 9-LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
10+LIBNSPR='-Wl,-R${prefix}/lib/${MOZILLA_PKG_NAME} -L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)' 10+LIBNSPR='-Wl,-R${prefix}/lib/${MOZILLA_PKG_NAME} -L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
11 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)' 11 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
12 CYGWIN_WRAPPER= 12 CYGWIN_WRAPPER=
13 MACOS_SDK_DIR= 13 MACOS_SDK_DIR=
14@@ -1567,6 +1567,33 @@ tools are selected during the Xcode/Deve 14@@ -769,6 +769,9 @@ if test "$GNU_CC"; then
 15 AC_CACHE_CHECK(for visibility(hidden) attribute,
 16 ac_cv_visibility_hidden,
 17 [cat > conftest.c <<EOF
 18+#ifdef __clang__
 19+#error Not supported by old Mozilla
 20+#endif
 21 int foo __attribute__ ((visibility ("hidden"))) = 1;
 22 EOF
 23 ac_cv_visibility_hidden=no
 24@@ -1567,6 +1570,33 @@ tools are selected during the Xcode/Deve
15 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 25 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
16 MDCPUCFG_H=_freebsd.cfg 26 MDCPUCFG_H=_freebsd.cfg
17 PR_MD_CSRCS=freebsd.c 27 PR_MD_CSRCS=freebsd.c
18+ if test "$LIBRUNPATH"; then 28+ if test "$LIBRUNPATH"; then
19+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" 29+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
20+ fi 30+ fi
21+ ;; 31+ ;;
22+ 32+
23+*-dragonfly*) 33+*-dragonfly*)
24+ if test -z "$USE_NSPR_THREADS"; then 34+ if test -z "$USE_NSPR_THREADS"; then
25+ USE_PTHREADS=1 35+ USE_PTHREADS=1
26+ fi 36+ fi
27+ AC_DEFINE(XP_UNIX) 37+ AC_DEFINE(XP_UNIX)
@@ -35,48 +45,48 @@ $NetBSD: patch-ac,v 1.1.1.1 2012/03/15 0 @@ -35,48 +45,48 @@ $NetBSD: patch-ac,v 1.1.1.1 2012/03/15 0
35+ DLL_SUFFIX=so.1.0 45+ DLL_SUFFIX=so.1.0
36+ fi 46+ fi
37+ MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 47+ MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
38+ DSO_CFLAGS=-fPIC 48+ DSO_CFLAGS=-fPIC
39+ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 49+ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
40+ MDCPUCFG_H=_dragonfly.cfg 50+ MDCPUCFG_H=_dragonfly.cfg
41+ PR_MD_CSRCS=freebsd.c 51+ PR_MD_CSRCS=freebsd.c
42+ if test "$LIBRUNPATH"; then 52+ if test "$LIBRUNPATH"; then
43+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" 53+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
44+ fi 54+ fi
45 ;; 55 ;;
46  56
47 *-hpux*) 57 *-hpux*)
48@@ -2154,6 +2181,7 @@ mips-nec-sysv*) 58@@ -2154,6 +2184,7 @@ mips-nec-sysv*)
49 AC_DEFINE(XP_UNIX) 59 AC_DEFINE(XP_UNIX)
50 AC_DEFINE(NETBSD) 60 AC_DEFINE(NETBSD)
51 AC_DEFINE(HAVE_BSD_FLOCK) 61 AC_DEFINE(HAVE_BSD_FLOCK)
52+ AC_DEFINE(HAVE_SOCKLEN_T) 62+ AC_DEFINE(HAVE_SOCKLEN_T)
53 if test -z "$USE_NSPR_THREADS"; then 63 if test -z "$USE_NSPR_THREADS"; then
54 USE_PTHREADS=1 64 USE_PTHREADS=1
55 fi 65 fi
56@@ -2962,7 +2990,7 @@ if test -n "$USE_PTHREADS"; then 66@@ -2962,7 +2993,7 @@ if test -n "$USE_PTHREADS"; then
57 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then 67 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
58 ac_cv_have_dash_pthread=yes 68 ac_cv_have_dash_pthread=yes
59 case "$target_os" in 69 case "$target_os" in
60- freebsd*) 70- freebsd*)
61+ freebsd* | dragonfly*) 71+ freebsd* | dragonfly*)
62 # Freebsd doesn't use -pthread for compiles, it uses them for linking 72 # Freebsd doesn't use -pthread for compiles, it uses them for linking
63 ;; 73 ;;
64 *) 74 *)
65@@ -3000,7 +3028,7 @@ if test -n "$USE_PTHREADS"; then 75@@ -3000,7 +3031,7 @@ if test -n "$USE_PTHREADS"; then
66 _PTHREAD_LDFLAGS= 76 _PTHREAD_LDFLAGS=
67 fi 77 fi
68 ;; 78 ;;
69- *-freebsd*) 79- *-freebsd*)
70+ *-freebsd* | *-dragonfly*) 80+ *-freebsd* | *-dragonfly*)
71 AC_DEFINE(_REENTRANT) 81 AC_DEFINE(_REENTRANT)
72 AC_DEFINE(_THREAD_SAFE) 82 AC_DEFINE(_THREAD_SAFE)
73 dnl -pthread links in -lc_r, so don't specify it explicitly. 83 dnl -pthread links in -lc_r, so don't specify it explicitly.
74@@ -3081,7 +3109,7 @@ case "$target" in 84@@ -3081,7 +3112,7 @@ case "$target" in
75 AC_DEFINE(_PR_NEED_PTHREAD_INIT) 85 AC_DEFINE(_PR_NEED_PTHREAD_INIT)
76 fi 86 fi
77 ;; 87 ;;
78-*-freebsd*) 88-*-freebsd*)
79+*-freebsd* | *-dragonfly*) 89+*-freebsd* | *-dragonfly*)
80 if test -n "$USE_NSPR_THREADS"; then 90 if test -n "$USE_NSPR_THREADS"; then
81 AC_DEFINE(_PR_LOCAL_THREADS_ONLY) 91 AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
82 fi 92 fi

cvs diff -r1.1.1.1 -r1.2 pkgsrc/devel/xulrunner10/patches/Attic/patch-as (expand / switch to unified diff)

--- pkgsrc/devel/xulrunner10/patches/Attic/patch-as 2012/03/15 08:58:28 1.1.1.1
+++ pkgsrc/devel/xulrunner10/patches/Attic/patch-as 2012/12/22 02:22:44 1.2
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1$NetBSD: patch-as,v 1.1.1.1 2012/03/15 08:58:28 ryoon Exp $ 1$NetBSD: patch-as,v 1.2 2012/12/22 02:22:44 joerg Exp $
2 2
3Treat DragonFly like FreeBSD. 3Treat DragonFly like FreeBSD.
4 4
5--- js/src/configure.in.orig 2012-03-09 22:20:17.000000000 +0000 5--- js/src/configure.in.orig 2012-11-15 18:24:19.000000000 +0000
6+++ js/src/configure.in 6+++ js/src/configure.in
7@@ -799,7 +799,7 @@ EOF 7@@ -799,7 +799,7 @@ EOF
8 AC_LANG_RESTORE 8 AC_LANG_RESTORE
9 ]) 9 ])
10  10
11- if test "$ac_cv_have_std__Throw" == "yes"; then 11- if test "$ac_cv_have_std__Throw" == "yes"; then
12+ if test "$ac_cv_have_std__Throw" = "yes"; then 12+ if test "$ac_cv_have_std__Throw" = "yes"; then
13 AC_CACHE_CHECK(for |class __declspec(dllimport) exception| bug, 13 AC_CACHE_CHECK(for |class __declspec(dllimport) exception| bug,
14 ac_cv_have_dllimport_exception_bug, 14 ac_cv_have_dllimport_exception_bug,
15 [ 15 [
16@@ -2157,7 +2157,7 @@ case "$target" in 16@@ -2157,7 +2157,7 @@ case "$target" in
17 MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin' 17 MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
18 ;; 18 ;;
@@ -21,22 +21,32 @@ Treat DragonFly like FreeBSD. @@ -21,22 +21,32 @@ Treat DragonFly like FreeBSD.
21+*-freebsd*|*-dragonfly*) 21+*-freebsd*|*-dragonfly*)
22 if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then 22 if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then
23 DLL_SUFFIX=".so.1.0" 23 DLL_SUFFIX=".so.1.0"
24 DSO_LDOPTS="-shared" 24 DSO_LDOPTS="-shared"
25@@ -2818,7 +2818,7 @@ case "$target" in 25@@ -2818,7 +2818,7 @@ case "$target" in
26 *-solaris*) 26 *-solaris*)
27 AC_DEFINE(AVMPLUS_UNIX) 27 AC_DEFINE(AVMPLUS_UNIX)
28 ;; 28 ;;
29-*-freebsd*|*-kfreebsd*) 29-*-freebsd*|*-kfreebsd*)
30+*-freebsd*|*-kfreebsd*|*-netbsd*|*-dragonfly*) 30+*-freebsd*|*-kfreebsd*|*-netbsd*|*-dragonfly*)
31 AC_DEFINE(AVMPLUS_UNIX) 31 AC_DEFINE(AVMPLUS_UNIX)
32 ;; 32 ;;
33 *-openbsd*) 33 *-openbsd*)
34@@ -4344,7 +4344,7 @@ if test "$MOZ_MEMORY"; then 34@@ -3077,6 +3077,9 @@ if test "$GNU_CC"; then
 35 AC_CACHE_CHECK(for visibility(hidden) attribute,
 36 ac_cv_visibility_hidden,
 37 [cat > conftest.c <<EOF
 38+#ifdef __clang__
 39+#error Not supported by old Mozilla
 40+#endif
 41 int foo __attribute__ ((visibility ("hidden"))) = 1;
 42 EOF
 43 ac_cv_visibility_hidden=no
 44@@ -4344,7 +4347,7 @@ if test "$MOZ_MEMORY"; then
35 *-darwin*) 45 *-darwin*)
36 AC_DEFINE(MOZ_MEMORY_DARWIN) 46 AC_DEFINE(MOZ_MEMORY_DARWIN)
37 ;; 47 ;;
38- *-*freebsd*) 48- *-*freebsd*)
39+ *-*freebsd*|*-*dragonfly*) 49+ *-*freebsd*|*-*dragonfly*)
40 AC_DEFINE(MOZ_MEMORY_BSD) 50 AC_DEFINE(MOZ_MEMORY_BSD)
41 ;; 51 ;;
42 *-android*|*-linuxandroid*) 52 *-android*|*-linuxandroid*)