pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox firefox: SunOS build fixes.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd71e1652858
branches:  trunk
changeset: 387218:bd71e1652858
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Nov 12 12:50:52 2018 +0000

description:
firefox: SunOS build fixes.

diffstat:

 www/firefox/Makefile                                                       |   4 +-
 www/firefox/distinfo                                                       |   6 ++-
 www/firefox/patches/patch-aa                                               |  13 ++++++-
 www/firefox/patches/patch-python_mozbuild_mozbuild_action_check__binary.py |  16 +++++++++
 www/firefox/patches/patch-xpcom_components_nsComponentManager.cpp          |  17 ++++++++++
 5 files changed, 51 insertions(+), 5 deletions(-)

diffs (117 lines):

diff -r 8ce14d6963f2 -r bd71e1652858 www/firefox/Makefile
--- a/www/firefox/Makefile      Mon Nov 12 12:26:38 2018 +0000
+++ b/www/firefox/Makefile      Mon Nov 12 12:50:52 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.346 2018/11/12 03:53:03 ryoon Exp $
+# $NetBSD: Makefile,v 1.347 2018/11/12 12:50:52 jperkin Exp $
 
 FIREFOX_VER=           ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
 MOZ_BRANCH=            63.0
@@ -27,6 +27,8 @@
 # for lang/gcc6
 CFLAGS+=       -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS
 
+CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
+
 # workround for link of libxul.so etc.
 LDFLAGS+=              ${COMPILER_RPATH_FLAG}${PREFIX}/lib/firefox ${COMPILER_RPATH_FLAG}${PREFIX}/lib
 LDFLAGS.SunOS+=                -lm
diff -r 8ce14d6963f2 -r bd71e1652858 www/firefox/distinfo
--- a/www/firefox/distinfo      Mon Nov 12 12:26:38 2018 +0000
+++ b/www/firefox/distinfo      Mon Nov 12 12:50:52 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.330 2018/11/07 12:55:11 martin Exp $
+$NetBSD: distinfo,v 1.331 2018/11/12 12:50:52 jperkin Exp $
 
 SHA1 (firefox-63.0.1.source.tar.xz) = d62a85ce78904171e9f863154fb8cd031cdbe4ee
 RMD160 (firefox-63.0.1.source.tar.xz) = 28f6431150deb10b967e4181ebfb5c332deedbd2
 SHA512 (firefox-63.0.1.source.tar.xz) = 29acad70259d71a924cbaf4c2f01fb034cf8090759b3a2d74a5eabc2823f83b6508434e619d8501d3930702e2bbad373581a70e2ce57aead9af77fc42766fbe2
 Size (firefox-63.0.1.source.tar.xz) = 265358784 bytes
-SHA1 (patch-aa) = 2df509e4c7478eb2a9d894b661ff62bca0e4c785
+SHA1 (patch-aa) = 649bafc86814ed9819a51f8347c5058123bd2d51
 SHA1 (patch-browser_app_profile_firefox.js) = 3ff1487607da5c7dc917fe9f793c6d281119974a
 SHA1 (patch-build_moz.configure_old.configure) = 91bab1cbbe02332ec076b49b6e598730202fbc99
 SHA1 (patch-dom_base_nsAttrName.h) = 89389af93bda7de9fd9a4b0fc6fa6505da390134
@@ -30,6 +30,7 @@
 SHA1 (patch-media_libcubeb_update.sh) = cddb5849fa2972e961e4891bc8a79a650df06d8d
 SHA1 (patch-media_libpng_pngpriv.h) = c8084332560017cd7c9b519b61d125fa28af0dbc
 SHA1 (patch-modules_pdfium_update.sh) = b0bf091325c9322c54880de067871354cd689038
+SHA1 (patch-python_mozbuild_mozbuild_action_check__binary.py) = 8103ca9f95fe98a4461c97abcd4cafd5ae5294f0
 SHA1 (patch-servo_components_style_build__gecko.rs) = 1045b4e336c329d2673d096aeead83b6bc58ed13
 SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = 082aa7830b33cb91c2606fb06059d544c70a7e62
 SHA1 (patch-toolkit_library_moz.build) = 102e3713552c26f76e8b4e473846bb8fbc44b278
