Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 14 commits
  • 154 files changed
  • 0 commit comments
  • 3 contributors
Commits on Jan 10, 2013
ryoon Update to 10.0.12
* Sync with www/firefox10 10.0.12.
cdb975b
ryoon Update to 18.0
* Sync with www/firefox 18.0.
8dfd117
ryoon Update to 10.0.12
Changelog: from http://www.mozilla.org/en-US/thunderbird/10.0.12/releasenotes/
    FIXED
    Security fixes can be found here

MFSA 2013-20 Mis-issued TURKTRUST certificates
MFSA 2013-17 Use-after-free in ListenerManager
MFSA 2013-16 Use-after-free in serializeToStream
MFSA 2013-15 Privilege escalation through plugin objects
MFSA 2013-12 Buffer overflow in Javascript string concatenation
MFSA 2013-11 Address space layout leaked in XBL objects
MFSA 2013-09 Compartment mismatch with quickstubs returned values
MFSA 2013-05 Use-after-free when displaying table with many columns and column groups
MFSA 2013-04 URL spoofing in addressbar during page loads
MFSA 2013-02 Use-after-free and buffer overflow issues found using Address Sanitizer
MFSA 2013-01 Miscellaneous memory safety hazards (rv:18.0/ rv:10.0.12 / rv:17.0.2)
1244b1f
ryoon Updated mail/thunderbird10 to 10.0.12 160b038
ryoon Import xulrunner17-17.0.2 as devel/xulrunner17.
XULRunner is a runtime environment for applications using the
XML User Interface Language, XUL. It is the successor of the "Gecko"
runtime environment.

This package tracks 17.0.x extended support release.
a899118
ryoon Add xulrunner17 935c715
ryoon Import firefox17-17.0.2 as www/firefox17.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.

It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.

Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.

This package tracks 17.0.x extended support release.
1b7da74
ryoon Added devel/xulrunner17 version 17.0.2 b605915
ryoon Add firefox17 ae4b2a5
ryoon Added www/firefox17 version 17.0.2 86daeb6
adam Changes 3.7.15.2:
Fix a bug, introduced in version 3.7.15, that causes an ORDER BY clause to be optimized out of a three-way join when the ORDER BY is actually required.
d8e956a
adam Updated databases/sqlite3 to 3.7.15.2 1f4151d
wiz Update to 3.8.2, from Nils Ratusznik via pkgsrc-wip.
Changes:
- show error and ignore config if '{' is not present after log files declaration
- support whitespaces in compressoptions directive
- support for tilde expansion in config files
- fixed mail sending for 'mailfirst', 'dateext' and 'delaycompress' combination
- do not use gzip/gunzip from /usr/local on Solaris
- Do not include alloca.h on NetBSD, since alloca() is declared in stdlib.h there
39dc90d
wiz Updated sysutils/logrotate to 3.8.2 27f2cea
Showing with 11,210 additions and 631 deletions.
  1. +3 −3 databases/sqlite3-docs/Makefile
  2. +4 −4 databases/sqlite3-docs/distinfo
  3. +3 −3 databases/sqlite3-tcl/Makefile
  4. +4 −4 databases/sqlite3-tcl/distinfo
  5. +3 −3 databases/sqlite3/Makefile
  6. +4 −4 databases/sqlite3/distinfo
  7. +2 −1  devel/Makefile
  8. +5 −0 devel/xulrunner17/DESCR
  9. +79 −0 devel/xulrunner17/Makefile
  10. +4,831 −0 devel/xulrunner17/PLIST
  11. +28 −0 devel/xulrunner17/buildlink3.mk
  12. +17 −0 devel/xulrunner17/dist.mk
  13. +117 −0 devel/xulrunner17/distinfo
  14. +24 −0 devel/xulrunner17/hacks.mk
  15. +111 −0 devel/xulrunner17/mozilla-common.mk
  16. +45 −0 devel/xulrunner17/options.mk
  17. +82 −0 devel/xulrunner17/patches/patch-aa
  18. +22 −0 devel/xulrunner17/patches/patch-ab
  19. +82 −0 devel/xulrunner17/patches/patch-ac
  20. +13 −0 devel/xulrunner17/patches/patch-ad
  21. +58 −0 devel/xulrunner17/patches/patch-ae
  22. +32 −0 devel/xulrunner17/patches/patch-af
  23. +31 −0 devel/xulrunner17/patches/patch-ag
  24. +13 −0 devel/xulrunner17/patches/patch-ai
  25. +20 −0 devel/xulrunner17/patches/patch-aj
  26. +13 −0 devel/xulrunner17/patches/patch-ak
  27. +16 −0 devel/xulrunner17/patches/patch-al
  28. +17 −0 devel/xulrunner17/patches/patch-am
  29. +48 −0 devel/xulrunner17/patches/patch-an
  30. +15 −0 devel/xulrunner17/patches/patch-ao
  31. +24 −0 devel/xulrunner17/patches/patch-as
  32. +13 −0 devel/xulrunner17/patches/patch-at
  33. +30 −0 devel/xulrunner17/patches/patch-au
  34. +40 −0 devel/xulrunner17/patches/patch-av
  35. +34 −0 devel/xulrunner17/patches/patch-aw
  36. +13 −0 devel/xulrunner17/patches/patch-ax
  37. +46 −0 devel/xulrunner17/patches/patch-ay
  38. +19 −0 devel/xulrunner17/patches/patch-az
  39. +24 −0 devel/xulrunner17/patches/patch-ba
  40. +28 −0 devel/xulrunner17/patches/patch-bd
  41. +31 −0 devel/xulrunner17/patches/patch-bf
  42. +24 −0 devel/xulrunner17/patches/patch-bg
  43. +12 −0 devel/xulrunner17/patches/patch-bi
  44. +46 −0 devel/xulrunner17/patches/patch-build_autoconf_nss.m4
  45. +18 −0 devel/xulrunner17/patches/patch-config_baseconfig.mk
  46. +12 −0 devel/xulrunner17/patches/patch-config_system-headers
  47. +18 −0 devel/xulrunner17/patches/patch-content_media_nsAudioStream.cpp
  48. +39 −0 devel/xulrunner17/patches/patch-dom_plugins_ipc_PluginModuleChild.cpp
  49. +13 −0 devel/xulrunner17/patches/patch-dom_plugins_ipc_PluginModuleChild.h
  50. +24 −0 devel/xulrunner17/patches/patch-gfx_skia_src_sfnt_SkOTTable__head.h
  51. +24 −0 devel/xulrunner17/patches/patch-gfx_skia_src_sfnt_SkOTTable__name.h
  52. +24 −0 devel/xulrunner17/patches/patch-gfx_skia_src_sfnt_SkSFNTHeader.h
  53. +36 −0 devel/xulrunner17/patches/patch-gfx_thebes_gfxPlatform.cpp
  54. +38 −0 devel/xulrunner17/patches/patch-ipc_chromium_Makefile.in
  55. +100 −0 devel/xulrunner17/patches/patch-ipc_chromium_chromium-config.mk
  56. +13 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_base__paths.h
  57. +82 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_debug__util__posix.cc
  58. +117 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_dir__reader__bsd.h
  59. +27 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_dir__reader__posix.h
  60. +13 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_file__util__posix.cc
  61. +22 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_message__loop.cc
  62. +17 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_platform__thread.h
  63. +74 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc
  64. +37 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_process__util.h
  65. +372 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_process__util__bsd.cc
  66. +25 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_process__util__posix.cc
  67. +13 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_ref__counted.h
  68. +49 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_sys__info__posix.cc
  69. +15 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_thread__collision__warner.h
  70. +13 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_base_time__posix.cc
  71. +35 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_build_build__config.h
  72. +13 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_chrome_common_file__descriptor__set__posix.h
  73. +12 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_chrome_common_ipc__channel__posix.cc
  74. +13 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h
  75. +22 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_chrome_common_ipc__message__utils.h
  76. +31 −0 devel/xulrunner17/patches/patch-ipc_chromium_src_chrome_common_transport__dib.h
  77. +56 −0 devel/xulrunner17/patches/patch-ipc_glue_GeckoChildProcessHost.cpp
  78. +13 −0 devel/xulrunner17/patches/patch-ipc_glue_SharedMemorySysV.h
  79. +12 −0 devel/xulrunner17/patches/patch-js_src_config_system-headers
  80. +27 −0 devel/xulrunner17/patches/patch-js_src_jscpucfg.h
  81. +19 −0 devel/xulrunner17/patches/patch-js_src_jsgc.cpp
  82. +23 −0 devel/xulrunner17/patches/patch-js_src_jsinterp.cpp
  83. +16 −0 devel/xulrunner17/patches/patch-js_src_methodjit_MethodJIT.cpp
  84. +79 −0 devel/xulrunner17/patches/patch-mb
  85. +17 −0 devel/xulrunner17/patches/patch-md
  86. +15 −0 devel/xulrunner17/patches/patch-me
  87. +30 −0 devel/xulrunner17/patches/patch-media_libcubeb_src_Makefile.in
  88. +36 −0 devel/xulrunner17/patches/patch-media_libsydneyaudio_src_Makefile.in
  89. +14 −0 devel/xulrunner17/patches/patch-media_libsydneyaudio_src_sydney_audio_pulseaudio.c
  90. +21 −0 devel/xulrunner17/patches/patch-mf
  91. +90 −0 devel/xulrunner17/patches/patch-mg
  92. +13 −0 devel/xulrunner17/patches/patch-mh
  93. +13 −0 devel/xulrunner17/patches/patch-mi
  94. +15 −0 devel/xulrunner17/patches/patch-mj
  95. +31 −0 devel/xulrunner17/patches/patch-mk
  96. +14 −0 devel/xulrunner17/patches/patch-ml
  97. +30 −0 devel/xulrunner17/patches/patch-mm
  98. +15 −0 devel/xulrunner17/patches/patch-mn
  99. +17 −0 devel/xulrunner17/patches/patch-mp
  100. +21 −0 devel/xulrunner17/patches/patch-netwerk_protocol_http_HttpChannelParent.cpp
  101. +11 −0 devel/xulrunner17/patches/patch-pa
  102. +11 −0 devel/xulrunner17/patches/patch-pb
  103. +12 −0 devel/xulrunner17/patches/patch-pc
  104. +11 −0 devel/xulrunner17/patches/patch-pd
  105. +14 −0 devel/xulrunner17/patches/patch-pg
  106. +14 −0 devel/xulrunner17/patches/patch-rc
  107. +29 −0 devel/xulrunner17/patches/patch-storage_src_Makefile.in
  108. +47 −0 devel/xulrunner17/patches/patch-toolkit_components_osfile_osfileutils.cpp
  109. +24 −0 devel/xulrunner17/patches/patch-toolkit_library_Makefile.in
  110. +13 −0 devel/xulrunner17/patches/patch-toolkit_toolkit-tiers.mk
  111. +119 −0 devel/xulrunner17/patches/patch-xa
  112. +91 −0 devel/xulrunner17/patches/patch-xb
  113. +73 −0 devel/xulrunner17/patches/patch-xc
  114. +126 −0 devel/xulrunner17/patches/patch-xd
  115. +75 −0 devel/xulrunner17/patches/patch-xe
  116. +43 −0 devel/xulrunner17/patches/patch-xf
  117. +33 −0 devel/xulrunner17/patches/patch-xg
  118. +128 −0 devel/xulrunner17/patches/patch-xj
  119. +72 −0 devel/xulrunner17/patches/patch-xk
  120. +74 −0 devel/xulrunner17/patches/patch-xl
  121. +49 −0 devel/xulrunner17/patches/patch-xm
  122. +52 −0 devel/xulrunner17/patches/patch-xn
  123. +52 −0 devel/xulrunner17/patches/patch-xo
  124. +15 −0 devel/xulrunner17/patches/patch-xpcom_Makefile.in
  125. +20 −0 devel/xulrunner17/patches/patch-xpcom_ds_TimeStamp.h
  126. +15 −0 devel/xulrunner17/patches/patch-xpcom_idl-parser_Makefile.in
  127. +17 −0 devel/xulrunner17/patches/patch-xpcom_typelib_xpidl_Makefile.in
  128. +15 −0 devel/xulrunner17/patches/patch-xulrunner_installer_Makefile.in
  129. +25 −0 devel/xulrunner17/xpi.mk
  130. +8 −1 doc/CHANGES-2013
  131. +2 −2 mail/thunderbird10/Makefile
  132. +3 −1 mail/thunderbird10/PLIST
  133. +5 −8 mail/thunderbird10/distinfo
  134. +32 −3 mail/thunderbird10/patches/patch-ipc_chromium_src_base_debug__util__posic.cc
  135. +2 −2 sysutils/logrotate/MESSAGE
  136. +6 −6 sysutils/logrotate/Makefile
  137. +1 −1  sysutils/logrotate/PLIST
  138. +5 −8 sysutils/logrotate/distinfo
  139. +0 −17 sysutils/logrotate/patches/patch-config.c
  140. +0 −22 sysutils/logrotate/patches/patch-config.h
  141. +2 −2 sysutils/logrotate/patches/patch-examples_logrotate-default
  142. +0 −17 sysutils/logrotate/patches/patch-logrotate.c
  143. +2 −1  www/Makefile
  144. +3 −3 www/firefox-l10n/Makefile
  145. +171 −1 www/firefox-l10n/PLIST
  146. +256 −256 www/firefox-l10n/distinfo
  147. +2 −2 www/firefox10-l10n/Makefile
  148. +256 −256 www/firefox10-l10n/distinfo
  149. +12 −0 www/firefox17/DESCR
  150. +77 −0 www/firefox17/Makefile
  151. +744 −0 www/firefox17/PLIST
  152. +191 −0 www/firefox17/files/desktop.in
  153. +9 −0 www/firefox17/files/firefox.sh.in
  154. +17 −0 www/firefox17/options.mk
