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:17:21 +0200
committerErich Eckner <git@eckner.net>2022-09-21 08:17:21 +0200
commita2cd874246c218d525226e3d171194347e2f2a0e (patch)
treed9b6d546c81592371c26746299206dc8d6cbbe76
parent4b7dca969e0edad71b69e332ca9c9ebcee7ffd26 (diff)
core/linux-lts: pin gcc version
-rw-r--r--core/linux-lts/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/linux-lts/PKGBUILD b/core/linux-lts/PKGBUILD
index 50e5c7c5..e0a471e2 100644
--- a/core/linux-lts/PKGBUILD
+++ b/core/linux-lts/PKGBUILD
@@ -12,9 +12,18 @@ eval "$(
sed '
\,/tools/objtool" ,d
\,arch/x86/Makefile,a install -Dt "$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"
+}
+
# avoid using zstd compression in ultra mode (exhausts virtual memory)
source+=('no-ultra-zstd.patch')
sha256sums+=('3997ce6033fdf950a9960f1db720b38c47b1a2e06ab75fc6712c154f596e7c47')