aboutsummaryrefslogtreecommitdiff
path: root/palemoon/patches
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-06-28 15:51:59 -0600
committernathan <nathansmith@disroot.org>2025-06-28 15:51:59 -0600
commit9319e88a471903745ba6aafdd4b514fa269f1f7e (patch)
treea84a573bc96245042cbe4f31562783d0c4a4925e /palemoon/patches
first commit
Diffstat (limited to 'palemoon/patches')
-rw-r--r--palemoon/patches/install-dir.patch19
-rw-r--r--palemoon/patches/set-max-stack-size.patch15
2 files changed, 34 insertions, 0 deletions
diff --git a/palemoon/patches/install-dir.patch b/palemoon/patches/install-dir.patch
new file mode 100644
index 0000000..4771cfa
--- /dev/null
+++ b/palemoon/patches/install-dir.patch
@@ -0,0 +1,19 @@
+diff --git a/platform/config/baseconfig.mk b/platform/config/baseconfig.mk
+index 47a12b16e..2facdd257 100644
+--- a/platform/config/baseconfig.mk
++++ b/platform/config/baseconfig.mk
+@@ -2,10 +2,10 @@
+ # directly in python/mozbuild/mozbuild/base.py for gmake validation.
+ # We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
+ # whether a normal build is happening or whether the check is running.
+-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)/$(MOZ_APP_NAME)
++idldir = $(datadir)/idl/$(MOZ_APP_NAME)
++installdir = $(libdir)/$(MOZ_APP_NAME)
++sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel
+ ifeq (.,$(DEPTH))
+ DIST = dist
+ else
diff --git a/palemoon/patches/set-max-stack-size.patch b/palemoon/patches/set-max-stack-size.patch
new file mode 100644
index 0000000..40c40ea
--- /dev/null
+++ b/palemoon/patches/set-max-stack-size.patch
@@ -0,0 +1,15 @@
+set max stack size to 2MB,
+see https://repo.palemoon.org/MoonchildProductions/UXP/commit/00f22ddbe62f9ab4cf314b1beb18b7f9a91edae2
+diff --git a/platform/js/xpconnect/src/XPCJSContext.cpp b/platform/js/xpconnect/src/XPCJSContext.cpp
+index 9d11356e27..9b06c94fbc 100644
+--- a/platform/js/xpconnect/src/XPCJSContext.cpp
++++ b/platform/js/xpconnect/src/XPCJSContext.cpp
+@@ -3231,7 +3231,7 @@ XPCJSContext::Initialize()
+ // Most Linux distributions set default stack size to 8MB. Use it as the
+ // maximum value.
+ // Solaris uses 8 or 10 MB, depending, so this is a safe max there too.
+- const size_t kStackQuotaMax = 8 * 1024 * 1024;
++ const size_t kStackQuotaMax = 2 * 1024 * 1024;
+ #if defined(MOZ_ASAN) || defined(DEBUG)
+ // Bug 803182: account for the 4x difference in the size of js::Interpret
+ // between optimized and debug builds. We use 2x since the JIT part