diff options
author | Jingyun Hua <huajingyun@loongson.cn> | 2024-03-04 06:48:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2024-03-05 12:31:20 +0000 |
commit | f31d4d26613dc9c1035cb5698edaa39da22ac21b (patch) | |
tree | 2174f3a922f41f4808d2fd7a35414e5ed1ba88e4 | |
parent | d5a465162d5e0dcd27fd0b129e24f2ec9d81a297 (diff) | |
download | aports-f31d4d26613dc9c1035cb5698edaa39da22ac21b.zip |
main/abuild: update autoconf test for loongarch64
see:
https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/248
-rw-r--r-- | main/abuild/APKBUILD | 2 | ||||
-rw-r--r-- | main/abuild/abuild.in-update-autoconf-test-for-loongarch64.patch | 22 |
2 files changed, 24 insertions, 0 deletions
diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD index 9383f32fd3a..604745759a5 100644 --- a/main/abuild/APKBUILD +++ b/main/abuild/APKBUILD @@ -36,6 +36,7 @@ options="suid" pkggroups="abuild" source="https://gitlab.alpinelinux.org/alpine/abuild/-/archive/$pkgver/abuild-$pkgver.tar.gz abuild-fix-subpackage-setting-arch-to-all-explicitly.patch + abuild.in-update-autoconf-test-for-loongarch64.patch " builddir="$srcdir"/abuild-$pkgver @@ -113,4 +114,5 @@ _rootbld() { sha512sums=" 00fac67aa96a83f33406dde60bd9526bfa5fdff690b84dbe867b6ed197f147b2afafcdfbda900c005e00a64a42bcb98ca425ffc8bf2158b9540cbb67d935577d abuild-3.12.0.tar.gz b1b75cce7fe86f5183e68ab37ed1b4742927b0617fac2b200837cacd759443315d0cbcae137cb1fe0b6f0a25ed81c90b33e8ec64cd1033aba6016ec6ea0d68ee abuild-fix-subpackage-setting-arch-to-all-explicitly.patch +601beff5722a2356a9025a1a7ea7b955ea9bdd5016369c055414e4e254dfba2cf0b2ccfc2be7225555aa630c98a1e19afc7e6b4fe769e22c0cbe10edca42eedd abuild.in-update-autoconf-test-for-loongarch64.patch " diff --git a/main/abuild/abuild.in-update-autoconf-test-for-loongarch64.patch b/main/abuild/abuild.in-update-autoconf-test-for-loongarch64.patch new file mode 100644 index 00000000000..b8e7d161bfc --- /dev/null +++ b/main/abuild/abuild.in-update-autoconf-test-for-loongarch64.patch @@ -0,0 +1,22 @@ +diff --git a/abuild.in b/abuild.in +index 9adb37a..41bae32 100644 +--- a/abuild.in ++++ b/abuild.in +@@ -667,7 +667,7 @@ mkusers() { + # helper to update config.sub to a recent version + update_config_sub() { + find . -name config.sub | (local changed=false; while read f; do +- if ! ./$f riscv64-alpine-linux-musl 2>/dev/null; then ++ if ! ./$f loongarch64-alpine-linux-musl 2>/dev/null; then + msg "Updating $f" + cp "$sharedir"/${f##*/} "$f" || return 1 + changed=true +@@ -680,7 +680,7 @@ update_config_sub() { + # helper to update config.guess to a recent version + update_config_guess() { + find . -name config.guess | (local changed=false; while read f; do +- if grep -q aarch64 "$f" && grep -q ppc64le "$f" && grep -q riscv64 "$f"; then ++ if grep -q aarch64 "$f" && grep -q ppc64le "$f" && grep -q riscv64 "$f" && grep -q loongarch64 "$f"; then + msg "No update needed for $f" + else + msg "Updating $f" |