From 9319e88a471903745ba6aafdd4b514fa269f1f7e Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 28 Jun 2025 15:51:59 -0600 Subject: first commit --- palemoon/patches/install-dir.patch | 19 +++++++++++++++++++ palemoon/patches/set-max-stack-size.patch | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 palemoon/patches/install-dir.patch create mode 100644 palemoon/patches/set-max-stack-size.patch (limited to 'palemoon/patches') 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 -- cgit v1.2.3