@@ -38,5 +39,6 @@
 SHA1 (patch-toolkit_xre_glxtest.cpp) = cf048491778610454b914400e53072afedd96e7b
 SHA1 (patch-xpcom_base_nscore.h) = d7c96eda884d7f370442749c43caba50da61bbe4
 SHA1 (patch-xpcom_build_BinaryPath.h) = 9ec4b740388a4a887401efbb89810e96336576f7
+SHA1 (patch-xpcom_components_nsComponentManager.cpp) = 70546c05971ca4fef138b70e77ff341a61393c24
 SHA1 (patch-xpcom_reflect_xptcall_md_unix_moz.build) = 412da80be2aa43852e08ad35e6523ae0842167ab
 SHA1 (patch-xpcom_reflect_xptcall_md_unix_xptcinvoke__sparc64__openbsd.cpp) = 569f10c29da6e8d30ee6b8568c85a629557a3943
diff -r 8ce14d6963f2 -r bd71e1652858 www/firefox/patches/patch-aa
--- a/www/firefox/patches/patch-aa      Mon Nov 12 12:26:38 2018 +0000
+++ b/www/firefox/patches/patch-aa      Mon Nov 12 12:50:52 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: patch-aa,v 1.59 2018/11/04 00:38:44 ryoon Exp $
+$NetBSD: patch-aa,v 1.60 2018/11/12 12:50:52 jperkin Exp $
 
 * Add OSS audio support
+* Disable libav-fft on SunOS (relocation errors)
 
---- old-configure.in.orig      2018-10-18 20:06:09.000000000 +0000
+--- old-configure.in.orig      2018-10-31 00:08:10.000000000 +0000
 +++ old-configure.in
 @@ -2543,6 +2543,67 @@ MOZ_WEBM_ENCODER=1
  AC_DEFINE(MOZ_WEBM_ENCODER)
@@ -72,3 +73,11 @@
  dnl ========================================================
  dnl NegotiateAuth
  dnl ========================================================
+@@ -2860,6 +2921,7 @@ case "$OS_ARCH:$CPU_ARCH" in
+   WINNT:x86)
+       MOZ_LIBAV_FFT=1
+   ;;
++  SunOS:*) : ;;
+   *:x86_64)
+       MOZ_LIBAV_FFT=1
+   ;;
diff -r 8ce14d6963f2 -r bd71e1652858 www/firefox/patches/patch-python_mozbuild_mozbuild_action_check__binary.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox/patches/patch-python_mozbuild_mozbuild_action_check__binary.py        Mon Nov 12 12:50:52 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-python_mozbuild_mozbuild_action_check__binary.py,v 1.1 2018/11/12 12:50:52 jperkin Exp $
+
+Skip linker order tests on SunOS.
+
+--- python/mozbuild/mozbuild/action/check_binary.py.orig       2018-10-31 00:08:11.000000000 +0000
++++ python/mozbuild/mozbuild/action/check_binary.py
+@@ -228,6 +228,9 @@ def check_nsmodules(target, binary):
+     else:
+         sym_cmp = lambda guessed, actual: guessed == actual
+ 
++    if sys.platform.startswith('sunos'):
++        return
++
+     for addr, size, sym in symbols:
+         if next_addr is not None and not sym_cmp(next_addr, addr):
+             print_symbols(symbols)
diff -r 8ce14d6963f2 -r bd71e1652858 www/firefox/patches/patch-xpcom_components_nsComponentManager.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox/patches/patch-xpcom_components_nsComponentManager.cpp Mon Nov 12 12:50:52 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-xpcom_components_nsComponentManager.cpp,v 1.1 2018/11/12 12:50:52 jperkin Exp $
+
+Ensure symbols aren't pruned from being unused.
+
+--- xpcom/components/nsComponentManager.cpp.orig       2018-10-31 00:08:15.000000000 +0000
++++ xpcom/components/nsComponentManager.cpp
+@@ -298,8 +298,8 @@ extern mozilla::Module const* const __st
+ 
+ #  if defined(__ELF__) || (defined(_WIN32) && defined(__GNUC__))
+ 
+-extern "C" mozilla::Module const* const __start_kPStaticModules;
+-extern "C" mozilla::Module const* const __stop_kPStaticModules;
++extern "C" mozilla::Module const* const __start_kPStaticModules = nullptr;
++extern "C" mozilla::Module const* const __stop_kPStaticModules = nullptr;
+ 
+ #  elif defined(__MACH__)
+ 



Home | Main Index | Thread Index | Old Index