summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2017-11-30 15:44:16 -0500
committerMike Gilbert <floppym@gentoo.org>2017-12-09 13:22:20 -0500
commit8173e1843a0d30f0856c78ed7a995036320096f5 (patch)
treef48d57f954fb84e387861e92ae961bb57f61ef4b /eclass/systemd.eclass
parentsystemd.eclass: add systemd_get_systemgeneratordir (diff)
downloadgentoo-8173e1843a0d30f0856c78ed7a995036320096f5.tar.gz
gentoo-8173e1843a0d30f0856c78ed7a995036320096f5.tar.bz2
gentoo-8173e1843a0d30f0856c78ed7a995036320096f5.zip
systemd.eclass: strip EPREFIX from pkg-config output
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r--eclass/systemd.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index cc3591b3301b..b86646052bef 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -45,6 +45,7 @@ _systemd_get_dir() {
if $(tc-getPKG_CONFIG) --exists systemd; then
d=$($(tc-getPKG_CONFIG) --variable="${variable}" systemd) || die
+ d=${d#${EPREFIX}}
else
d=${fallback}
fi