From b56ada5ec3381bd9be92f1358458a5b1f0242b53 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 21 Sep 2022 08:19:23 +0200 Subject: extra/linux-olpc-xo1: pin gcc version --- extra/linux-olpc-xo1/PKGBUILD | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'extra') diff --git a/extra/linux-olpc-xo1/PKGBUILD b/extra/linux-olpc-xo1/PKGBUILD index 29e7b7a7..dd1d38d6 100644 --- a/extra/linux-olpc-xo1/PKGBUILD +++ b/extra/linux-olpc-xo1/PKGBUILD @@ -164,6 +164,15 @@ _package-headers() { echo "Adding symlink..." mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" + 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() { -- cgit v1.2.3-70-g09d2