Mon Dec 24 21:14:19 2012 UTC ()
Don't use visibility attributes with Clang.


(joerg)
diff -r1.10 -r1.11 pkgsrc/mail/thunderbird10/distinfo
diff -r1.1.1.1 -r1.2 pkgsrc/mail/thunderbird10/patches/patch-aa
diff -r1.1.1.1 -r1.2 pkgsrc/mail/thunderbird10/patches/patch-ac
diff -r1.1.1.1 -r1.2 pkgsrc/mail/thunderbird10/patches/patch-as

cvs diff -r1.10 -r1.11 pkgsrc/mail/thunderbird10/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/mail/thunderbird10/Attic/distinfo 2012/11/22 08:14:15 1.10
+++ pkgsrc/mail/thunderbird10/Attic/distinfo 2012/12/24 21:14:19 1.11
@@ -1,37 +1,37 @@ @@ -1,37 +1,37 @@
1$NetBSD: distinfo,v 1.10 2012/11/22 08:14:15 is Exp $ 1$NetBSD: distinfo,v 1.11 2012/12/24 21:14:19 joerg Exp $
2 2
3SHA1 (enigmail-1.4.tar.gz) = 1ee4bcd8d38685af44c1aeeea4fbba7bf30513e4 3SHA1 (enigmail-1.4.tar.gz) = 1ee4bcd8d38685af44c1aeeea4fbba7bf30513e4
4RMD160 (enigmail-1.4.tar.gz) = b3c717e150c826faae1daa09806e07dd16619c51 4RMD160 (enigmail-1.4.tar.gz) = b3c717e150c826faae1daa09806e07dd16619c51
5Size (enigmail-1.4.tar.gz) = 1323467 bytes 5Size (enigmail-1.4.tar.gz) = 1323467 bytes
6SHA1 (thunderbird-10.0.11esr.source.tar.bz2) = c7b2dd2fbead11d61da9508926e4c3e82bc2d099 6SHA1 (thunderbird-10.0.11esr.source.tar.bz2) = c7b2dd2fbead11d61da9508926e4c3e82bc2d099
7RMD160 (thunderbird-10.0.11esr.source.tar.bz2) = 29a600de7cf87adfcad58b1d097583b28a38a746 7RMD160 (thunderbird-10.0.11esr.source.tar.bz2) = 29a600de7cf87adfcad58b1d097583b28a38a746
8Size (thunderbird-10.0.11esr.source.tar.bz2) = 97793584 bytes 8Size (thunderbird-10.0.11esr.source.tar.bz2) = 97793584 bytes
9SHA1 (patch-aa) = a6787e51004112a2056fd695c44c8610ffcc0d60 9SHA1 (patch-aa) = e526125da549e9924135379cffae4754db94154f
10SHA1 (patch-aa-toplevel) = dfff316c77e468a3720f3d18e9edfc67059fc0e1 10SHA1 (patch-aa-toplevel) = dfff316c77e468a3720f3d18e9edfc67059fc0e1
11SHA1 (patch-ab) = 6e243fcf826226330d6b62548838393bb1cbafb5 11SHA1 (patch-ab) = 6e243fcf826226330d6b62548838393bb1cbafb5
12SHA1 (patch-ac) = ade505e90d9e7dd90dedb711011be22a2a5c67f4 12SHA1 (patch-ac) = 805455591b4a9fc8e51ba65ac8ff41016b4edc7f
13SHA1 (patch-ad) = d6bad741c4bdfdd0ee0ca8062c2121ce82eb7fb0 13SHA1 (patch-ad) = d6bad741c4bdfdd0ee0ca8062c2121ce82eb7fb0
14SHA1 (patch-ae) = 2627a9f9dfcbb03474c5e003cab9c8c6cc5dafa1 14SHA1 (patch-ae) = 2627a9f9dfcbb03474c5e003cab9c8c6cc5dafa1
15SHA1 (patch-af) = 5a7112ce46f9a3843a78ae0a234527080c04f529 15SHA1 (patch-af) = 5a7112ce46f9a3843a78ae0a234527080c04f529
16SHA1 (patch-ag) = 40e9b2f82d7267ab0822a5f3b5120a0ef6e977cf 16SHA1 (patch-ag) = 40e9b2f82d7267ab0822a5f3b5120a0ef6e977cf
17SHA1 (patch-ai) = f03ec2d47f1a4772ec567cd38a79b841a4c0022e 17SHA1 (patch-ai) = f03ec2d47f1a4772ec567cd38a79b841a4c0022e
18SHA1 (patch-aj) = 2a06c22133a05c51f56c4cf6650dcb6ae031ab06 18SHA1 (patch-aj) = 2a06c22133a05c51f56c4cf6650dcb6ae031ab06
19SHA1 (patch-ak) = 1b9038728e0e4d3cc23fd6a74d3d48759d77cbdd 19SHA1 (patch-ak) = 1b9038728e0e4d3cc23fd6a74d3d48759d77cbdd
20SHA1 (patch-al) = f12eb736f87a779becdd10631314ee5f8f88f080 20SHA1 (patch-al) = f12eb736f87a779becdd10631314ee5f8f88f080
21SHA1 (patch-am) = 108252ed517d9388f2a6c70ffa15782045ae23d5 21SHA1 (patch-am) = 108252ed517d9388f2a6c70ffa15782045ae23d5
22SHA1 (patch-an) = 7fe9f52b2825bb2db6835a431dc4a140d4984fc7 22SHA1 (patch-an) = 7fe9f52b2825bb2db6835a431dc4a140d4984fc7
23SHA1 (patch-ao) = 644c4fcb52b3552fab5d7c5960205bf7a78a90c2 23SHA1 (patch-ao) = 644c4fcb52b3552fab5d7c5960205bf7a78a90c2
24SHA1 (patch-as) = a3dae1a6687d0e23193807783948b7aa146e1587 24SHA1 (patch-as) = d200d5b59f8a0d406f4fd8bde0fe150d0c2fbcd3
25SHA1 (patch-at) = 519a2d835e0cc9183bf7a899aee382fae72c3d5e 25SHA1 (patch-at) = 519a2d835e0cc9183bf7a899aee382fae72c3d5e
26SHA1 (patch-au) = 23a04bb48df4e54c058f09ab9036d4766d1f9e3e 26SHA1 (patch-au) = 23a04bb48df4e54c058f09ab9036d4766d1f9e3e
27SHA1 (patch-av) = 1ef659c3fe6ecdaabc247b04d8f002f2d860602d 27SHA1 (patch-av) = 1ef659c3fe6ecdaabc247b04d8f002f2d860602d
28SHA1 (patch-aw) = 480343cbefae9249f57948047d94f28312db94d4 28SHA1 (patch-aw) = 480343cbefae9249f57948047d94f28312db94d4
29SHA1 (patch-ax) = 4fb8419d749ef5371bc3b227849bcfb42ab61453 29SHA1 (patch-ax) = 4fb8419d749ef5371bc3b227849bcfb42ab61453
30SHA1 (patch-ay) = f1d70709ac86475131f6b9cfd5b942bbda37cea4 30SHA1 (patch-ay) = f1d70709ac86475131f6b9cfd5b942bbda37cea4
31SHA1 (patch-az) = 67cbe6fd7e09692f095ce2bfd76f0f554eec240d 31SHA1 (patch-az) = 67cbe6fd7e09692f095ce2bfd76f0f554eec240d
32SHA1 (patch-ba) = b015d5d067e21d134517410f68be43f414ffe669 32SHA1 (patch-ba) = b015d5d067e21d134517410f68be43f414ffe669
33SHA1 (patch-bd) = 7d23bbf11b84aaad5f2c39bb68b95ecfc7def6b5 33SHA1 (patch-bd) = 7d23bbf11b84aaad5f2c39bb68b95ecfc7def6b5
34SHA1 (patch-bf) = bfee07121770f85a1a5f85ee6b9ac4c97066d109 34SHA1 (patch-bf) = bfee07121770f85a1a5f85ee6b9ac4c97066d109
35SHA1 (patch-bg) = 9fcb2b715d5d2fdec3dceef63aa1dbbd5d40a377 35SHA1 (patch-bg) = 9fcb2b715d5d2fdec3dceef63aa1dbbd5d40a377
36SHA1 (patch-bi) = 40fe7fb45d2bce5c783cb3277a2b45e86ac84777 36SHA1 (patch-bi) = 40fe7fb45d2bce5c783cb3277a2b45e86ac84777
37SHA1 (patch-directory_c-sdk_ldap_include_portable.h) = 1267429d7c38dd8d18132bd2afe6d0ffb1ea5062 37SHA1 (patch-directory_c-sdk_ldap_include_portable.h) = 1267429d7c38dd8d18132bd2afe6d0ffb1ea5062

