Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-09-21 08:20:32 +0200
committerErich Eckner <git@eckner.net>2022-09-21 08:20:32 +0200
commit78fd3d37f6b2f4021065510b6824627c174c1604 (patch)
tree43be875f659fe0547bf3c235428e19185d326269 /extra
parentb56ada5ec3381bd9be92f1358458a5b1f0242b53 (diff)
extra/linux-pae: pin gcc version
Diffstat (limited to 'extra')
-rw-r--r--extra/linux-pae/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/extra/linux-pae/PKGBUILD b/extra/linux-pae/PKGBUILD
index 0c50c70e..85a8962e 100644
--- a/extra/linux-pae/PKGBUILD
+++ b/extra/linux-pae/PKGBUILD
@@ -195,6 +195,15 @@ _package-headers() {
esac
/usr/bin/strip ${_strip} "${_binary}"
done < <(find "${_builddir}/scripts" -type f -perm -u+w -print0 2>/dev/null)
+ 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"
}
_package-docs() {