]> cvs.zerfleddert.de Git - m1-debian/commitdiff
add build script for libunwind
authorThomas Glanzmann <thomas@glanzmann.de>
Sun, 11 Dec 2022 09:40:52 +0000 (10:40 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Sun, 11 Dec 2022 09:40:52 +0000 (10:40 +0100)
libunwind.sh [new file with mode: 0644]

diff --git a/libunwind.sh b/libunwind.sh
new file mode 100644 (file)
index 0000000..bb95a64
--- /dev/null
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+set -o errexit
+set -o nounset
+set -o pipefail
+set -o xtrace
+
+cd "$(dirname "$0")"
+
+unset LC_CTYPE
+unset LANG
+
+main() {
+        mkdir -p build
+        cd build
+        dpkg -s devscripts >/dev/null 2>&1 || sudo apt-get install devscripts
+        rm -rf libunwind-1.6.2/
+        apt-get source libunwind
+        cd libunwind-1.6.2/
+        EMAIL=thomas@glanzmann.de dch 'Variable page size patch applied'
+        curl -sL https://tg.st/u/0001-libunwind-1.6.2-dynamic-page-size.patch > debian/patches/0001-libunwind-1.6.2-dynamic-page-size.patch
+        echo '0001-libunwind-1.6.2-dynamic-page-size.patch' >> debian/patches/series
+        sudo apt-get build-dep .
+        dpkg-buildpackage -uc -us -a arm64
+}
+
+main "$@"
Impressum, Datenschutz