summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-12 11:54:48 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-18 08:33:18 +0100
commit8400f95b08817f1755b5fb8a2443f170bbfc058c (patch)
treece9071741c011f20e87faa79b1daf2be25f1d39d /eclass
parenteutils.eclass: prune_libtool_files, punt pointless Prefix logic (diff)
downloadgentoo-8400f95b08817f1755b5fb8a2443f170bbfc058c.tar.gz
gentoo-8400f95b08817f1755b5fb8a2443f170bbfc058c.tar.bz2
gentoo-8400f95b08817f1755b5fb8a2443f170bbfc058c.zip
eutils.eclass: prune_libtool_files, make .pc subst errors fatal
Make the substitution errors in prune_libtool_files logic fatal to avoid the dependency of eqawarn. They're extremely unlikely to happen anyway.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index ab226b236a37..cb472caee1d4 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -982,9 +982,10 @@ prune_libtool_files() {
for arg in ${libs}; do
if [[ ${arg} == -l* ]]; then
if [[ ${arg} == '*$*' ]]; then
- eqawarn "${FUNCNAME}: variable substitution likely failed in ${pc}"
- eqawarn "(arg: ${arg})"
- eqawarn "Most likely, you need to add virtual/pkgconfig to DEPEND."
+ eerror "${FUNCNAME}: variable substitution likely failed in ${pc}"
+ eerror "(arg: ${arg})"
+ eerror "Most likely, you need to add virtual/pkgconfig to DEPEND."
+ die "${FUNCNAME}: unsubstituted variable found in .pc"
fi
pc_libs+=( lib${arg#-l}.la )