From 3d4eab785cfbf4dcc4f716247cd861ee4b1e59e8 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Sun, 11 Dec 2022 10:40:52 +0100 Subject: [PATCH] add build script for libunwind --- libunwind.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 libunwind.sh diff --git a/libunwind.sh b/libunwind.sh new file mode 100644 index 0000000..bb95a64 --- /dev/null +++ b/libunwind.sh @@ -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 "$@" -- 2.39.5