cvs diff -r1.1.1.1 -r1.2 pkgsrc/mail/thunderbird10/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/mail/thunderbird10/patches/Attic/patch-aa 2012/03/15 09:45:29 1.1.1.1
+++ pkgsrc/mail/thunderbird10/patches/Attic/patch-aa 2012/12/24 21:14:19 1.2
@@ -1,107 +1,117 @@ @@ -1,107 +1,117 @@
1$NetBSD: patch-aa,v 1.1.1.1 2012/03/15 09:45:29 ryoon Exp $ 1$NetBSD: patch-aa,v 1.2 2012/12/24 21:14:19 joerg Exp $
2 2
3--- mozilla/configure.in.orig 2012-02-16 10:24:47.000000000 +0000 3--- mozilla/configure.in.orig 2012-11-15 21:59:12.000000000 +0000
4+++ mozilla/configure.in 4+++ mozilla/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@@ -4330,6 +4336,14 @@ if test -n "$YASM"; then 44@@ -4330,6 +4339,14 @@ if test -n "$YASM"; then
35 _YASM_BUILD=` echo ${YASM_VERSION} | $AWK -F\. '{ print $4 }'` 45 _YASM_BUILD=` echo ${YASM_VERSION} | $AWK -F\. '{ print $4 }'`
36 fi 46 fi
37  47
38+if test -n "${LIBXUL_SDK_DIR}"; then 48+if test -n "${LIBXUL_SDK_DIR}"; then
39+ AC_MSG_WARN([pkgsrc: LIBXUL_SDK_DIR is set; assuming we want nss and nspr from xulrunner.]) 49+ AC_MSG_WARN([pkgsrc: LIBXUL_SDK_DIR is set; assuming we want nss and nspr from xulrunner.])
40+ NSPR_CFLAGS="-I${prefix}/include/xulrunner/unstable `pkg-config --cflags mozilla-nspr`" 50+ NSPR_CFLAGS="-I${prefix}/include/xulrunner/unstable `pkg-config --cflags mozilla-nspr`"
41+ NSPR_LIBS="`pkg-config --libs mozilla-nspr`" 51+ NSPR_LIBS="`pkg-config --libs mozilla-nspr`"
42+ NSS_CFLAGS="`pkg-config --cflags mozilla-nss`" 52+ NSS_CFLAGS="`pkg-config --cflags mozilla-nss`"
43+ NSS_LIBS="`pkg-config --libs mozilla-nss`" 53+ NSS_LIBS="`pkg-config --libs mozilla-nss`"
44+fi 54+fi
45+ 55+
46 if test -z "$SKIP_LIBRARY_CHECKS"; then 56 if test -z "$SKIP_LIBRARY_CHECKS"; then
47 dnl system JPEG support 57 dnl system JPEG support
48 dnl ======================================================== 58 dnl ========================================================
49@@ -5616,20 +5630,20 @@ if test -n "$MOZ_WEBM"; then 59@@ -5616,20 +5633,20 @@ if test -n "$MOZ_WEBM"; then
50 [MOZ_NATIVE_LIBVPX_DEC_TEST=1], 60 [MOZ_NATIVE_LIBVPX_DEC_TEST=1],
51 ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found])) 61 ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found]))
52 if test -n "$MOZ_NATIVE_LIBVPX_DEC_TEST" ; then 62 if test -n "$MOZ_NATIVE_LIBVPX_DEC_TEST" ; then
53- AC_MSG_CHECKING([for libvpx version >= v0.9.7]) 63- AC_MSG_CHECKING([for libvpx version >= v0.9.7])
54- dnl We need at least v0.9.7 to fix several crash bugs (for which we 64- dnl We need at least v0.9.7 to fix several crash bugs (for which we
55- dnl had local patches prior to v0.9.7). 65- dnl had local patches prior to v0.9.7).
56+ AC_MSG_CHECKING([for libvpx version >= v1.0.0]) 66+ AC_MSG_CHECKING([for libvpx version >= v1.0.0])
57+ dnl We need at least v1.0.0 to fix several crash bugs (for which we 67+ dnl We need at least v1.0.0 to fix several crash bugs (for which we
58+ dnl had local patches prior to v1.0.0). 68+ dnl had local patches prior to v1.0.0).
59 dnl 69 dnl
60 dnl This is a terrible test for the library version, but we don't 70 dnl This is a terrible test for the library version, but we don't
61 dnl have a good one. There is no version number in a public header, 71 dnl have a good one. There is no version number in a public header,
62 dnl and testing the headers still doesn't guarantee we link against 72 dnl and testing the headers still doesn't guarantee we link against
63 dnl the right version. While we could call vpx_codec_version() at 73 dnl the right version. While we could call vpx_codec_version() at
64 dnl run-time, that would break cross-compiling. There are no 74 dnl run-time, that would break cross-compiling. There are no
65- dnl additional exported symbols between the v0.9.7 release and the 75- dnl additional exported symbols between the v0.9.7 release and the
66- dnl v0.9.6 one to check for. 76- dnl v0.9.6 one to check for.
67+ dnl additional exported decoder symbols between the v1.0.0 release 77+ dnl additional exported decoder symbols between the v1.0.0 release
68+ dnl and the v0.9.7 one to check for. 78+ dnl and the v0.9.7 one to check for.
69 AC_TRY_COMPILE([ 79 AC_TRY_COMPILE([
70 #include <vpx/vpx_decoder.h> 80 #include <vpx/vpx_decoder.h>
71- #if !defined(VPX_CODEC_USE_INPUT_PARTITION) 81- #if !defined(VPX_CODEC_USE_INPUT_PARTITION)
72+ #if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS) 82+ #if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS)
73 #error "test failed." 83 #error "test failed."
74 #endif 84 #endif
75 ], 85 ],
76@@ -5639,7 +5653,7 @@ if test -n "$MOZ_WEBM"; then 86@@ -5639,7 +5656,7 @@ if test -n "$MOZ_WEBM"; then
77 MOZ_LIBVPX_INCLUDES="-I${LIBVPX_DIR}/include" 87 MOZ_LIBVPX_INCLUDES="-I${LIBVPX_DIR}/include"
78 MOZ_LIBVPX_LIBS="-L${LIBVPX_DIR}/lib -lvpx"], 88 MOZ_LIBVPX_LIBS="-L${LIBVPX_DIR}/lib -lvpx"],
79 [AC_MSG_RESULT([no]) 89 [AC_MSG_RESULT([no])
80- AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])]) 90- AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])])
81+ AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])]) 91+ AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])])
82 fi 92 fi
83 CFLAGS=$_SAVE_CFLAGS 93 CFLAGS=$_SAVE_CFLAGS
84 LDFLAGS=$_SAVE_LDFLAGS 94 LDFLAGS=$_SAVE_LDFLAGS
85@@ -5673,11 +5687,11 @@ if test -n "$MOZ_WEBM" -a -z "$MOZ_NATIV 95@@ -5673,11 +5690,11 @@ if test -n "$MOZ_WEBM" -a -z "$MOZ_NATIV
86  96
87 dnl See if we have assembly on this platform. 97 dnl See if we have assembly on this platform.
88 case "$OS_ARCH:$CPU_ARCH" in 98 case "$OS_ARCH:$CPU_ARCH" in
89- Linux:x86) 99- Linux:x86)
90+ Linux:x86|DragonFly:x86|*BSD:i386) 100+ Linux:x86|DragonFly:x86|*BSD:i386)
91 VPX_ASFLAGS="-f elf32 -rnasm -pnasm" 101 VPX_ASFLAGS="-f elf32 -rnasm -pnasm"
92 VPX_X86_ASM=1 102 VPX_X86_ASM=1
93 ;; 103 ;;
94- Linux:x86_64) 104- Linux:x86_64)
95+ Linux:x86_64|DragonFly:x86_64|*BSD:x86_64) 105+ Linux:x86_64|DragonFly:x86_64|*BSD:x86_64)
96 VPX_ASFLAGS="-f elf64 -rnasm -pnasm -DPIC" 106 VPX_ASFLAGS="-f elf64 -rnasm -pnasm -DPIC"
97 VPX_X86_ASM=1 107 VPX_X86_ASM=1
98 ;; 108 ;;
99@@ -8915,6 +8929,8 @@ if test -z "$MOZ_NATIVE_NSPR"; then 109@@ -8930,6 +8947,8 @@ if test -z "$MOZ_NATIVE_NSPR"; then
100 AC_MSG_WARN([Recreating autoconf.mk with updated nspr-config output]) 110 AC_MSG_WARN([Recreating autoconf.mk with updated nspr-config output])
101 if test "$OS_ARCH" != "WINNT"; then 111 if test "$OS_ARCH" != "WINNT"; then
102 NSPR_LIBS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --libdir=$LIBXUL_DIST/lib --libs` 112 NSPR_LIBS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --libdir=$LIBXUL_DIST/lib --libs`
103+ AC_MSG_WARN([pkgsrc: adding run path to NSPR_LIBS for bundled NSPR.]) 113+ AC_MSG_WARN([pkgsrc: adding run path to NSPR_LIBS for bundled NSPR.])
104+ NSPR_LIBS="-Wl,-R${prefix}/lib/\${MOZILLA_PKG_NAME} ${NSPR_LIBS}" 114+ NSPR_LIBS="-Wl,-R${prefix}/lib/\${MOZILLA_PKG_NAME} ${NSPR_LIBS}"
105 $PERL -pi.bak -e "s '^NSPR_LIBS\\s*=.*'NSPR_LIBS = $NSPR_LIBS'" config/autoconf.mk 115 $PERL -pi.bak -e "s '^NSPR_LIBS\\s*=.*'NSPR_LIBS = $NSPR_LIBS'" config/autoconf.mk
106 NSPR_CFLAGS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --includedir=$LIBXUL_DIST/include/nspr --cflags` 116 NSPR_CFLAGS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --includedir=$LIBXUL_DIST/include/nspr --cflags`
107 $PERL -pi.bak -e "s '^NSPR_CFLAGS\\s*=.*'NSPR_CFLAGS = $NSPR_CFLAGS'" config/autoconf.mk 117 $PERL -pi.bak -e "s '^NSPR_CFLAGS\\s*=.*'NSPR_CFLAGS = $NSPR_CFLAGS'" config/autoconf.mk

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

