summaryrefslogtreecommitdiff
path: root/extra/slang/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-01-17 20:17:41 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-01-17 20:17:41 +0100
commitc98b3e42412ebc575ab0c7f785172c66d8ffd196 (patch)
tree5c70e22584820b56fb03915c88fcef87bf600f36 /extra/slang/PKGBUILD
parent9b2f6673ccd37ad3ec58b5f1167d3a148cbea1e1 (diff)
downloadpackages-c98b3e42412ebc575ab0c7f785172c66d8ffd196.tar.xz
extra/slang: backported array and checksum integer overflow patches from git
Diffstat (limited to 'extra/slang/PKGBUILD')
-rw-r--r--extra/slang/PKGBUILD14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/slang/PKGBUILD b/extra/slang/PKGBUILD
new file mode 100644
index 00000000..5334396d
--- /dev/null
+++ b/extra/slang/PKGBUILD
@@ -0,0 +1,14 @@
+# 32-bit issues around arrays (fails a test) and a memset in checksumming
+# see upstream commits 7dfe53f and 68dd5e9
+source+=(slang-2.3.2-integer-array-overflow.patch slang-2.3.2-chksum-memset.patch)
+sha1sums+=('c64e55fc9713c61f7069408150f8123959652a54' '0bbe3eb3222d2fa2512b9591d6b1a88a5838d6a8')
+eval "$(
+ {
+ declare -f prepare || \
+ printf 'prepare() { cd ${srcdir}/${pkgname}-${pkgver}\n}\n'
+ } \
+ | sed '
+ $ i patch -p1 -i "$srcdir"/slang-2.3.2-integer-array-overflow.patch
+ $ i patch -p1 -i "$srcdir"/slang-2.3.2-chksum-memset.patch
+ '
+)"