From fc25ed0e5ef3202458be8079a61e918e383af9d8 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 2 May 2022 21:14:24 +0200 Subject: forgot to add some patches --- extra/linux-pae/PKGBUILD | 10 ++++++++++ extra/linux-pae/no-ultra-zstd.patch | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 extra/linux-pae/no-ultra-zstd.patch (limited to 'extra/linux-pae') diff --git a/extra/linux-pae/PKGBUILD b/extra/linux-pae/PKGBUILD index 00448631..5da48508 100644 --- a/extra/linux-pae/PKGBUILD +++ b/extra/linux-pae/PKGBUILD @@ -219,6 +219,16 @@ done # vim:set ts=8 sts=2 sw=2 et: +# avoid using zstd compression in ultra mode (exhausts virtual memory) +source+=('no-ultra-zstd.patch') +sha256sums+=('d32270be5fd9c3e3ba50f3aef33f6cfcb85be0c8216f03b777287cc621fdff28') +eval "$( + declare -f prepare | \ + sed ' + /cd/ a patch -Np1 -i $srcdir/no-ultra-zstd.patch + ' +)" + # https://bbs.archlinux32.org/viewtopic.php?pid=9109#p9109 # avoid "sleepy" VIA C7 CPUs (and possibly others) source+=('acpi-c3.patch') diff --git a/extra/linux-pae/no-ultra-zstd.patch b/extra/linux-pae/no-ultra-zstd.patch new file mode 100644 index 00000000..8bab0c2c --- /dev/null +++ b/extra/linux-pae/no-ultra-zstd.patch @@ -0,0 +1,15 @@ +diff -rauN a/scripts/Makefile.lib b/scripts/Makefile.lib +--- a/scripts/Makefile.lib 2020-11-11 06:45:51.375133819 +0100 ++++ b/scripts/Makefile.lib 2020-11-11 06:46:12.058448322 +0100 +@@ -499,9 +499,9 @@ + cmd_zstd = cat $(real-prereqs) | $(ZSTD) -19 > $@ + + quiet_cmd_zstd22 = ZSTD22 $@ +- cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -22 --ultra > $@ ++ cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -19 > $@ + + quiet_cmd_zstd22_with_size = ZSTD22 $@ +- cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -22 --ultra; $(size_append); } > $@ ++ cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -19; $(size_append); } > $@ + + # ASM offsets -- cgit v1.2.3-70-g09d2