--- pkgsrc/mail/thunderbird10/patches/Attic/patch-ac 2012/03/15 09:45:29 1.1.1.1
+++ pkgsrc/mail/thunderbird10/patches/Attic/patch-ac 2012/12/24 21:14:19 1.2
@@ -1,27 +1,37 @@ @@ -1,27 +1,37 @@
1$NetBSD: patch-ac,v 1.1.1.1 2012/03/15 09:45:29 ryoon Exp $ 1$NetBSD: patch-ac,v 1.2 2012/12/24 21:14:19 joerg Exp $
2 2
3--- mozilla/nsprpub/configure.in.orig 2012-02-16 10:25:22.000000000 +0000 3--- mozilla/nsprpub/configure.in.orig 2012-11-15 21:59:50.000000000 +0000
4+++ mozilla/nsprpub/configure.in 4+++ mozilla/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@@ -1527,6 +1527,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@@ -2114,6 +2141,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@@ -2919,7 +2947,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@@ -2957,7 +2985,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@@ -3038,7 +3066,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/mail/thunderbird10/patches/Attic/patch-as (expand / switch to unified diff)

--- pkgsrc/mail/thunderbird10/patches/Attic/patch-as 2012/03/15 09:45:29 1.1.1.1
+++ pkgsrc/mail/thunderbird10/patches/Attic/patch-as 2012/12/24 21:14:19 1.2
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1$NetBSD: patch-as,v 1.1.1.1 2012/03/15 09:45:29 ryoon Exp $ 1$NetBSD: patch-as,v 1.2 2012/12/24 21:14:19 joerg Exp $
2 2
3Treat DragonFly like FreeBSD. 3Treat DragonFly like FreeBSD.
4 4
5--- mozilla/js/src/configure.in.orig 2012-02-16 10:25:02.000000000 +0000 5--- mozilla/js/src/configure.in.orig 2012-11-15 21:59:30.000000000 +0000
6+++ mozilla/js/src/configure.in 6+++ mozilla/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*)