Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-09-16 15:09:51 +0200
committerErich Eckner <git@eckner.net>2022-09-16 15:09:51 +0200
commit11719c85c724e7a64b0a63c530c78e1b70fe986e (patch)
tree60754d4190d65a32837f5a783698acf617d9a19a /core
parent1dbc819788b86f5f38cb3df0969ea2054e267d4f (diff)
core/linux: pin the version of gcc-libs in linux-headers' dependencies
Diffstat (limited to 'core')
-rw-r--r--core/linux/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/linux/PKGBUILD b/core/linux/PKGBUILD
index 0921f075..6131c7cc 100644
--- a/core/linux/PKGBUILD
+++ b/core/linux/PKGBUILD
@@ -29,9 +29,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
+ ' "$_srcname/.config"
+}
+
# use our tarballer instead of cloning from git
for ((i=0; i<${#source[@]}; i++)); do
infos=$(