Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/zstd/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-01-13 17:27:01 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-01-13 17:27:01 +0100
commit81bbcb62cccc88b45381cd6eb462a5ea55fe75e4 (patch)
treedaced691964a5f15391ae2a85cfcb4589622adb9 /core/zstd/PKGBUILD
parentf3d276d793fcd5990d5ebf66cca055196c147f30 (diff)
core/zstd: patch for non-executable stack (FS32#225)
Diffstat (limited to 'core/zstd/PKGBUILD')
-rw-r--r--core/zstd/PKGBUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/zstd/PKGBUILD b/core/zstd/PKGBUILD
new file mode 100644
index 00000000..c1f01001
--- /dev/null
+++ b/core/zstd/PKGBUILD
@@ -0,0 +1,15 @@
+# make sure the stack is not executable on IA-32
+source+=('zstd-1.5.1-non-x86_64-noexecstack.patch')
+sha256sums+=('eb641a066c45a96f20782396a033e4eed3c8411b848a1c89b7682df91aba1a58')
+b2sums+=('6cf6fe41026f67d165cb6513f7ab1779e6b8e48bdd545d89beb7942ce12ecb0ebccf802128a02b6bb32994f22841089a67fa83f8f3a6a7e3f9b05bde8930ce5b')
+
+eval "$(
+ {
+ declare -f prepare || \
+ printf 'prepare() {\n}\n'
+ } \
+ | sed '
+ $i cd $pkgname-$pkgver
+ $i patch -p1 -i "$srcdir/zstd-1.5.1-non-x86_64-noexecstack.patch"
+ '
+)"