From 304e6f088eddf653dde23c5c6877f7c951bee0f4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 21 Sep 2019 19:18:18 +0200 Subject: extra/firefox: avoid another python check running OOM --- extra/firefox/PKGBUILD | 9 +++++++++ extra/firefox/avoid-libxul-OOM-python-check.patch | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 extra/firefox/avoid-libxul-OOM-python-check.patch diff --git a/extra/firefox/PKGBUILD b/extra/firefox/PKGBUILD index 2ea1d935..846cd71a 100644 --- a/extra/firefox/PKGBUILD +++ b/extra/firefox/PKGBUILD @@ -99,3 +99,12 @@ eval "$( ' )" +# readelf: Error: Unable to seek to 0x801db328 for section headers +source+=('avoid-libxul-OOM-python-check.patch') +sha256sums+=('00b7019218d015a11670d566bff6d62872357c29ee7f9ef4d29a7f63c46227b6') +eval "$( + declare -f prepare | \ + sed ' + $ i patch -p1 -i "$srcdir/avoid-libxul-OOM-python-check.patch" + ' +)" diff --git a/extra/firefox/avoid-libxul-OOM-python-check.patch b/extra/firefox/avoid-libxul-OOM-python-check.patch new file mode 100644 index 00000000..d9db28ab --- /dev/null +++ b/extra/firefox/avoid-libxul-OOM-python-check.patch @@ -0,0 +1,12 @@ +diff -rauN a/config/rules.mk b/config/rules.mk +--- a/config/rules.mk 2019-09-21 19:14:10.531026841 +0200 ++++ b/config/rules.mk 2019-09-21 19:15:08.752873377 +0200 +@@ -660,7 +660,7 @@ + $(RM) $@ + endif + $(MKSHLIB) $($@_$(OBJS_VAR_SUFFIX)) $(RESFILE) $(LDFLAGS) $(STATIC_LIBS) $(RUST_STATIC_LIB) $(SHARED_LIBS) $(EXTRA_DSO_LDOPTS) $(MOZ_GLUE_LDFLAGS) $(OS_LIBS) +- $(call py_action,check_binary,--target $@) ++# $(call py_action,check_binary,--target $@) + + ifeq (_WINNT,$(GNU_CC)_$(OS_ARCH)) + ifdef MSMANIFEST_TOOL -- cgit v1.2.3-70-g09d2