Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/firefox firefox: disable multiprocess firefox on n...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e03dbcc6353e
branches:  trunk
changeset: 430840:e03dbcc6353e
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon May 04 21:29:08 2020 +0000

description:
firefox: disable multiprocess firefox on netbsd 9.0 release too
(needs a kernel patch)

PKGREVISION++

diffstat:

 www/firefox/Makefile                                                |   6 +-
 www/firefox/distinfo                                                |   6 +-
 www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore.h          |   4 +-
 www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore__posix.cpp |  22 +++++-----
 4 files changed, 19 insertions(+), 19 deletions(-)

diffs (164 lines):

diff -r 2639219ca04e -r e03dbcc6353e www/firefox/Makefile
--- a/www/firefox/Makefile      Mon May 04 21:21:11 2020 +0000
+++ b/www/firefox/Makefile      Mon May 04 21:29:08 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.423 2020/05/03 18:45:30 maya Exp $
+# $NetBSD: Makefile,v 1.424 2020/05/04 21:29:08 maya Exp $
 
 FIREFOX_VER=           ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
 MOZ_BRANCH=            75.0
@@ -6,7 +6,7 @@
 
 DISTNAME=      firefox-${FIREFOX_VER}.source
 PKGNAME=       ${DISTNAME:S/.source//:S/b/beta/:S/esr//}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    www
 MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
 EXTRACT_SUFX=  .tar.xz
@@ -100,7 +100,7 @@
        cd ${WRKSRC}/${OBJDIR} && touch old-configure.vars
        # Do not fetch Rust Cargo file via network during build
 
-.if !empty(MACHINE_PLATFORM:MNetBSD-8.*-*)
+.if !empty(MACHINE_PLATFORM:MNetBSD-8.*-*) || !empty(MACHINE_PLATFORM:MNetBSD-9.0*)
 .PHONY: disable-multiprocess
 disable-multiprocess:
        ${STEP_MSG} "Broken process-shared mutexes, disabling multiprocess windows..."
diff -r 2639219ca04e -r e03dbcc6353e www/firefox/distinfo
--- a/www/firefox/distinfo      Mon May 04 21:21:11 2020 +0000
+++ b/www/firefox/distinfo      Mon May 04 21:29:08 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.391 2020/05/03 18:45:30 maya Exp $
+$NetBSD: distinfo,v 1.392 2020/05/04 21:29:08 maya Exp $
 
 SHA1 (firefox-75.0.source.tar.xz) = df7904c16d525eb791728d655258b7d1fe064db9
 RMD160 (firefox-75.0.source.tar.xz) = e75ffcf93adab1198a93b42a6d2f8722be3745ce
@@ -19,8 +19,8 @@
 SHA1 (patch-ipc_chromium_src_base_lock__impl__posix.cc) = d84d9b4d416e049423120dcbf9199644ce1c93ab
 SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 4a6606da590cfb8d855bde58b9c6f90e98d0870c
 SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 35d20981d33ccdb1d8ffb8039e48798777f11658
-SHA1 (patch-ipc_glue_CrossProcessSemaphore.h) = 295bfe10c8ba15cfbecf083e791a2d5bc53ea462
-SHA1 (patch-ipc_glue_CrossProcessSemaphore__posix.cpp) = bf26ef59cc0e200a5d4e7f1d7415666acbf0bbac
+SHA1 (patch-ipc_glue_CrossProcessSemaphore.h) = 102e8a164584c6d73a5ca2bd4ad1050586082410
+SHA1 (patch-ipc_glue_CrossProcessSemaphore__posix.cpp) = 9635992da0fbae262a02a0eafce7e2445c44c22b
 SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = 260c29bacd8bf265951b7a412f850bf2b292c836
 SHA1 (patch-js_src_jsfriendapi.h) = fce9627bb1c45addccec105a0f38f0a3aac3f9b3
 SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba
diff -r 2639219ca04e -r e03dbcc6353e www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore.h
--- a/www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore.h        Mon May 04 21:21:11 2020 +0000
+++ b/www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore.h        Mon May 04 21:29:08 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ipc_glue_CrossProcessSemaphore.h,v 1.3 2020/05/03 18:45:30 maya Exp $
+$NetBSD: patch-ipc_glue_CrossProcessSemaphore.h,v 1.4 2020/05/04 21:29:08 maya Exp $
 
 --- ipc/glue/CrossProcessSemaphore.h.orig      2018-10-18 20:06:06.000000000 +0000
 +++ ipc/glue/CrossProcessSemaphore.h
@@ -17,7 +17,7 @@
    HANDLE mSemaphore;
  #elif !defined(OS_MACOSX)
    RefPtr<mozilla::ipc::SharedMemoryBasic> mSharedBuffer;
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  pthread_mutex_t* mMutex;
 +  pthread_cond_t* mNotZero;
 +  uint32_t* mValue;
diff -r 2639219ca04e -r e03dbcc6353e www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore__posix.cpp
--- a/www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore__posix.cpp       Mon May 04 21:21:11 2020 +0000
+++ b/www/firefox/patches/patch-ipc_glue_CrossProcessSemaphore__posix.cpp       Mon May 04 21:29:08 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ipc_glue_CrossProcessSemaphore__posix.cpp,v 1.6 2020/05/03 18:45:30 maya Exp $
+$NetBSD: patch-ipc_glue_CrossProcessSemaphore__posix.cpp,v 1.7 2020/05/04 21:29:08 maya Exp $
 
 --- ipc/glue/CrossProcessSemaphore_posix.cpp.orig      2019-01-18 00:20:30.000000000 +0000
 +++ ipc/glue/CrossProcessSemaphore_posix.cpp
@@ -19,7 +19,7 @@
  namespace {
  
  struct SemaphoreData {
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  pthread_mutex_t mMutex;
 +  pthread_cond_t mNotZero;
 +  uint32_t mValue;
@@ -33,7 +33,7 @@
      return nullptr;
    }
  
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  data->mValue = aInitialValue;
 +  if (pthread_mutex_init(&data->mMutex, NULL) ||
 +      pthread_cond_init(&data->mNotZero, NULL) ) {
@@ -47,7 +47,7 @@
  
    CrossProcessSemaphore* sem = new CrossProcessSemaphore;
    sem->mSharedBuffer = sharedBuffer;
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  sem->mMutex = &data->mMutex;
 +  sem->mNotZero = &data->mNotZero;
 +  sem->mValue = &data->mValue;
@@ -61,7 +61,7 @@
  
    int32_t oldCount = data->mRefCount++;
    if (oldCount == 0) {
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +    if (pthread_mutex_init(&data->mMutex, NULL) ||
 +        pthread_cond_init(&data->mNotZero, NULL) ) {
 +      data->mRefCount--;
@@ -79,7 +79,7 @@
  
    CrossProcessSemaphore* sem = new CrossProcessSemaphore;
    sem->mSharedBuffer = sharedBuffer;
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  sem->mMutex = &data->mMutex;
 +  sem->mNotZero = &data->mNotZero;
 +  sem->mValue = &data->mValue;
@@ -92,7 +92,7 @@
  
  CrossProcessSemaphore::CrossProcessSemaphore()
 -    : mSemaphore(nullptr), mRefCount(nullptr) {
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  : mMutex (nullptr)
 +  , mNotZero (nullptr)
 +  , mValue (nullptr)
@@ -107,7 +107,7 @@
  
    if (oldCount == 0) {
      // Nothing can be done if the destroy fails so ignore return code.
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +    (void)pthread_cond_destroy(mNotZero);
 +    (void)pthread_mutex_destroy(mMutex);
 +#else
@@ -118,7 +118,7 @@
    MOZ_COUNT_DTOR(CrossProcessSemaphore);
  }
  
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +static struct timespec
 +makeAbsTime(const Maybe<TimeDuration>& aWaitTime) {
 +  struct timespec ts;
@@ -140,7 +140,7 @@
    MOZ_ASSERT(*mRefCount > 0,
               "Attempting to wait on a semaphore with zero ref count");
    int ret;
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  struct timespec ts = makeAbsTime(aWaitTime);
 +
 +  ret = pthread_mutex_lock(mMutex);
@@ -172,7 +172,7 @@
  void CrossProcessSemaphore::Signal() {
    MOZ_ASSERT(*mRefCount > 0,
               "Attempting to signal a semaphore with zero ref count");
-+#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000000)
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 900000001)
 +  int ret;
 +  ret = pthread_mutex_lock(mMutex);
 +  if (ret == 0) {



Home | Main Index | Thread Index | Old Index