Relax check for gcc package name in {cpp,pkgconfiglib}.req generators

This commit is contained in:
Gleb Fotengauer-Malinovskiy 2016-12-20 17:48:50 +03:00
parent cec71f3fbf
commit 6409cf5038
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ CppReq()
local srpm="${RPM_PACKAGE_NAME-}"
[ -n "$srpm" ] || srpm=$(rpmquery --qf='%{SOURCERPM}' -f "$f" 2>/dev/null) || srpm=foo
case "$srpm" in
gcc | gcc-[345]* | gcc[345]* )
gcc | gcc-[1-9]* | gcc[1-9]* )
[ -n "$gcc" ] ||
Verbose "$f: $PROG disabled for gcc"
gcc=$srpm

View File

@ -27,7 +27,7 @@ PkgconfigLibReq()
# Below we use "gcc -print-search-dirs" to determine library
# search path. If we build gcc itself, then e.g. libgcj.pc
# (with -lgcj inside) cannot be processed reliably.
gcc | gcc-[345]* | gcc[345]* )
gcc | gcc-[1-9]* | gcc[1-9]* )
Verbose "$f: $PROG disabled for gcc"
return 0 ;;
esac