systemd.eclass: strip EPREFIX from pkg-config output
authorMike Gilbert <floppym@gentoo.org>
Thu, 30 Nov 2017 20:44:16 +0000 (15:44 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sat, 9 Dec 2017 18:22:20 +0000 (13:22 -0500)
eclass/systemd.eclass

index cc3591b3301be717e9fae614e13b1c5c6f1c720c..b86646052bef41ad1e56d515895d3ecb8ecd8551 100644 (file)
@@ -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