View
6 databases/sqlite3-docs/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2013/01/03 20:46:18 adam Exp $
+# $NetBSD: Makefile,v 1.16 2013/01/10 17:12:30 adam Exp $
-DISTNAME= sqlite-doc-3071501
-PKGNAME= sqlite3-docs-3.7.15.1
+DISTNAME= sqlite-doc-3071502
+PKGNAME= sqlite3-docs-3.7.15.2
CATEGORIES= databases
MASTER_SITES= http://www.hwaci.com/sw/sqlite/ \
http://www.sqlite.org/
View
8 databases/sqlite3-docs/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2013/01/03 20:46:18 adam Exp $
+$NetBSD: distinfo,v 1.15 2013/01/10 17:12:30 adam Exp $
-SHA1 (sqlite-doc-3071501.zip) = 3b33264eeb5594e0a1db5aee44ec48a1d1c28e5f
-RMD160 (sqlite-doc-3071501.zip) = a4eb66a35832048f96b486e1ed99c718d85634e5
-Size (sqlite-doc-3071501.zip) = 4114114 bytes
+SHA1 (sqlite-doc-3071502.zip) = 06076f7a5b3f5b4dad3803f96375bf3755cd0913
+RMD160 (sqlite-doc-3071502.zip) = de58cd72bb4b917860a33cca4df0f5597a5bd2b3
+Size (sqlite-doc-3071502.zip) = 4116611 bytes
View
6 databases/sqlite3-tcl/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.41 2013/01/03 20:46:18 adam Exp $
+# $NetBSD: Makefile,v 1.42 2013/01/10 17:12:30 adam Exp $
-DISTNAME= sqlite-autoconf-3071501
-PKGNAME= sqlite3-tcl-3.7.15.1
+DISTNAME= sqlite-autoconf-3071502
+PKGNAME= sqlite3-tcl-3.7.15.2
CATEGORIES= databases
MASTER_SITES= http://www.hwaci.com/sw/sqlite/ \
http://www.sqlite.org/
View
8 databases/sqlite3-tcl/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.27 2013/01/03 20:46:18 adam Exp $
+$NetBSD: distinfo,v 1.28 2013/01/10 17:12:30 adam Exp $
-SHA1 (sqlite-autoconf-3071501.tar.gz) = 0247b4ff581e7bacaad97663116a029ad1976f1c
-RMD160 (sqlite-autoconf-3071501.tar.gz) = ca45023d09ea99dc9685aaa7cab951c2c469cba6
-Size (sqlite-autoconf-3071501.tar.gz) = 1846768 bytes
+SHA1 (sqlite-autoconf-3071502.tar.gz) = 075732562183d560cd46a0d8d08b50bc44e34eac
+RMD160 (sqlite-autoconf-3071502.tar.gz) = 72f4e01a459634811f1cc621ccf0d954ef4fb1c3
+Size (sqlite-autoconf-3071502.tar.gz) = 1846778 bytes
SHA1 (patch-aa) = d4d0424eec39ede995c2c408dcf51876072d3fea
SHA1 (patch-ab) = 64a4352b9a8ed0518784837e390541cd4e1bc9aa
View
6 databases/sqlite3/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.59 2013/01/03 20:46:17 adam Exp $
+# $NetBSD: Makefile,v 1.60 2013/01/10 17:12:30 adam Exp $
-DISTNAME= sqlite-autoconf-3071501
-PKGNAME= sqlite3-3.7.15.1
+DISTNAME= sqlite-autoconf-3071502
+PKGNAME= sqlite3-3.7.15.2
CATEGORIES= databases
MASTER_SITES= http://www.hwaci.com/sw/sqlite/ \
http://www.sqlite.org/
View
8 databases/sqlite3/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.74 2013/01/03 20:46:17 adam Exp $
+$NetBSD: distinfo,v 1.75 2013/01/10 17:12:30 adam Exp $
-SHA1 (sqlite-autoconf-3071501.tar.gz) = 0247b4ff581e7bacaad97663116a029ad1976f1c
-RMD160 (sqlite-autoconf-3071501.tar.gz) = ca45023d09ea99dc9685aaa7cab951c2c469cba6
-Size (sqlite-autoconf-3071501.tar.gz) = 1846768 bytes
+SHA1 (sqlite-autoconf-3071502.tar.gz) = 075732562183d560cd46a0d8d08b50bc44e34eac
+RMD160 (sqlite-autoconf-3071502.tar.gz) = 72f4e01a459634811f1cc621ccf0d954ef4fb1c3
+Size (sqlite-autoconf-3071502.tar.gz) = 1846778 bytes
View
3  devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1685 2013/01/07 16:41:51 kleink Exp $
+# $NetBSD: Makefile,v 1.1686 2013/01/10 16:17:56 ryoon Exp $
#
COMMENT= Development utilities
@@ -1630,6 +1630,7 @@ SUBDIR+= xorg-util-macros
SUBDIR+= xsd
SUBDIR+= xulrunner
SUBDIR+= xulrunner10
+SUBDIR+= xulrunner17
SUBDIR+= xulrunner192
SUBDIR+= xxgdb
SUBDIR+= yajl
View
5 devel/xulrunner17/DESCR
@@ -0,0 +1,5 @@
+XULRunner is a runtime environment for applications using the
+XML User Interface Language, XUL. It is the successor of the "Gecko"
+runtime environment.
+
+This package tracks 17.0.x extended support release.
View
79 devel/xulrunner17/Makefile
@@ -0,0 +1,79 @@
+# $NetBSD: Makefile,v 1.1 2013/01/10 16:17:09 ryoon Exp $
+
+.include "dist.mk"
+PKGNAME= xulrunner17-${MOZ_BRANCH}${MOZ_BRANCH_MINOR:S/esr//}
+CATEGORIES= devel www
+
+MAINTAINER= tnn@NetBSD.org
+HOMEPAGE= http://developer.mozilla.org/en/docs/XULRunner
+COMMENT= XML User Interface Language runtime environment
+LICENSE= mpl-1.1
+
+MOZILLA_DIR= # empty
+
+PKGCONFIG_OVERRIDE+= xulrunner/installer/libxul-embedding.pc.in
+PKGCONFIG_OVERRIDE+= xulrunner/installer/libxul.pc.in
+PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-gtkmozembed-embedding.pc.in
+PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-gtkmozembed.pc.in
+PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-js.pc.in
+PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-nspr.pc.in
+PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-nss.pc.in
+PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-plugin.pc.in
+
+CONFIGURE_ARGS+= --enable-application=xulrunner
+CONFIGURE_ARGS+= --enable-libxul
+
+ALL_ENV+= MOZILLA_PKG_NAME=xulrunner17
+
+MAKE_ENV+= FREEBL_NO_DEPEND=0
+
+# workround for link of xulrunner-bin etc.
+LDFLAGS+= -Wl,-rpath,${PREFIX}/lib/xulrunner17 ${COMPILER_RPATH_FLAG}${PREFIX}/lib
+
+.include "mozilla-common.mk"
+.include "options.mk"
+
+PLIST_VARS+= sps webrtc vorbis tremor
+
+.if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) || ${OPSYS} == "Darwin"
+PLIST.sps= yes
+.endif
+.if ${OPSYS} == "Linux" || ${OPSYS} == "Darwin"
+PLIST.webrtc= yes
+.endif
+
+.if !empty(MACHINE_PLATFORM:MLinux-*-arm*) || ${OPSYS} == "DragonFly" \
+ || ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+PLIST.tremor= yes
+.else
+PLIST.vorbis= yes
+.endif
+
+pre-configure:
+ cd ${WRKSRC} && autoconf
+ cd ${WRKSRC}/js/src && autoconf
+
+post-install:
+ # XXX fix the pkg-config files instead
+ mkdir ${DESTDIR}${PREFIX}/lib/xulrunner17-sdk/sdk/lib
+ rm -f ${DESTDIR}${PREFIX}/lib/xulrunner17/libxpcomglue.a
+ ln -s ${PREFIX}/lib/xulrunner17-sdk/sdk/lib/libxpcomglue.a \
+ ${DESTDIR}${PREFIX}/lib/xulrunner17/libxpcomglue.a
+ rm -f ${DESTDIR}${PREFIX}/lib/xulrunner17/libxpcomglue_s.a
+ ln -s ${PREFIX}/lib/xulrunner17-sdk/sdk/lib/libxpcomglue_s.a \
+ ${DESTDIR}${PREFIX}/lib/xulrunner17/libxpcomglue_s.a
+ rm -f ${DESTDIR}${PREFIX}/lib/xulrunner17/libunicharutil_external_s.a
+ ln -s ${PREFIX}/lib/xulrunner17-sdk/sdk/lib/libunicharutil_external_s.a \
+ ${DESTDIR}${PREFIX}/lib/xulrunner17/libunicharutil_external_s.a
+ ${TOUCH} ${TOUCH_FLAGS} ${DESTDIR}${PREFIX}/include/xulrunner17/mozilla/throw_gcc.h
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/lib/xulrunner17-sdk/sdk/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/dist/sdk/bin/xpt.py \
+ ${DESTDIR}${PREFIX}/lib/xulrunner17-sdk/sdk/bin
+ ${INSTALL_LIB} ${WRKSRC}/mozglue/build/libmozglue.a \
+ ${DESTDIR}${PREFIX}/lib/xulrunner17
+ ${INSTALL_LIB} ${WRKSRC}/mozglue/build/libmozglue.a \
+ ${DESTDIR}${PREFIX}/lib/xulrunner17-sdk/sdk/lib
+ ln -s ${PREFIX}/lib/xulrunner17/lib \
+ ${DESTDIR}${PREFIX}/lib/xulrunner17-sdk/lib
+
+.include "../../mk/bsd.pkg.mk"
View
4,831 devel/xulrunner17/PLIST
4,831 additions, 0 deletions not shown
View
28 devel/xulrunner17/buildlink3.mk
@@ -0,0 +1,28 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/01/10 16:17:09 ryoon Exp $
+
+BUILDLINK_TREE+= xulrunner17
+
+.if !defined(XULRUNNER17_BUILDLINK3_MK)
+XULRUNNER17_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.xulrunner17+= xulrunner17>=17.0.2
+BUILDLINK_ABI_DEPENDS.xulrunner17+= xulrunner17>=17.0.2
+BUILDLINK_PKGSRCDIR.xulrunner17?= ../../devel/xulrunner17
+
+BUILDLINK_INCDIRS.xulrunner17+= lib/xulrunner17-sdk/include
+BUILDLINK_INCDIRS.xulrunner17+= include/xulrunner17
+BUILDLINK_FILES.xulrunner17+= lib/xulrunner17-sdk/include/*.h
+
+BUILDLINK_LIBDIRS.xulrunner17+= lib/xulrunner17-sdk/lib
+BUILDLINK_FILES.xulrunner17+= lib/xulrunner17-sdk/lib/*.so
+
+pkgbase := xulrunner17
+.include "../../mk/pkg-build-options.mk"
+.if !empty(PKG_BUILD_OPTIONS.xulrunner:Mgnome)
+. include "../../devel/libgnomeui/buildlink3.mk"
+. include "../../sysutils/gnome-vfs/buildlink3.mk"
+.endif
+.include "../../devel/nspr/buildlink3.mk"
+.endif # XULRUNNER17_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -xulrunner17
View
17 devel/xulrunner17/dist.mk
@@ -0,0 +1,17 @@
+# $NetBSD: dist.mk,v 1.1 2013/01/10 16:17:09 ryoon Exp $
+#
+# used by devel/xulrunner17/Makefile
+# used by www/firefox17/Makefile
+
+DISTNAME= firefox-${FIREFOX_VER}.source
+FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
+MOZ_BRANCH= 17.0.2
+MOZ_BRANCH_MINOR= esr
+MASTER_SITES= ${MASTER_SITE_MOZILLA_ESR:=firefox/releases/${FIREFOX_VER}/source/} \
+ ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/}
+EXTRACT_SUFX= .tar.bz2
+
+DISTINFO_FILE= ${.CURDIR}/../../devel/xulrunner17/distinfo
+PATCHDIR= ${.CURDIR}/../../devel/xulrunner17/patches
+
+WRKSRC= ${WRKDIR}/mozilla-esr17
View
117 devel/xulrunner17/distinfo
@@ -0,0 +1,117 @@
+$NetBSD: distinfo,v 1.1 2013/01/10 16:17:09 ryoon Exp $
+
+SHA1 (firefox-17.0.2esr.source.tar.bz2) = cb870108f597bdab7e6931f5edc697d57479e4e6
+RMD160 (firefox-17.0.2esr.source.tar.bz2) = a3f83b8af95902ae4569aeaf1a2baaa030eaeacf
+Size (firefox-17.0.2esr.source.tar.bz2) = 90852275 bytes
+SHA1 (patch-aa) = a8422401e1908e4564afac7e017bf0643f7ac911
+SHA1 (patch-ab) = b0d7975a291c63e07773e13b023f71e88c883128
+SHA1 (patch-ac) = 18640ddf00b7da9276fd67d95bd6f1b191a99d4f
+SHA1 (patch-ad) = cf84430cb1d9c22caf6beaa89288f90577ae6352
+SHA1 (patch-ae) = 2d1ffba3f41564d672d05968ff09b188c904fd73
+SHA1 (patch-af) = 3dc276155f456a66ce0db9d1a0427d8f11cb74aa
+SHA1 (patch-ag) = c236c83c7b6a64c19c01010d19cad0120250047c
+SHA1 (patch-ai) = ec2a8bce48ec8a27066667d367cf1bac4874462b
+SHA1 (patch-aj) = 25008e1761306f90a31b4e2bff4dc52b2d8167de
+SHA1 (patch-ak) = 7cebf3e58ad14598fbe98c3d730c8a548c0bda1e
+SHA1 (patch-al) = 140f77112c463df90fe0dcd4173c5d6945395d4f
+SHA1 (patch-am) = edf385051147a8d255a6c0737f574fa353b53d38
+SHA1 (patch-an) = a6e6072403a9d3295ec861275abd4587a8bca97d
+SHA1 (patch-ao) = 1f0791171392922e1a6a19c0a06c1e2a9b98e030
+SHA1 (patch-as) = c8e3aa309ae5115a8f4c17d477674f93afead538
+SHA1 (patch-at) = bd72ea66e1e4baed7f16d81ed8668b5f549ebfa3
+SHA1 (patch-au) = 6ee00994f01a1d63635d92a2df7b306ff5c6ad2a
+SHA1 (patch-av) = 8b79660aeb6a7d80daae01dff410e343803aa9d0
+SHA1 (patch-aw) = 574722c44e9a961f92b35e797def541fbd8fddf5
+SHA1 (patch-ax) = d3d0a10222c7d826d74651153e65a10800dc1b8e
+SHA1 (patch-ay) = 1e554e23ea357204e98c7f7cdf52ea38e6d9be6a
+SHA1 (patch-az) = 65fbb56de12fe648cb731ee75b0d05090c03a78f
+SHA1 (patch-ba) = 6a5ae4c5251aea60650c3a7dff63076062c86dd3
+SHA1 (patch-bd) = c8ed2110c8b699d6880723dccf62e6976edfa65e
+SHA1 (patch-bf) = 7d18ec3cad441174a71770e7fa22b1cd2029d55b
+SHA1 (patch-bg) = a629ee2d31aefb366ed50a1e7bd5dba51a39dc68
+SHA1 (patch-bi) = 6ae67da19d32bc3e7fc09a32c50c4635f28fe1e6
+SHA1 (patch-build_autoconf_nss.m4) = b4da991ed606fcadcb6582b4c7213e1c83ee811f
+SHA1 (patch-config_baseconfig.mk) = 8fc7a064bda66c91488e27e7d49e615e49540c7d
+SHA1 (patch-config_system-headers) = d7d4b5ba0677cbb92dc2ca70cd387b7d88b79f63
+SHA1 (patch-content_media_nsAudioStream.cpp) = 75c9fc45d464ee332271142c3e29b826b6254d49
+SHA1 (patch-dom_plugins_ipc_PluginModuleChild.cpp) = 66d023227b46582d30961cfac15506b9f29c23de
+SHA1 (patch-dom_plugins_ipc_PluginModuleChild.h) = cba2ea71973b3717b29052e131eb278cec972ebd
+SHA1 (patch-gfx_skia_src_sfnt_SkOTTable__head.h) = a50b21dc02ee5ae2b053ba574b592679350396ad
+SHA1 (patch-gfx_skia_src_sfnt_SkOTTable__name.h) = a13668dbb5f1b6099b1701291f28b2b272b35353
+SHA1 (patch-gfx_skia_src_sfnt_SkSFNTHeader.h) = c3f6c6d11201c0fae4e3978a370f48eefbc09370
+SHA1 (patch-gfx_thebes_gfxPlatform.cpp) = 775c13ca6a77b3f39f23e15fbbcf4b1cae4e9478
+SHA1 (patch-ipc_chromium_Makefile.in) = c2d339b32050e772dea05790d61f291d9a52e06f
+SHA1 (patch-ipc_chromium_chromium-config.mk) = 24b1fe7cc7f3f14dd8a79f8eedf6f3638c304020
+SHA1 (patch-ipc_chromium_src_base_base__paths.h) = 0b8e231055cde854f31b9aa44392692a53d806f0
+SHA1 (patch-ipc_chromium_src_base_debug__util__posix.cc) = c00b594a40c4222261a0ad4f7ddbc804028aec16
+SHA1 (patch-ipc_chromium_src_base_dir__reader__bsd.h) = 767160e3099d7bd4eb58dc24ed207417acdf098a
+SHA1 (patch-ipc_chromium_src_base_dir__reader__posix.h) = d6dd15f644de3fa755f8c9be9190eb4092295091
+SHA1 (patch-ipc_chromium_src_base_file__util__posix.cc) = 96a5a0d4b61ec69b80db3c9ff212d7a7a3d506f6
+SHA1 (patch-ipc_chromium_src_base_message__loop.cc) = c53a8962a197a3160087ad31e1a55f647a8d8fc8
+SHA1 (patch-ipc_chromium_src_base_platform__thread.h) = 1f6eb9d0da16b415df6c2ced4e507d1cbf7dfdae
+SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = e4560021d85abf96182b8e0c0a5a52e1213fdb31
+SHA1 (patch-ipc_chromium_src_base_process__util.h) = f0e705d9e7951d12225ad132f462527651d3b1be
+SHA1 (patch-ipc_chromium_src_base_process__util__bsd.cc) = c3e578b78234bee0b48b20affcb057497d94f3bf
+SHA1 (patch-ipc_chromium_src_base_process__util__posix.cc) = 4644a4a2f37fae689b5997eda1c9b548372fa252
+SHA1 (patch-ipc_chromium_src_base_ref__counted.h) = 89d6be3faaed51c7ed2e49ee8698d730916ce12f
+SHA1 (patch-ipc_chromium_src_base_sys__info__posix.cc) = ce9b899f181d8339110d3a9a151bff9ab734df42
+SHA1 (patch-ipc_chromium_src_base_thread__collision__warner.h) = 232c10f763875930fb7de39555629f4c4fc15f35
+SHA1 (patch-ipc_chromium_src_base_time__posix.cc) = 986f4a648d812c67248bd5e2c7b96963f2aa1a03
+SHA1 (patch-ipc_chromium_src_build_build__config.h) = 041342ccb534e8e3b07cf454e1f3bd61372b376b
+SHA1 (patch-ipc_chromium_src_chrome_common_file__descriptor__set__posix.h) = 3cd047d60e91d85458812796950c4eb8b153bd0b
+SHA1 (patch-ipc_chromium_src_chrome_common_ipc__channel__posix.cc) = 2b176b9bc689cec41542aa00f5201e27ca694594
+SHA1 (patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h) = 2258766f2c57323c90fadfc7b95e0a1b04ca4655
+SHA1 (patch-ipc_chromium_src_chrome_common_ipc__message__utils.h) = 84a078bdf4e8478bac30a3ff85ff286081a866db
+SHA1 (patch-ipc_chromium_src_chrome_common_transport__dib.h) = 15146bd327bb51b8de0783ff28b70201e3bfa532
+SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = be69744c199bae64c41455ff31efe2498b859414
+SHA1 (patch-ipc_glue_SharedMemorySysV.h) = c82d7fd5f1a099da175107401c725cfd5ea81845
+SHA1 (patch-js_src_config_system-headers) = 86f1aa66f8a35d6967c2cd03d05b6dd57209a690
+SHA1 (patch-js_src_jscpucfg.h) = afce65ca5964fb732d96cf22902f89cd02aedf0d
+SHA1 (patch-js_src_jsgc.cpp) = 0e617094a4b7d87cdf801d9bc4ac1f52d909a12a
+SHA1 (patch-js_src_jsinterp.cpp) = bee8bdde7dd951dbfbe5b049eb502f7412fbf8e6
+SHA1 (patch-js_src_methodjit_MethodJIT.cpp) = f2b12fa554ec319b5848b1cc13ec17ef967b08d7
+SHA1 (patch-mb) = d1348344ad269df7008d857417551c594c9b9195
+SHA1 (patch-md) = 1369069901aacaa47d76753772236fe159d42362
+SHA1 (patch-me) = 93d5ef914cb00389cd5c2d92d228f47ec2436cb3
+SHA1 (patch-media_libcubeb_src_Makefile.in) = a5026b121bca81043340104d331b6343953d5dc8
+SHA1 (patch-media_libsydneyaudio_src_Makefile.in) = 7e55e41cdbcd193f57beb417e4b5c3511e8ddae0
+SHA1 (patch-media_libsydneyaudio_src_sydney_audio_pulseaudio.c) = 75b828c074ccc71ff430795e2b044bebd8ff69eb
+SHA1 (patch-mf) = c871b1164d046ea94413ef743f84be67e739f595
+SHA1 (patch-mg) = 22dde266ee9d46d8de574103d1cc7035092e1b0a
+SHA1 (patch-mh) = 8c56d7467e90944be186300386b6a5106e087ac7
+SHA1 (patch-mi) = 56bf4b5900eef022e9959e9287dadd479a725ed6
+SHA1 (patch-mj) = a29a3b2189103526d0cc040459d6f0b11b77f837
+SHA1 (patch-mk) = 1d807321755d4a377fe4979a2e8d618a363faadf
+SHA1 (patch-ml) = 71c4eb8822755dd17cd4add11687d8cf52a12f6f
+SHA1 (patch-mm) = 2ba1f9bd6836141d819abf046c4b0b3431d777f9
+SHA1 (patch-mn) = 621eeb1c76e52b61f8c8b11e6708131900fd5df7
+SHA1 (patch-mp) = 2dc3ae213ce41b5c68105b8d90ef1ce81f0029bc
+SHA1 (patch-netwerk_protocol_http_HttpChannelParent.cpp) = bf2e996bcc652cca29ca84d9c371b42627a512a9
+SHA1 (patch-pa) = 9915705356618a279157faa0b717fa723fb3f9e7
+SHA1 (patch-pb) = 071ab20321db75dfa42b904da591a36d7717e175
+SHA1 (patch-pc) = 4adf1ca58e0cda1e04916f90b3539b1ab5311915
+SHA1 (patch-pd) = c6b261264770c8a5eda31690b37f7eb992333f2a
+SHA1 (patch-pg) = a89cb4b92f974d32d4a309a4628f32aff306de71
+SHA1 (patch-rc) = 13b0253d166cac6b4b1e7efaba006e37015cbbdb
+SHA1 (patch-storage_src_Makefile.in) = 3f9a4bc71a6b64df819bbce6dbae18705d2183ac
+SHA1 (patch-toolkit_components_osfile_osfileutils.cpp) = 08935fcd03e3047317df3fe115596383b008c2e9
+SHA1 (patch-toolkit_library_Makefile.in) = 4193e7bafdac62a84c5a5ce4a21f0c616ce51362
+SHA1 (patch-toolkit_toolkit-tiers.mk) = 7c878d6d4a2ad3ddaa353d6f56d4954b7861d1ad
+SHA1 (patch-xa) = 5b66ed59bc9603a059e11695ae4c380093b36157
+SHA1 (patch-xb) = 45e1b549551d2cc9da65b2693daf696fc65f1f38
+SHA1 (patch-xc) = 08de89bfc136e7bf9e30833866eeeaef2060bc19
+SHA1 (patch-xd) = 4cb58b22dec1b05f75954d439c2b2b52e7a2f00a
+SHA1 (patch-xe) = c0a1860c4f566e3a8a21e1e813c4812970bc4d3d
+SHA1 (patch-xf) = 507fe6d488c75c754177eb6aead27846512fda1f
+SHA1 (patch-xg) = be3d4307a239e5bc8fbadde53a46a4de3faa4bb4
+SHA1 (patch-xj) = 6c8767ea4b39431ca82807f31f234f2cc61d832b
+SHA1 (patch-xk) = cc196485c4e61cf655445910ee069352e3174756
+SHA1 (patch-xl) = bb190eab6e68508e10da5d454b8dcbaebca4a3b0
+SHA1 (patch-xm) = aab7aa76909b520b9c1fdc5a27c4ec440e060cce
+SHA1 (patch-xn) = 27ca333ce018a5f72278461a55d141c063ac98ca
+SHA1 (patch-xo) = 3d875dad673a47b2059b8eea9f41fe9e370295d5
+SHA1 (patch-xpcom_Makefile.in) = c44608dc176900c3ce49fb7059e42e404a7c6df3
+SHA1 (patch-xpcom_ds_TimeStamp.h) = 99a590ea3cf6ada0c6e8781f5b39bff46a6990b9
+SHA1 (patch-xpcom_idl-parser_Makefile.in) = 0382a7ab00c2e7245f5ddbbe5a50036a8ae418ef
+SHA1 (patch-xpcom_typelib_xpidl_Makefile.in) = 4821d564e467494f65e70bb9ecec7cac2754ca0c
+SHA1 (patch-xulrunner_installer_Makefile.in) = 731320484661a789a454ed2f7d770a1a12aa2554
View
24 devel/xulrunner17/hacks.mk
@@ -0,0 +1,24 @@
+# $NetBSD: hacks.mk,v 1.1 2013/01/10 16:17:09 ryoon Exp $
+
+.if !defined(XULRUNNER_HACKS_MK)
+XULRUNNER_HACKS_MK= defined
+
+.include "../../mk/bsd.fast.prefs.mk"
+.include "../../mk/compiler.mk"
+
+# PR pkg/44912: gcc generates unaligned SSE2 references
+.if !empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[0-3]*) && (!empty(MACHINE_PLATFORM:M*-*-i386) || !empty(MACHINE_PLATFORM:M*-*-x86_64))
+PKG_HACKS+= optimization
+BUILDLINK_TRANSFORM+= rm:-march=[-_A-Za-z0-9]*
+SUBST_CLASSES+= opt-hack
+SUBST_STAGE.opt-hack= post-patch
+SUBST_MESSAGE.opt-hack= Working around optimizer bug.
+SUBST_FILES.opt-hack= ${MOZILLA_DIR}gfx/skia/Makefile.in
+SUBST_SED.opt-hack= -e '/SkBlitRow_opts_SSE2/s/-msse2/-msse2 -O0/'
+.endif
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CXXFLAGS+= -Wno-return-type-c-linkage
+.endif
+
+.endif # XULRUNNER_HACKS_MK
View
111 devel/xulrunner17/mozilla-common.mk
@@ -0,0 +1,111 @@
+# $NetBSD: mozilla-common.mk,v 1.1 2013/01/10 16:17:09 ryoon Exp $
+#
+# common Makefile fragment for mozilla packages based on gecko 2.0.
+#
+# used by devel/xulrunner17/Makefile
+# used by mail/thunderbird17/Makefile
+# used by www/firefox17/Makefile
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip
+USE_LANGUAGES+= c99 c++
+UNLIMIT_RESOURCES+= datasize
+
+CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh
+CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh
+CHECK_INTERPRETER_SKIP+=lib/xulrunner17-sdk/sdk/bin/xpt.py
+
+CONFIGURE_ARGS+= --disable-tests --disable-pedantic
+CONFIGURE_ARGS+= --enable-crypto
+CONFIGURE_ARGS+= --enable-optimize=-O2 --with-pthreads
+CONFIGURE_ARGS+= --disable-javaxpcom
+CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2
+CONFIGURE_ARGS+= --enable-svg --enable-mathml
+CONFIGURE_ARGS+= --enable-system-cairo
+CONFIGURE_ARGS+= --enable-system-pixman
+CONFIGURE_ARGS+= --with-system-libvpx
+CONFIGURE_ARGS+= --enable-system-hunspell
+CONFIGURE_ARGS+= --enable-system-ffi
+CONFIGURE_ARGS+= --with-system-nss
+CONFIGURE_ARGS+= --with-system-nspr
+CONFIGURE_ARGS+= --with-system-jpeg
+CONFIGURE_ARGS+= --with-system-zlib --with-system-bz2
+CONFIGURE_ARGS+= --with-system-libevent=${BUILDLINK_PREFIX.libevent}
+CONFIGURE_ARGS+= --enable-system-sqlite
+CONFIGURE_ARGS+= --disable-crashreporter
+CONFIGURE_ARGS+= --disable-libnotify
+CONFIGURE_ARGS+= --disable-necko-wifi
+CONFIGURE_ARGS+= --enable-chrome-format=flat
+
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= pre-configure
+SUBST_MESSAGE.fix-paths= Fixing absolute paths.
+SUBST_FILES.fix-paths= ${MOZILLA_DIR}xpcom/build/nsXPCOMPrivate.h
+SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp
+SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g'
+
+CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess
+CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess
+CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess
+CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess
+CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub
+CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub
+CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub
+CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub
+
+PYTHON_FOR_BUILD_ONLY= yes
+.include "../../lang/python/application.mk"
+CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
+
+#
+# pysqlite2 is used by xulrunner's Python virtualenv. If pysqlite2 isn't
+# installed at build time it will attempt to download it instead, so the
+# problem is stealthy in a networked environment, and obvious in an
+# offline environment.
+#
+BUILD_DEPENDS+= ${PYPKGPREFIX}-sqlite2-[0-9]*:../../databases/py-sqlite2
+
+# Makefiles sometimes call "rm -f" without more arguments. Kludge around ...
+.PHONY: create-rm-wrapper
+pre-configure: create-rm-wrapper
+create-rm-wrapper:
+ printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \
+ ${WRAPPER_DIR}/bin/rm
+ chmod +x ${WRAPPER_DIR}/bin/rm
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+# The configure test for __thread succeeds, but later we end up with:
+# dist/bin/libxul.so: undefined reference to `__tls_get_addr'
+CONFIGURE_ENV+= ac_cv_thread_keyword=no
+.endif
+
+.if ${OPSYS} == "SunOS"
+# native libbz2.so hides BZ2_crc32Table
+PREFER.bzip2?= pkgsrc
+.endif
+
+.if ${OPSYS} == "Linux"
+.include "../../audio/alsa-lib/buildlink3.mk"
+.endif
+.include "../../archivers/bzip2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.7.12.1
+CONFIGURE_ENV+= ac_cv_sqlite_secure_delete=yes # c.f. patches/patch-al
+.include "../../databases/sqlite3/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../devel/libffi/buildlink3.mk"
+.include "../../devel/nspr/buildlink3.mk"
+.include "../../devel/nss/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../multimedia/libvpx/buildlink3.mk"
+.include "../../net/libIDL/buildlink3.mk"
+.include "../../textproc/hunspell/buildlink3.mk"
+BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.18.3nb1
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
View
45 devel/xulrunner17/options.mk
@@ -0,0 +1,45 @@
+# $NetBSD: options.mk,v 1.1 2013/01/10 16:17:09 ryoon Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xulrunner
+PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome pulseaudio
+
+PLIST_VARS+= gnome jemalloc debug
+
+.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
+PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgnome)
+.include "../../devel/libgnomeui/buildlink3.mk"
+.include "../../sysutils/gnome-vfs/buildlink3.mk"
+.include "../../sysutils/libnotify/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
+CONFIGURE_ARGS+= --enable-libnotify
+PLIST.gnome= yes
+.else
+CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
+CONFIGURE_ARGS+= --disable-libnotify
+.endif
+
+.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
+PLIST.jemalloc= yes
+CONFIGURE_ARGS+= --enable-jemalloc
+.else
+CONFIGURE_ARGS+= --disable-jemalloc
+.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
+CONFIGURE_ARGS+= --disable-install-strip
+PLIST.debug= yes
+.else
+CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
+CONFIGURE_ARGS+= --enable-install-strip
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-pulseaudio
+.endif
View
82 devel/xulrunner17/patches/patch-aa
@@ -0,0 +1,82 @@
+$NetBSD: patch-aa,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- configure.in.orig 2012-11-29 04:43:55.000000000 +0000
++++ configure.in
+@@ -2080,6 +2080,9 @@ ia64*-hpux*)
+ if test -z "$MC"; then
+ MC=mc.exe
+ fi
++ if test "$LIBRUNPATH"; then
++ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
++ fi
+ ;;
+ *-mingw*)
+ DSO_CFLAGS=
+@@ -2979,6 +2982,9 @@ dnl ====================================
+ case $target in
+ *-hpux11.*)
+ ;;
++*-dragonfly*)
++ AC_CHECK_LIB(c, gethostbyname_r)
++ ;;
+ *)
+ AC_CHECK_LIB(c_r, gethostbyname_r)
+ ;;
+@@ -3279,6 +3285,9 @@ AC_CACHE_CHECK(
+ #ifdef linux
+ #define _BSD_SOURCE 1
+ #endif
++ #ifdef __NetBSD__
++ #error use of global _res variable in threaded programs is not portable
++ #endif
+ #include <resolv.h>
+ ],
+ [int foo = res_ninit(&_res);],
+@@ -3947,6 +3956,14 @@ if test -n "$YASM"; then
+ _YASM_BUILD=` echo ${YASM_VERSION} | $AWK -F\. '{ print $4 }'`
+ fi
+
++if test -n "${LIBXUL_SDK_DIR}"; then
++ AC_MSG_WARN([pkgsrc: LIBXUL_SDK_DIR is set; assuming we want nss and nspr from xulrunner.])
++ NSPR_CFLAGS="-I${prefix}/include/xulrunner/unstable `pkg-config --cflags mozilla-nspr`"
++ NSPR_LIBS="`pkg-config --libs mozilla-nspr`"
++ NSS_CFLAGS="`pkg-config --cflags mozilla-nss`"
++ NSS_LIBS="`pkg-config --libs mozilla-nss`"
++fi
++
+ if test -z "$SKIP_LIBRARY_CHECKS"; then
+ dnl system JPEG support
+ dnl ========================================================
+@@ -5158,8 +5175,8 @@ fi
+
+ AC_SUBST(MOZ_WEBRTC)
+
+-case "$target_cpu" in
+-arm*)
++case "$target" in
++arm-*-linux*|*-dragonfly*|*-freebsd*|*-netbsd*|*-openbsd*)
+ MOZ_SAMPLE_TYPE_S16LE=1
+ AC_DEFINE(MOZ_SAMPLE_TYPE_S16LE)
+ AC_SUBST(MOZ_SAMPLE_TYPE_S16LE)
+@@ -5356,11 +5373,11 @@ if test -n "$MOZ_VP8" -a -z "$MOZ_NATIVE
+
+ dnl See if we have assembly on this platform.
+ case "$OS_ARCH:$CPU_ARCH" in
+- Linux:x86)
++ Linux:x86|DragonFly:x86|*BSD:i386)
+ VPX_ASFLAGS="-f elf32 -rnasm -pnasm"
+ VPX_X86_ASM=1
+ ;;
+- Linux:x86_64)
++ Linux:x86_64|DragonFly:x86_64|*BSD:x86_64)
+ VPX_ASFLAGS="-f elf64 -rnasm -pnasm -DPIC"
+ VPX_X86_ASM=1
+ ;;
+@@ -8544,6 +8561,7 @@ AC_SUBST(MOZ_VP8_ERROR_CONCEALMENT)
+ AC_SUBST(MOZ_VP8_ENCODER)
+ AC_SUBST(MOZ_VP8)
+ AC_SUBST(MOZ_OGG)
++AC_SUBST(MOZ_ALSA)
+ AC_SUBST(MOZ_ALSA_LIBS)
+ AC_SUBST(MOZ_ALSA_CFLAGS)
+ AC_SUBST(VPX_AS)
View
22 devel/xulrunner17/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- nsprpub/pr/include/md/_netbsd.h.orig 2012-08-24 22:55:59.000000000 +0000
++++ nsprpub/pr/include/md/_netbsd.h
+@@ -47,7 +47,7 @@
+ #define HAVE_DLL
+ #define USE_DLFCN
+ #define _PR_HAVE_SOCKADDR_LEN
+-#define _PR_NO_LARGE_FILES
++#define _PR_HAVE_LARGE_OFF_T
+ #define _PR_STAT_HAS_ST_ATIMESPEC
+ #define _PR_POLL_AVAILABLE
+ #define _PR_USE_POLL
+@@ -75,6 +75,8 @@
+ #define JB_SP_INDEX 2
+ #elif defined(__mips__)
+ #define JB_SP_INDEX 4
++#elif defined(__amd64__)
++#define JB_SP_INDEX 6
+ #elif defined(__alpha__)
+ #define JB_SP_INDEX 34
+ #elif defined(__arm32__)
View
82 devel/xulrunner17/patches/patch-ac
@@ -0,0 +1,82 @@
+$NetBSD: patch-ac,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- nsprpub/configure.in.orig 2012-08-24 22:55:59.000000000 +0000
++++ nsprpub/configure.in
+@@ -36,7 +36,7 @@ OBJDIR_NAME=.
+ OBJDIR_SUFFIX=OBJ
+ NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
+ NOSUCHFILE=/no-such-file
+-LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
++LIBNSPR='-Wl,-R${prefix}/lib/${MOZILLA_PKG_NAME} -L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
+ LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
+ CYGWIN_WRAPPER=
+ MACOS_SDK_DIR=
+@@ -1519,6 +1519,33 @@ tools are selected during the Xcode/Deve
+ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
+ MDCPUCFG_H=_freebsd.cfg
+ PR_MD_CSRCS=freebsd.c
++ if test "$LIBRUNPATH"; then
++ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
++ fi
++ ;;
++
++*-dragonfly*)
++ if test -z "$USE_NSPR_THREADS"; then
++ USE_PTHREADS=1
++ fi
++ AC_DEFINE(XP_UNIX)
++ AC_DEFINE(HAVE_BSD_FLOCK)
++ AC_DEFINE(HAVE_SOCKLEN_T)
++ CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
++ MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
++ if test "$MOZ_OBJFORMAT" = "elf"; then
++ DLL_SUFFIX=so
++ else
++ DLL_SUFFIX=so.1.0
++ fi
++ MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
++ DSO_CFLAGS=-fPIC
++ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
++ MDCPUCFG_H=_dragonfly.cfg
++ PR_MD_CSRCS=freebsd.c
++ if test "$LIBRUNPATH"; then
++ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
++ fi
+ ;;
+
+ *-hpux*)
+@@ -2110,6 +2137,7 @@ mips-nec-sysv*)
+ AC_DEFINE(XP_UNIX)
+ AC_DEFINE(NETBSD)
+ AC_DEFINE(HAVE_BSD_FLOCK)
++ AC_DEFINE(HAVE_SOCKLEN_T)
+ if test -z "$USE_NSPR_THREADS"; then
+ USE_PTHREADS=1
+ fi
+@@ -2918,7 +2946,7 @@ if test -n "$USE_PTHREADS"; then
+ if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
+ ac_cv_have_dash_pthread=yes
+ case "$target_os" in
+- freebsd*)
++ freebsd* | dragonfly*)
+ # Freebsd doesn't use -pthread for compiles, it uses them for linking
+ ;;
+ *)
+@@ -2956,7 +2984,7 @@ if test -n "$USE_PTHREADS"; then
+ _PTHREAD_LDFLAGS=
+ fi
+ ;;
+- *-freebsd*)
++ *-freebsd* | *-dragonfly*)
+ AC_DEFINE(_REENTRANT)
+ AC_DEFINE(_THREAD_SAFE)
+ dnl -pthread links in -lc_r, so don't specify it explicitly.
+@@ -3037,7 +3065,7 @@ case "$target" in
+ AC_DEFINE(_PR_NEED_PTHREAD_INIT)
+ fi
+ ;;
+-*-freebsd*)
++*-freebsd* | *-dragonfly*)
+ if test -n "$USE_NSPR_THREADS"; then
+ AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
+ fi
View
13 devel/xulrunner17/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- xpcom/io/nsLocalFileUnix.h.orig 2012-08-24 22:56:10.000000000 +0000
++++ xpcom/io/nsLocalFileUnix.h
+@@ -52,7 +52,7 @@
+ #endif
+
+ // so we can statfs on freebsd
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || ((defined(__DragonFly__) || defined(__NetBSD__)) && !defined(HAVE_STATVFS))
+ #define HAVE_SYS_STATFS_H
+ #define STATFS statfs
+ #include <sys/param.h>
View
58 devel/xulrunner17/patches/patch-ae
@@ -0,0 +1,58 @@
+$NetBSD: patch-ae,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- nsprpub/pr/src/misc/prnetdb.c.orig 2012-08-24 22:55:59.000000000 +0000
++++ nsprpub/pr/src/misc/prnetdb.c
+@@ -73,7 +73,7 @@ PRLock *_pr_dnsLock = NULL;
+ || defined(AIX4_3_PLUS) || (defined(AIX) && defined(_THREAD_SAFE)) \
+ || (defined(HPUX10_10) && defined(_REENTRANT)) \
+ || (defined(HPUX10_20) && defined(_REENTRANT)) \
+- || defined(OPENBSD)
++ || defined(OPENBSD) || defined(NETBSD)
+ #define _PR_HAVE_GETPROTO_R
+ #define _PR_HAVE_GETPROTO_R_INT
+ #endif
+@@ -83,6 +83,11 @@ PRLock *_pr_dnsLock = NULL;
+ #define _PR_HAVE_5_ARG_GETPROTO_R
+ #endif
+
++#if __DragonFly_version >= 200202
++#define _PR_HAVE_GETPROTO_R
++#define _PR_HAVE_5_ARG_GETPROTO_R
++#endif
++
+ /* BeOS has glibc but not the glibc-style getprotobyxxx_r functions. */
+ #if (defined(__GLIBC__) && __GLIBC__ >= 2 && !defined(XP_BEOS))
+ #define _PR_HAVE_GETPROTO_R
+@@ -300,7 +305,7 @@ _pr_QueryNetIfs(void)
+ }
+
+ #elif (defined(DARWIN) && defined(HAVE_GETIFADDRS)) || defined(FREEBSD) \
+- || defined(NETBSD) || defined(OPENBSD)
++ || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY)
+
+ /*
+ * Use the BSD getifaddrs function.
+@@ -2044,6 +2049,11 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf
+ */
+ hints.ai_socktype = SOCK_STREAM;
+
++/* NetBSD >= 2.99.9 has a thread-safe resolver */
++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900
++ LOCK_DNS();
++#endif
++
+ rv = GETADDRINFO(hostname, NULL, &hints, &res);
+ #ifdef AI_ADDRCONFIG
+ if (rv == EAI_BADFLAGS && (hints.ai_flags & AI_ADDRCONFIG)) {
+@@ -2051,6 +2061,11 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf
+ rv = GETADDRINFO(hostname, NULL, &hints, &res);
+ }
+ #endif
++
++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900
++ UNLOCK_DNS();
++#endif
++
+ if (rv == 0)
+ return (PRAddrInfo *) res;
+
View
32 devel/xulrunner17/patches/patch-af
@@ -0,0 +1,32 @@
+$NetBSD: patch-af,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- config/mkdepend/imakemdep.h.orig 2012-08-24 22:55:19.000000000 +0000
++++ config/mkdepend/imakemdep.h
+@@ -235,7 +235,7 @@ in this Software without prior written a
+ #ifdef _CRAY
+ #define DEFAULT_CPP "/lib/pcpp"
+ #endif
+-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__386BSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ #define DEFAULT_CPP "/usr/libexec/cpp"
+ #endif
+ #ifdef MACH
+@@ -273,7 +273,7 @@ char *cpp_argv[ARGUMENTS] = {
+ #ifdef unix
+ "-Uunix", /* remove unix symbol so that filename unix.c okay */
+ #endif
+-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(MACH)
++#if defined(__386BSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(MACH) || defined(__DragonFly__)
+ # ifdef __i386__
+ "-D__i386__",
+ # endif
+@@ -713,6 +713,9 @@ struct symtab predefs[] = {
+ #ifdef __sgi
+ {"__sgi", "1"},
+ #endif
++#ifdef __DragonFly__
++ {"__DragonFly__", "1"},
++#endif
+ #ifdef __FreeBSD__
+ {"__FreeBSD__", "1"},
+ #endif
View
31 devel/xulrunner17/patches/patch-ag
@@ -0,0 +1,31 @@
+$NetBSD: patch-ag,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- nsprpub/pr/include/md/_freebsd.h.orig 2012-08-24 22:55:59.000000000 +0000
++++ nsprpub/pr/include/md/_freebsd.h
+@@ -47,7 +47,7 @@
+ #define _PR_HAVE_LARGE_OFF_T
+
+ #if defined(_PR_PTHREADS)
+-#if __FreeBSD_version >= 400008
++#if defined(__DragonFly__) || __FreeBSD_version >= 400008
+ /*
+ * libc_r before this version of FreeBSD doesn't have poll().
+ * Although libc has poll(), it is not thread-safe so we can't
+@@ -56,7 +56,7 @@
+ #define _PR_POLL_AVAILABLE
+ #endif
+ #else
+-#if __FreeBSD_version >= 300000
++#if defined(__DragonFly__) || __FreeBSD_version >= 300000
+ #define _PR_POLL_AVAILABLE
+ #define _PR_USE_POLL
+ #endif
+@@ -65,7 +65,7 @@
+ #define _PR_HAVE_SYSV_SEMAPHORES
+ #define PR_HAVE_SYSV_NAMED_SHARED_MEMORY
+
+-#if __FreeBSD_version >= 400014
++#if defined(__DragonFly__) || __FreeBSD_version >= 400014
+ #define _PR_INET6
+ #define _PR_HAVE_INET_NTOP
+ #define _PR_HAVE_GETHOSTBYNAME2
View
13 devel/xulrunner17/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- dbm/src/mktemp.c.orig 2012-08-24 22:55:25.000000000 +0000
++++ dbm/src/mktemp.c
+@@ -92,7 +92,7 @@ mktemp(char *path)
+ static int
+ _gettemp(char *path, register int *doopen, int extraFlags)
+ {
+-#if !defined(_WINDOWS) || defined(_WIN32)
++#if (!defined(_WINDOWS) || defined(_WIN32)) && !defined(errno)
+ extern int errno;
+ #endif
+ register char *start, *trv;
View
20 devel/xulrunner17/patches/patch-aj
@@ -0,0 +1,20 @@
+$NetBSD: patch-aj,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- profile/dirserviceprovider/src/nsProfileLock.cpp.orig 2012-08-24 22:56:00.000000000 +0000
++++ profile/dirserviceprovider/src/nsProfileLock.cpp
+@@ -391,6 +391,7 @@ nsresult nsProfileLock::LockWithSymlink(
+ #endif
+ sigfillset(&act.sa_mask);
+
++#ifndef DEBUG
+ #define CATCH_SIGNAL(signame) \
+ PR_BEGIN_MACRO \
+ if (sigaction(signame, NULL, &oldact) == 0 && \
+@@ -409,6 +410,7 @@ PR_BEGIN_MACRO
+ CATCH_SIGNAL(SIGTERM);
+
+ #undef CATCH_SIGNAL
++#endif
+ }
+ }
+ }
View
13 devel/xulrunner17/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- js/src/ctypes/libffi/configure.orig 2012-08-24 22:55:39.000000000 +0000
++++ js/src/ctypes/libffi/configure
+@@ -11278,7 +11278,7 @@ case "$host" in
+ powerpc-*-aix* | rs6000-*-aix*)
+ TARGET=POWERPC_AIX; TARGETDIR=powerpc
+ ;;
+- powerpc-*-freebsd* | powerpc-*-openbsd*)
++ powerpc-*-freebsd* | powerpc-*-openbsd* | powerpc-*-netbsd*)
+ TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
+ ;;
+ powerpc*-*-rtems*)
View
16 devel/xulrunner17/patches/patch-al
@@ -0,0 +1,16 @@
+$NetBSD: patch-al,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- storage/src/mozStorageConnection.cpp.orig 2012-08-24 22:56:03.000000000 +0000
++++ storage/src/mozStorageConnection.cpp
+@@ -680,6 +680,11 @@ Connection::initialize(nsIFile *aDatabas
+ break;
+ }
+
++ // XXX tnn: the configure script demands that sqlite3 is compiled with
++ // SECURE_DELETE on by default. sqlite3 in pkgsrc does not have that,
++ // so instead we enable secure_delete manually here.
++ (void)ExecuteSimpleSQL(NS_LITERAL_CSTRING("PRAGMA secure_delete = 1;"));
++
+ return NS_OK;
+ }
+
View
17 devel/xulrunner17/patches/patch-am
@@ -0,0 +1,17 @@
+$NetBSD: patch-am,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+SHA1_Update conflicts with openssl which may be dynamically loaded
+at runtime via libcups or libgssapi so causing a crash due to using
+the wrong binding. So rename here to avoid conflict.
+
+--- security/nss/lib/freebl/blapi.h.orig 2012-08-24 22:56:01.000000000 +0000
++++ security/nss/lib/freebl/blapi.h
+@@ -1043,6 +1043,8 @@ extern void SHA1_DestroyContext(SHA1Cont
+ */
+ extern void SHA1_Begin(SHA1Context *cx);
+
++#define SHA1_Update NSS_SHA1_Update
++
+ /*
+ ** Update the SHA-1 hash function with more data.
+ ** "cx" the context
View
48 devel/xulrunner17/patches/patch-an
@@ -0,0 +1,48 @@
+$NetBSD: patch-an,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+SHA1_Update conflicts with openssl which may be dynamically loaded
+at runtime via libcups or libgssapi so causing a crash due to using
+the wrong binding. So rename here to avoid conflict.
+
+--- security/nss/lib/freebl/sha-fast-amd64-sun.s.orig 2012-08-24 22:56:01.000000000 +0000
++++ security/nss/lib/freebl/sha-fast-amd64-sun.s
+@@ -1712,9 +1712,9 @@ shaCompress:
+ .LFE7:
+ .size shaCompress, .-shaCompress
+ .align 16
+-.globl SHA1_Update
+- .type SHA1_Update, @function
+-SHA1_Update:
++.globl NSS_SHA1_Update
++ .type NSS_SHA1_Update, @function
++NSS_SHA1_Update:
+ .LFB5:
+ pushq %rbp
+ .LCFI5:
+@@ -1800,7 +1800,7 @@ SHA1_Update:
+ call shaCompress
+ jmp .L245
+ .LFE5:
+- .size SHA1_Update, .-SHA1_Update
++ .size NSS_SHA1_Update, .-NSS_SHA1_Update
+ .section .rodata
+ .align 32
+ .type bulk_pad.0, @object
+@@ -1902,7 +1902,7 @@ SHA1_End:
+ subl %r8d, %edx
+ andl $63, %edx
+ incl %edx
+- call SHA1_Update@PLT
++ call NSS_SHA1_Update@PLT
+ movq %rbx, %rdi
+ movq %r12, %rsi
+ shrq $32, %rdi
+@@ -2018,7 +2018,7 @@ SHA1_HashBuf:
+ movl %r12d, %edx
+ movq %r13, %rsi
+ movq %rbx, %rdi
+- call SHA1_Update@PLT
++ call NSS_SHA1_Update@PLT
+ leaq -292(%rbp), %rdx
+ movq %r14, %rsi
+ movq %rbx, %rdi
View
15 devel/xulrunner17/patches/patch-ao
@@ -0,0 +1,15 @@
+$NetBSD: patch-ao,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- toolkit/mozapps/installer/packager.mk.orig 2012-08-24 22:56:07.000000000 +0000
++++ toolkit/mozapps/installer/packager.mk
+@@ -905,8 +905,8 @@ endif
+ (cd $(DIST)/$(MOZ_PKG_DIR) && tar $(TAR_CREATE_FLAGS) - .) | \
+ (cd $(DESTDIR)$(installdir) && tar -xf -)
+ $(NSINSTALL) -D $(DESTDIR)$(bindir)
+- $(RM) -f $(DESTDIR)$(bindir)/$(MOZ_APP_NAME)
+- ln -s $(installdir)/$(MOZ_APP_NAME) $(DESTDIR)$(bindir)
++ $(RM) -f $(DESTDIR)$(bindir)/$(MOZILLA_PKG_NAME)
++ ln -s $(installdir)/$(MOZ_APP_NAME) $(DESTDIR)$(bindir)/$(MOZILLA_PKG_NAME)
+ ifdef INSTALL_SDK # Here comes the hard part
+ $(NSINSTALL) -D $(DESTDIR)$(includedir)
+ (cd $(DIST)/include && tar $(TAR_CREATE_FLAGS) - .) | \
View
24 devel/xulrunner17/patches/patch-as
@@ -0,0 +1,24 @@
+$NetBSD: patch-as,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+Treat DragonFly like FreeBSD.
+
+--- js/src/configure.in.orig 2012-11-19 17:00:00.000000000 +0000
++++ js/src/configure.in
+@@ -2701,7 +2701,7 @@ then
+ fi
+
+ case "$target" in
+- *-*-freebsd*)
++ *-*-freebsd*|*-dragonfly*)
+ AC_DEFINE(_REENTRANT)
+ AC_DEFINE(_THREAD_SAFE)
+ dnl -pthread links in -lpthread, so don't specify it explicitly.
+@@ -3545,7 +3545,7 @@ if test "$MOZ_MEMORY"; then
+ *-darwin*)
+ AC_DEFINE(MOZ_MEMORY_DARWIN)
+ ;;
+- *-*freebsd*)
++ *-*freebsd*|*-*dragonfly*)
+ AC_DEFINE(MOZ_MEMORY_BSD)
+ ;;
+ *-android*|*-linuxandroid*)
View
13 devel/xulrunner17/patches/patch-at
@@ -0,0 +1,13 @@
+$NetBSD: patch-at,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- gfx/qcms/qcmstypes.h.orig 2012-08-24 22:55:34.000000000 +0000
++++ gfx/qcms/qcmstypes.h
+@@ -10,6 +10,8 @@
+ #if defined (__SVR4) && defined (__sun)
+ /* int_types.h gets included somehow, so avoid redefining the types differently */
+ #include <sys/int_types.h>
++#elif defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
++#include <stdint.h>
+ #elif defined (_AIX)
+ #include <sys/types.h>
+ #elif defined(__OpenBSD__)
View
30 devel/xulrunner17/patches/patch-au
@@ -0,0 +1,30 @@
+$NetBSD: patch-au,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+- Fix device name on NetBSD
+- SOUND_VERSION just isn't a reliable way to detect features supported by
+ particular OSS implementation.
+
+--- media/libsydneyaudio/src/sydney_audio_oss.c.orig 2012-08-24 22:55:55.000000000 +0000
++++ media/libsydneyaudio/src/sydney_audio_oss.c
+@@ -23,7 +23,7 @@
+ // support only versions newer than 3.6.1
+ #define SUPP_OSS_VERSION OSS_VERSION(3,0,1)
+
+-#if (SOUND_VERSION < SUPP_OSS_VERSION)
++#if 0 // (SOUND_VERSION < SUPP_OSS_VERSION)
+ #error Unsupported OSS Version
+ #else
+
+@@ -173,7 +173,12 @@ sa_stream_create_pcm(
+ return SA_ERROR_SYSTEM;
+ }
+
++#if defined(__NetBSD__)
++ /* XXX should use DEVOSSAUDIO provided by pkgsrc. */
++ s->output_unit = "/dev/audio";
++#else
+ s->output_unit = "/dev/dsp";
++#endif
+ s->output_fd = -1;
+ s->thread_id = 0;
+ s->playing = 0;
View
40 devel/xulrunner17/patches/patch-av
@@ -0,0 +1,40 @@
+$NetBSD: patch-av,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- xulrunner/app/nsXULRunnerApp.cpp.orig 2012-08-24 22:56:10.000000000 +0000
++++ xulrunner/app/nsXULRunnerApp.cpp
+@@ -6,6 +6,27 @@
+ #include "nsXPCOMGlue.h"
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/resource.h>
++/*
++ * On netbsd-4, ulimit -n is 64 by default; too few for us.
++ */
++static void netbsd_fixrlimit(void) {
++ struct rlimit rlp;
++ if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) {
++ fprintf(stderr, "warning: getrlimit failed\n");
++ return;
++ }
++ if (rlp.rlim_cur >= 512)
++ return;
++ if (rlp.rlim_max < 512) {
++ fprintf(stderr, "warning: hard limit of 'ulimit -n' too low\n");
++ rlp.rlim_cur = rlp.rlim_max;
++ }
++ else
++ rlp.rlim_cur = 512;
++ if (setrlimit(RLIMIT_NOFILE, &rlp) == -1)
++ fprintf(stderr, "warning: setrlimit failed\n");
++}
+ #ifdef XP_WIN
+ #include <windows.h>
+ #define snprintf _snprintf
+@@ -251,6 +272,7 @@ private:
+
+ int main(int argc, char* argv[])
+ {
++ netbsd_fixrlimit();
+ char exePath[MAXPATHLEN];
+ nsresult rv = mozilla::BinaryPath::Get(argv[0], exePath);
+ if (NS_FAILED(rv)) {
View
34 devel/xulrunner17/patches/patch-aw
@@ -0,0 +1,34 @@
+$NetBSD: patch-aw,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- xulrunner/stub/nsXULStub.cpp.orig 2012-10-04 15:51:30.000000000 +0000
++++ xulrunner/stub/nsXULStub.cpp
+@@ -11,6 +11,29 @@
+ #include "nsIFile.h"
+
+ #include <stdarg.h>
++#if defined(__NetBSD__)
++#include <sys/resource.h>
++/*
++ * On netbsd-4, ulimit -n is 64 by default; too few for us.
++ */
++static void netbsd_fixrlimit(void) {
++ struct rlimit rlp;
++ if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) {
++ fprintf(stderr, "warning: getrlimit failed\n");
++ return;
++ }
++ if (rlp.rlim_cur >= 512)
++ return;
++ if (rlp.rlim_max < 512) {
++ fprintf(stderr, "warning: hard limit of 'ulimit -n' too low\n");
++ rlp.rlim_cur = rlp.rlim_max;
++ }
++ else
++ rlp.rlim_cur = 512;
++ if (setrlimit(RLIMIT_NOFILE, &rlp) == -1)
++ fprintf(stderr, "warning: setrlimit failed\n");
++}
++#endif
+
+ #ifdef XP_WIN
+ #include <windows.h>
View
13 devel/xulrunner17/patches/patch-ax
@@ -0,0 +1,13 @@
+$NetBSD: patch-ax,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- xpcom/base/nsStackWalk.cpp.orig 2012-08-24 22:56:10.000000000 +0000
++++ xpcom/base/nsStackWalk.cpp
+@@ -23,7 +23,7 @@ struct CriticalAddress {
+ };
+ static CriticalAddress gCriticalAddress;
+
+-#if defined(HAVE_DLOPEN) || defined(XP_MACOSX)
++#if defined(HAVE_DLOPEN) || defined(XP_MACOSX) || defined(__NetBSD__)
+ #include <dlfcn.h>
+ #endif
+
View
46 devel/xulrunner17/patches/patch-ay
@@ -0,0 +1,46 @@
+$NetBSD: patch-ay,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- browser/app/nsBrowserApp.cpp.orig 2012-08-24 22:55:17.000000000 +0000
++++ browser/app/nsBrowserApp.cpp
+@@ -14,6 +14,31 @@
+ #include <sys/resource.h>
+ #endif
+
++#include <sys/resource.h>
++
++#ifdef __NetBSD__
++/*
++ * On netbsd-4, ulimit -n is 64 by default; too few for us.
++ */
++static void netbsd_fixrlimit(void) {
++ struct rlimit rlp;
++ if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) {
++ fprintf(stderr, "warning: getrlimit failed\n");
++ return;
++ }
++ if (rlp.rlim_cur >= 512)
++ return;
++ if (rlp.rlim_max < 512) {
++ fprintf(stderr, "warning: hard limit of 'ulimit -n' too low\n");
++ rlp.rlim_cur = rlp.rlim_max;
++ }
++ else
++ rlp.rlim_cur = 512;
++ if (setrlimit(RLIMIT_NOFILE, &rlp) == -1)
++ fprintf(stderr, "warning: setrlimit failed\n");
++}
++#endif
++
+ #ifdef XP_MACOSX
+ #include "MacQuirks.h"
+ #endif
+@@ -196,6 +221,9 @@ int main(int argc, char* argv[])
+ #ifdef XP_MACOSX
+ TriggerQuirks();
+ #endif
++#ifdef __NetBSD__
++ netbsd_fixrlimit();
++#endif
+
+ nsresult rv = mozilla::BinaryPath::Get(argv[0], exePath);
+ if (NS_FAILED(rv)) {
View
19 devel/xulrunner17/patches/patch-az
@@ -0,0 +1,19 @@
+$NetBSD: patch-az,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- nsprpub/pr/src/pthreads/ptthread.c.orig 2012-08-24 22:55:59.000000000 +0000
++++ nsprpub/pr/src/pthreads/ptthread.c
+@@ -1038,12 +1038,12 @@ PR_IMPLEMENT(void) PR_ProcessExit(PRIntn
+ _exit(status);
+ }
+
+-PR_IMPLEMENT(PRUint32) PR_GetThreadID(PRThread *thred)
++PR_IMPLEMENT(pthread_t) PR_GetThreadID(PRThread *thred)
+ {
+ #if defined(_PR_DCETHREADS)
+ return (PRUint32)&thred->id; /* this is really a sham! */
+ #else
+- return (PRUint32)thred->id; /* and I don't know what they will do with it */
++ return thred->id; /* and I don't know what they will do with it */
+ #endif
+ }
+
View
24 devel/xulrunner17/patches/patch-ba
@@ -0,0 +1,24 @@
+$NetBSD: patch-ba,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+pthread_t may be 64-bit, avoid casting it.
+
+--- nsprpub/pr/include/private/pprthred.h.orig 2012-08-24 22:55:59.000000000 +0000
++++ nsprpub/pr/include/private/pprthred.h
+@@ -19,6 +19,8 @@
+ #include <os2.h>
+ #endif
+
++#include <pthread.h>
++
+ PR_BEGIN_EXTERN_C
+
+ /*---------------------------------------------------------------------------
+@@ -59,7 +61,7 @@ NSPR_API(void) PR_DetachThread(void);
+ ** Get the id of the named thread. Each thread is assigned a unique id
+ ** when it is created or attached.
+ */
+-NSPR_API(PRUint32) PR_GetThreadID(PRThread *thread);
++NSPR_API(pthread_t) PR_GetThreadID(PRThread *thread);
+
+ /*
+ ** Set the procedure that is called when a thread is dumped. The procedure
View
28 devel/xulrunner17/patches/patch-bd
@@ -0,0 +1,28 @@
+$NetBSD: patch-bd,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- js/src/ctypes/CTypes.cpp.orig 2012-08-24 22:55:39.000000000 +0000
++++ js/src/ctypes/CTypes.cpp
+@@ -5,6 +5,23 @@
+
+ #include "mozilla/FloatingPoint.h"
+
++#if defined(__NetBSD__)
++#include <stdint.h>
++/* XXX why do we have those funky __ #defines in stdint.h? */
++#warning this is a retarded workaround
++#define uint8_t uint8_t
++#define uint16_t uint16_t
++#define uint32_t uint32_t
++#define uint64_t uint64_t
++#define int8_t int8_t
++#define int16_t int16_t
++#define int32_t int32_t
++#define int64_t int64_t
++#define intptr_t intptr_t
++#define uintptr_t uintptr_t
++#define off_t off_t
++#endif
++
+ #include "CTypes.h"
+ #include "Library.h"
+ #include "jsnum.h"
View
31 devel/xulrunner17/patches/patch-bf
@@ -0,0 +1,31 @@
+$NetBSD: patch-bf,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- js/src/jsnativestack.cpp.orig 2012-08-24 22:55:40.000000000 +0000
++++ js/src/jsnativestack.cpp
+@@ -19,10 +19,16 @@
+ #elif defined(XP_MACOSX) || defined(DARWIN) || defined(XP_UNIX)
+ # include <pthread.h>
+
+-# if defined(__FreeBSD__) || defined(__OpenBSD__)
++# if defined(__OpenBSD__) || defined(__DragonFly__)
+ # include <pthread_np.h>
+ # endif
+
++# if defined(__FreeBSD__)
++_Pragma("GCC visibility push(default)")
++# include <pthread_np.h>
++_Pragma("GCC visibility pop")
++# endif
++
+ #else
+ # error "Unsupported platform"
+
+@@ -114,7 +120,7 @@ GetNativeStackBaseImpl()
+ pthread_attr_init(&sattr);
+ # if defined(__OpenBSD__)
+ stack_t ss;
+-# elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(NETBSD)
++# elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(__DragonFly__) || defined(NETBSD) || defined(__NetBSD__) /* XXX tnn not sure why NETBSD isn't defined, it looks like it should be ... */
+ /* e.g. on FreeBSD 4.8 or newer, neundorf@kde.org */
+ pthread_attr_get_np(thread, &sattr);
+ # else
View
24 devel/xulrunner17/patches/patch-bg
@@ -0,0 +1,24 @@
+$NetBSD: patch-bg,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- storage/src/SQLiteMutex.h.orig 2012-08-24 22:56:03.000000000 +0000
++++ storage/src/SQLiteMutex.h
+@@ -108,15 +108,19 @@ public:
+ void assertCurrentThreadOwns()
+ {
+ NS_ASSERTION(mMutex, "No mutex associated with this wrapper!");
++#if 0 /* XXX tnn: this breaks the debug build. */
+ NS_ASSERTION(sqlite3_mutex_held(mMutex),
+ "Mutex is not held, but we expect it to be!");
++#endif
+ }
+
+ void assertNotCurrentThreadOwns()
+ {
+ NS_ASSERTION(mMutex, "No mutex associated with this wrapper!");
++#if 0 /* XXX tnn: this breaks the debug build. */
+ NS_ASSERTION(sqlite3_mutex_notheld(mMutex),
+ "Mutex is held, but we expect it to not be!");
++#endif
+ }
+ #endif // ifndef DEBUG
+
View
12 devel/xulrunner17/patches/patch-bi
@@ -0,0 +1,12 @@
+$NetBSD: patch-bi,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- gfx/angle/src/compiler/osinclude.h.orig 2012-11-19 17:03:13.000000000 +0000
++++ gfx/angle/src/compiler/osinclude.h
+@@ -16,6 +16,7 @@
+ #define ANGLE_OS_WIN
+ #elif defined(__APPLE__) || defined(__linux__) || \
+ defined(__FreeBSD__) || defined(__OpenBSD__) || \
++ defined(__NetBSD__) || defined(__DragonFly__) || \
+ defined(__sun) || defined(ANDROID) || \
+ defined(__GLIBC__) || defined(__GNU__) || \
+ defined(__QNX__)
View
46 devel/xulrunner17/patches/patch-build_autoconf_nss.m4
@@ -0,0 +1,46 @@
+$NetBSD: patch-build_autoconf_nss.m4,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- build/autoconf/nss.m4.orig 2012-08-24 22:55:19.000000000 +0000
++++ build/autoconf/nss.m4
+@@ -22,18 +22,18 @@ AC_ARG_WITH(nss-exec-prefix,
+ if test -n "$nss_config_exec_prefix"; then
+ nss_config_args="$nss_config_args --exec-prefix=$nss_config_exec_prefix"
+ if test -z "$NSS_CONFIG"; then
+- NSS_CONFIG=$nss_config_exec_prefix/bin/nss-config
++ NSS_CONFIG=$nss_config_exec_prefix/bin/pkg-config
+ fi
+ fi
+ if test -n "$nss_config_prefix"; then
+ nss_config_args="$nss_config_args --prefix=$nss_config_prefix"
+ if test -z "$NSS_CONFIG"; then
+- NSS_CONFIG=$nss_config_prefix/bin/nss-config
++ NSS_CONFIG=$nss_config_prefix/bin/pkg-config
+ fi
+ fi
+
+ unset ac_cv_path_NSS_CONFIG
+- AC_PATH_PROG(NSS_CONFIG, nss-config, no)
++ AC_PATH_PROG(NSS_CONFIG, pkg-config, no)
+ min_nss_version=ifelse([$1], ,3.0.0,$1)
+ AC_MSG_CHECKING(for NSS - version >= $min_nss_version)
+
+@@ -41,14 +41,14 @@ AC_ARG_WITH(nss-exec-prefix,
+ if test "$NSS_CONFIG" = "no"; then
+ no_nss="yes"
+ else
+- NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags`
+- NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs`
++ NSS_CFLAGS=`$NSS_CONFIG $nss_config_args nss --cflags`
++ NSS_LIBS=`$NSS_CONFIG $nss_config_args nss --libs`
+
+- nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \
++ nss_config_major_version=`$NSS_CONFIG $nss_config_args nss --modversion | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+- nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \
++ nss_config_minor_version=`$NSS_CONFIG $nss_config_args nss --modversion | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+- nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \
++ nss_config_micro_version=`$NSS_CONFIG $nss_config_args nss --modversion | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+ min_nss_major_version=`echo $min_nss_version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
View
18 devel/xulrunner17/patches/patch-config_baseconfig.mk
@@ -0,0 +1,18 @@
+$NetBSD: patch-config_baseconfig.mk,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- config/baseconfig.mk.orig 2012-10-02 14:37:17.000000000 +0000
++++ config/baseconfig.mk
+@@ -1,9 +1,9 @@
+ INCLUDED_AUTOCONF_MK = 1
+
+-includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+-idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+-installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+-sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
++includedir := $(includedir)/${MOZILLA_PKG_NAME}
++idldir = $(datadir)/idl/${MOZILLA_PKG_NAME}
++installdir = $(libdir)/${MOZILLA_PKG_NAME}
++sdkdir = $(libdir)/${MOZILLA_PKG_NAME}
+ DIST = $(DEPTH)/dist
+
+ # We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
View
12 devel/xulrunner17/patches/patch-config_system-headers
@@ -0,0 +1,12 @@
+$NetBSD: patch-config_system-headers,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- config/system-headers.orig 2012-08-24 22:55:19.000000000 +0000
++++ config/system-headers
+@@ -1059,3 +1059,7 @@ gst/gst.h
+ gst/app/gstappsink.h
+ gst/app/gstappsrc.h
+ gst/video/video.h
++sys/thr.h
++sys/user.h
++kvm.h
++spawn.h
View
18 devel/xulrunner17/patches/patch-content_media_nsAudioStream.cpp
@@ -0,0 +1,18 @@
+$NetBSD: patch-content_media_nsAudioStream.cpp,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+* Bug 685258 - Pulse audio backend does not check provided playback and crashes
+
+--- content/media/nsAudioStream.cpp.orig 2012-11-13 14:56:39.000000000 +0000
++++ content/media/nsAudioStream.cpp
+@@ -298,7 +298,11 @@ static int PrefChanged(const char* aPref
+ gVolumeScale = NS_MAX<double>(0, PR_strtod(utf8.get(), nullptr));
+ }
+ } else if (strcmp(aPref, PREF_USE_CUBEB) == 0) {
++#if defined(__FreeBSD__) && __FreeBSD_version < 800097
++ bool value = Preferences::GetBool(aPref, false);
++#else
+ bool value = Preferences::GetBool(aPref, true);
++#endif
+ mozilla::MutexAutoLock lock(*gAudioPrefsLock);
+ gUseCubeb = value;
+ } else if (strcmp(aPref, PREF_CUBEB_LATENCY) == 0) {
View
39 devel/xulrunner17/patches/patch-dom_plugins_ipc_PluginModuleChild.cpp
@@ -0,0 +1,39 @@
+$NetBSD: patch-dom_plugins_ipc_PluginModuleChild.cpp,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- dom/plugins/ipc/PluginModuleChild.cpp.orig 2012-11-19 17:09:26.000000000 +0000
++++ dom/plugins/ipc/PluginModuleChild.cpp
+@@ -5,6 +5,7 @@
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+ #ifdef MOZ_WIDGET_QT
++#include <unistd.h> // for _exit()
+ #include <QtCore/QTimer>
+ #include "nsQAppInstance.h"
+ #include "NestedLoopTimer.h"
+@@ -196,7 +197,7 @@ PluginModuleChild::Init(const std::strin
+
+ // TODO: use PluginPRLibrary here
+
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ mShutdownFunc =
+ (NP_PLUGINSHUTDOWN) PR_FindFunctionSymbol(mLibrary, "NP_Shutdown");
+
+@@ -1827,7 +1828,7 @@ PluginModuleChild::AnswerNP_GetEntryPoin
+ PLUGIN_LOG_DEBUG_METHOD;
+ AssertPluginThread();
+
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ return true;
+ #elif defined(OS_WIN) || defined(OS_MACOSX)
+ *_retval = mGetEntryPointsFunc(&mFunctions);
+@@ -1856,7 +1857,7 @@ PluginModuleChild::AnswerNP_Initialize(c
+ SendBackUpXResources(FileDescriptor(xSocketFd));
+ #endif
+
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ *_retval = mInitializeFunc(&sBrowserFuncs, &mFunctions);
+ return true;
+ #elif defined(OS_WIN) || defined(OS_MACOSX)
View
13 devel/xulrunner17/patches/patch-dom_plugins_ipc_PluginModuleChild.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-dom_plugins_ipc_PluginModuleChild.h,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- dom/plugins/ipc/PluginModuleChild.h.orig 2012-08-24 22:55:28.000000000 +0000
++++ dom/plugins/ipc/PluginModuleChild.h
+@@ -330,7 +330,7 @@ private:
+
+ // we get this from the plugin
+ NP_PLUGINSHUTDOWN mShutdownFunc;
+-#ifdef OS_LINUX
++#if defined(OS_LINUX) || defined(OS_BSD)
+ NP_PLUGINUNIXINIT mInitializeFunc;
+ #elif defined(OS_WIN) || defined(OS_MACOSX)
+ NP_PLUGININIT mInitializeFunc;
View
24 devel/xulrunner17/patches/patch-gfx_skia_src_sfnt_SkOTTable__head.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-gfx_skia_src_sfnt_SkOTTable__head.h,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+* Fix build with NetBSD 5's gcc
+
+--- gfx/skia/src/sfnt/SkOTTable_head.h.orig 2012-11-29 04:44:13.000000000 +0000
++++ gfx/skia/src/sfnt/SkOTTable_head.h
+@@ -12,7 +12,7 @@
+ #include "SkOTTableTypes.h"
+ #include "SkTypedEnum.h"
+
+-#pragma pack(push, 1)
++#pragma pack(1)
+
+ struct SkOTTableHead {
+ SK_OT_Fixed version;
+@@ -134,7 +134,7 @@ struct SkOTTableHead {
+ } glyphDataFormat;
+ };
+
+-#pragma pack(pop)
++#pragma pack()
+
+
+ #include <stddef.h>
View
24 devel/xulrunner17/patches/patch-gfx_skia_src_sfnt_SkOTTable__name.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-gfx_skia_src_sfnt_SkOTTable__name.h,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+* Fix build with NetBSD 5's gcc
+
+--- gfx/skia/src/sfnt/SkOTTable_name.h.orig 2012-11-29 04:44:13.000000000 +0000
++++ gfx/skia/src/sfnt/SkOTTable_name.h
+@@ -12,7 +12,7 @@
+ #include "SkOTTableTypes.h"
+ #include "SkTypedEnum.h"
+
+-#pragma pack(push, 1)
++#pragma pack(1)
+
+ struct SkOTTableName {
+ SK_OT_USHORT format;
+@@ -493,7 +493,7 @@ struct SkOTTableNameRecord {
+ SK_OT_USHORT offset; //From start of storage area.
+ };
+
+-#pragma pack(pop)
++#pragma pack()
+
+
+ SK_COMPILE_ASSERT(sizeof(SkOTTableName) == 6, sizeof_SkOTTableName_not_6);
View
24 devel/xulrunner17/patches/patch-gfx_skia_src_sfnt_SkSFNTHeader.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-gfx_skia_src_sfnt_SkSFNTHeader.h,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+* Fix build wth NetBSD 5's gcc
+
+--- gfx/skia/src/sfnt/SkSFNTHeader.h.orig 2012-11-29 04:44:13.000000000 +0000
++++ gfx/skia/src/sfnt/SkSFNTHeader.h
+@@ -15,7 +15,7 @@
+ typedef uint16_t SK_SFNT_USHORT;
+ typedef uint32_t SK_SFNT_ULONG;
+
+-#pragma pack(push, 1)
++#pragma pack(1)
+
+ struct SkSFNTHeader {
+ SK_SFNT_ULONG fontType;
+@@ -37,7 +37,7 @@ struct SkSFNTTableDirectoryEntry {
+ SK_SFNT_ULONG logicalLength;
+ };
+
+-#pragma pack(pop)
++#pragma pack()
+
+
+ SK_COMPILE_ASSERT(sizeof(SkSFNTHeader) == 12, sizeof_SkSFNTHeader_not_12);
View
36 devel/xulrunner17/patches/patch-gfx_thebes_gfxPlatform.cpp
@@ -0,0 +1,36 @@
+$NetBSD: patch-gfx_thebes_gfxPlatform.cpp,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- gfx/thebes/gfxPlatform.cpp.orig 2012-08-24 22:55:35.000000000 +0000
++++ gfx/thebes/gfxPlatform.cpp
+@@ -443,6 +443,7 @@ void SourceBufferDestroy(void *srcBuffer
+ static_cast<SourceSurface*>(srcBuffer)->Release();
+ }
+
++#ifdef MOZ_TREE_CAIRO
+ void SourceSnapshotDetached(cairo_surface_t *nullSurf)
+ {
+ gfxImageSurface* origSurf =
+@@ -450,6 +451,7 @@ void SourceSnapshotDetached(cairo_surfac
+
+ origSurf->SetData(&kSourceSurface, NULL, NULL);
+ }
++#endif
+
+ RefPtr<SourceSurface>
+ gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurface)
+@@ -544,6 +546,7 @@ gfxPlatform::GetSourceSurfaceForSurface(
+
+ }
+
++ #ifdef MOZ_TREE_CAIRO
+ cairo_surface_t *nullSurf =
+ cairo_null_surface_create(CAIRO_CONTENT_COLOR_ALPHA);
+ cairo_surface_set_user_data(nullSurf,
+@@ -552,6 +555,7 @@ gfxPlatform::GetSourceSurfaceForSurface(
+ NULL);
+ cairo_surface_attach_snapshot(imgSurface->CairoSurface(), nullSurf, SourceSnapshotDetached);
+ cairo_surface_destroy(nullSurf);
++ #endif
+ }
+
+ srcBuffer->AddRef();
View
38 devel/xulrunner17/patches/patch-ipc_chromium_Makefile.in
@@ -0,0 +1,38 @@
+$NetBSD: patch-ipc_chromium_Makefile.in,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- ipc/chromium/Makefile.in.orig 2012-10-23 19:42:37.000000000 +0000
++++ ipc/chromium/Makefile.in
+@@ -240,6 +240,33 @@ endif
+
+ endif # } OS_LINUX
+
++ifdef OS_BSD # {
++
++CPPSRCS += \
++ atomicops_internals_x86_gcc.cc \
++ process_util_bsd.cc \
++ time_posix.cc \
++ $(NULL)
++
++ifdef MOZ_ENABLE_GTK2
++CPPSRCS += \
++ message_pump_glib.cc \
++ $(NULL)
++endif
++
++ifdef MOZ_ENABLE_QT
++MOCSRCS = \
++ moc_message_pump_qt.cc \
++ $(NULL)
++
++CPPSRCS += \
++ $(MOCSRCS) \
++ message_pump_qt.cc \
++ $(NULL)
++endif
++
++endif # } OS_BSD
++
+ # libevent
+
+ ifndef MOZ_NATIVE_LIBEVENT # {
View
100 devel/xulrunner17/patches/patch-ipc_chromium_chromium-config.mk
@@ -0,0 +1,100 @@
+$NetBSD: patch-ipc_chromium_chromium-config.mk,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- ipc/chromium/chromium-config.mk.orig 2012-08-24 22:55:37.000000000 +0000
++++ ipc/chromium/chromium-config.mk
+@@ -24,17 +24,6 @@ LOCAL_INCLUDES += \
+ -I$(DEPTH)/ipc/ipdl/_ipdlheaders \
+ $(NULL)
+
+-ifeq ($(OS_ARCH),Darwin) # {
+-
+-OS_MACOSX = 1
+-OS_POSIX = 1
+-
+-DEFINES += \
+- -DOS_MACOSX=1 \
+- -DOS_POSIX=1 \
+- $(NULL)
+-
+-else # } {
+ ifeq ($(OS_ARCH),WINNT) # {
+ OS_LIBS += $(call EXPAND_LIBNAME,psapi shell32 dbghelp)
+
+@@ -61,13 +50,65 @@ DEFINES += -DCOMPILER_MSVC
+ endif
+
+ else # } {
+-
+-OS_LINUX = 1
+ OS_POSIX = 1
++DEFINES += -DOS_POSIX=1
++
++ifeq ($(OS_ARCH),Darwin) # {
++
++OS_MACOSX = 1
++DEFINES += \
++ -DOS_MACOSX=1 \
++ $(NULL)
++
++else # } {
++ifeq ($(OS_ARCH),DragonFly) # {
++
++OS_DRAGONFLY = 1
++OS_BSD = 1
++OS_LIBS += $(call EXPAND_LIBNAME,kvm)
++DEFINES += \
++ -DOS_DRAGONFLY=1 \
++ -DOS_BSD=1 \
++ $(NULL)
++
++else # } {
++ifeq ($(OS_ARCH),FreeBSD) # {
++
++OS_FREEBSD = 1
++OS_BSD = 1
++OS_LIBS += $(call EXPAND_LIBNAME,kvm)
++DEFINES += \
++ -DOS_FREEBSD=1 \
++ -DOS_BSD=1 \
++ $(NULL)
+
++else # } {
++ifeq ($(OS_ARCH),NetBSD) # {
++
++OS_NETBSD = 1
++OS_BSD = 1
++OS_LIBS += $(call EXPAND_LIBNAME,kvm)
++DEFINES += \
++ -DOS_NETBSD=1 \
++ -DOS_BSD=1 \
++ $(NULL)
++
++else # } {
++ifeq ($(OS_ARCH),OpenBSD) # {
++
++OS_OPENBSD = 1
++OS_BSD = 1
++OS_LIBS += $(call EXPAND_LIBNAME,kvm)
++DEFINES += \
++ -DOS_OPENBSD=1 \
++ -DOS_BSD=1 \
++ $(NULL)
++
++else # } {
++
++OS_LINUX = 1
+ DEFINES += \
+ -DOS_LINUX=1 \
+- -DOS_POSIX=1 \
+ $(NULL)
+
+ # NB: to stop gcc warnings about exporting template instantiation
+@@ -75,4 +116,8 @@ OS_CXXFLAGS := $(filter-out -pedantic,$(
+
+ endif # }
+ endif # }
++endif # }
++endif # }
++endif # }
++endif # }
+
View
13 devel/xulrunner17/patches/patch-ipc_chromium_src_base_base__paths.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-ipc_chromium_src_base_base__paths.h,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+--- ipc/chromium/src/base/base_paths.h.orig 2012-08-24 22:55:37.000000000 +0000
++++ ipc/chromium/src/base/base_paths.h
+@@ -13,7 +13,7 @@
+ #include "base/base_paths_win.h"
+ #elif defined(OS_MACOSX)
+ #include "base/base_paths_mac.h"
+-#elif defined(OS_LINUX)
++#elif defined(OS_LINUX) || defined(OS_BSD)
+ #include "base/base_paths_linux.h"
+ #endif
+ #include "base/path_service.h"
View
82 devel/xulrunner17/patches/patch-ipc_chromium_src_base_debug__util__posix.cc
@@ -0,0 +1,82 @@
+$NetBSD: patch-ipc_chromium_src_base_debug__util__posix.cc,v 1.1 2013/01/10 16:17:10 ryoon Exp $
+
+# Reported upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=753046