pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/firefox52 Make it buildable on sparc64/current (wi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/faf2e94bd0d6
branches:  trunk
changeset: 439922:faf2e94bd0d6
user:      martin <martin%pkgsrc.org@localhost>
date:      Wed Sep 30 07:26:49 2020 +0000

description:
Make it buildable on sparc64/current (with gcc 9)

diffstat:

 www/firefox52/distinfo                                            |   5 +-
 www/firefox52/patches/patch-ipc_chromium_src_base_process__util.h |  27 ++++++++-
 www/firefox52/patches/patch-js_xpconnect_src_XPCWrappedNative.cpp |  25 +++++++++
 3 files changed, 51 insertions(+), 6 deletions(-)

diffs (94 lines):

diff -r f268521b3ad7 -r faf2e94bd0d6 www/firefox52/distinfo
--- a/www/firefox52/distinfo    Wed Sep 30 07:02:41 2020 +0000
+++ b/www/firefox52/distinfo    Wed Sep 30 07:26:49 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.23 2020/03/30 19:46:02 joerg Exp $
+$NetBSD: distinfo,v 1.24 2020/09/30 07:26:49 martin Exp $
 
 SHA1 (firefox-52.9.0esr.source.tar.xz) = df3d47518b380fe934e32a288515c25435fd82a7
 RMD160 (firefox-52.9.0esr.source.tar.xz) = 8940269f0a515c0066b6ab2eea1da8963d27617b
@@ -50,7 +50,7 @@
 SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 99b9f3f9dd88f1c8008d2fb6058450695394f5cf
 SHA1 (patch-ipc_chromium_src_base_platform__thread.h) = c81930280bd76a00fbad37aad02fb8451d80b1ee
 SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 45409f2152d5ffc376c18c0c9bc696e08e3910ce
-SHA1 (patch-ipc_chromium_src_base_process__util.h) = 4b24c3467866a601d68bb83f44e5fd38fb27188d
+SHA1 (patch-ipc_chromium_src_base_process__util.h) = 65b97deadb6c7b83472d6b3892600befe8433c74
 SHA1 (patch-ipc_chromium_src_base_process__util__posix.cc) = aa6dee9678eeb0eb3d50e74f6e629ee0f4bc9d4b
 SHA1 (patch-ipc_chromium_src_base_sys__info__posix.cc) = 5313c4097c278640573c7e1cb089f6f76b48c1a8
 SHA1 (patch-ipc_chromium_src_base_time__posix.cc) = ba4e0872490f870e7d2f468e1fe87c33cf9a3500
@@ -62,6 +62,7 @@
 SHA1 (patch-js_src_moz.build) = ce9110506086d15a011d0985b58dd4e7d1b6ec5f
 SHA1 (patch-js_src_vm_StructuredClone.cpp) = 7e992825e996c43419318893b704a2aa380b0d2a
 SHA1 (patch-js_xpconnect_src_XPCConvert.cpp) = 915777e9bb5366be41866cdb6ea0ad2b1c006dde
+SHA1 (patch-js_xpconnect_src_XPCWrappedNative.cpp) = 6630b8cb20a2a2b8337e8c1250e741fd65be1e54
 SHA1 (patch-js_xpconnect_src_xpcprivate.h) = e09e37819961bae40a9f276ae1ee510d2956c23e
 SHA1 (patch-media_libcubeb_src_cubeb.c) = 24075714155e5c95fddf95ae8865a71db6006c15
 SHA1 (patch-media_libcubeb_src_cubeb__alsa.c) = c59eaf40973193885f32819b465b401c1ba45fce
diff -r f268521b3ad7 -r faf2e94bd0d6 www/firefox52/patches/patch-ipc_chromium_src_base_process__util.h
--- a/www/firefox52/patches/patch-ipc_chromium_src_base_process__util.h Wed Sep 30 07:02:41 2020 +0000
+++ b/www/firefox52/patches/patch-ipc_chromium_src_base_process__util.h Wed Sep 30 07:26:49 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ipc_chromium_src_base_process__util.h,v 1.1 2017/04/27 01:55:57 ryoon Exp $
+$NetBSD: patch-ipc_chromium_src_base_process__util.h,v 1.2 2020/09/30 07:26:49 martin Exp $
 
---- ipc/chromium/src/base/process_util.h.orig  2015-01-09 04:38:16.000000000 +0000
-+++ ipc/chromium/src/base/process_util.h
-@@ -41,6 +41,9 @@
+--- ipc/chromium/src/base/process_util.h.orig  2017-04-11 04:13:12.000000000 +0200
++++ ipc/chromium/src/base/process_util.h       2020-09-29 15:22:02.249538989 +0200
+@@ -43,6 +43,9 @@
  typedef PROCESSENTRY32 ProcessEntry;
  typedef IO_COUNTERS IoCounters;
  #elif defined(OS_POSIX)
@@ -12,3 +12,22 @@
  // TODO(port): we should not rely on a Win32 structure.
  struct ProcessEntry {
    int pid;
+@@ -75,7 +78,8 @@ enum ProcessArchitecture {
+   PROCESS_ARCH_PPC = 0x4,
+   PROCESS_ARCH_ARM = 0x8,
+   PROCESS_ARCH_MIPS = 0x10,
+-  PROCESS_ARCH_ARM64 = 0x20
++  PROCESS_ARCH_ARM64 = 0x20,
++  PROCESS_ARCH_SPARC = 0x40
+ };
+ 
+ inline ProcessArchitecture GetCurrentProcessArchitecture()
+@@ -93,6 +97,8 @@ inline ProcessArchitecture GetCurrentPro
+   currentArchitecture = base::PROCESS_ARCH_MIPS;
+ #elif defined(ARCH_CPU_ARM64)
+   currentArchitecture = base::PROCESS_ARCH_ARM64;
++#elif defined(ARCH_CPU_SPARC)
++  currentArchitecture = base::PROCESS_ARCH_SPARC;
+ #endif
+   return currentArchitecture;
+ }
diff -r f268521b3ad7 -r faf2e94bd0d6 www/firefox52/patches/patch-js_xpconnect_src_XPCWrappedNative.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox52/patches/patch-js_xpconnect_src_XPCWrappedNative.cpp Wed Sep 30 07:26:49 2020 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-js_xpconnect_src_XPCWrappedNative.cpp,v 1.1 2020/09/30 07:26:49 martin Exp $
+
+Avoid error when compiling with gcc 9:
+XPCWrappedNative.cpp:2221:41: error: '%s' directive argument is null [-Werror=format-overflow=]
+ 2221 |                 name = JS_sprintf_append(name, fmt,
+      |                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
+ 2222 |                                          array[i]->GetNameString());
+      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+--- js/xpconnect/src/XPCWrappedNative.cpp.orig 2018-06-21 20:53:54.000000000 +0200
++++ js/xpconnect/src/XPCWrappedNative.cpp      2020-09-30 06:58:32.859731786 +0200
+@@ -2218,8 +2218,10 @@ XPCWrappedNative::ToString(XPCWrappedNat
+                 const char* fmt = (i == 0) ?
+                                     "(%s" : (i == count-1) ?
+                                         ", %s)" : ", %s";
+-                name = JS_sprintf_append(name, fmt,
+-                                         array[i]->GetNameString());
++              const char *s = array[i]->GetNameString();
++              if (s == NULL)
++                      s = "-";
++                name = JS_sprintf_append(name, fmt, s);
+             }
+         }
+     }



Home | Main Index | Thread Index | Old Index