Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-09-21 08:21:22 +0200
committerErich Eckner <git@eckner.net>2022-09-21 08:21:22 +0200
commit40cf720d06d08a5de1ac4ca2f8c449677862d95d (patch)
tree03a0ef1acc6d28f781a71f69e63afa28b2fa294c
parent78fd3d37f6b2f4021065510b6824627c174c1604 (diff)
extra/linux-zen: pin gcc version
-rw-r--r--extra/linux-zen/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/extra/linux-zen/PKGBUILD b/extra/linux-zen/PKGBUILD
index 7b66d446..89064177 100644
--- a/extra/linux-zen/PKGBUILD
+++ b/extra/linux-zen/PKGBUILD
@@ -15,9 +15,18 @@ eval "$(
a \
install -t "${builddir}/arch/x86" -m644 arch/x86/Makefile_32.cpu
}
+ /}/ i depends+=(gcc-libs=$(get_gcc_version_from_config))
'
)"
+get_gcc_version_from_config() {
+ sed '
+ s/^CONFIG_CC_VERSION_TEXT="gcc (GCC) \([0-9.]\+\)"$/\1/
+ t
+ d
+ ' "$srcdir/$_srcname/.config"
+}
+
# use our tarballer instead of cloning from git
for ((i=0; i<${#source[@]}; i++)); do
infos=$(