commit:     b6a14ebec15b54b109f93b9d330d2083a663aa1c
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 18 14:09:34 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Sep 19 21:38:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6a14ebe

systemd.eclass: set PKG_CONFIG_FDO_SYSROOT_RULES

This prevents pkgconf from prepending install paths with SYSROOT.

Bug: https://bugs.gentoo.org/813639
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/systemd.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 27e4dcae1ff..c80c4c43f31 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -48,6 +48,9 @@ _systemd_get_dir() {
        [[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} <variable-name> 
<fallback-directory>"
        local variable=${1} fallback=${2} d
 
+       # https://github.com/pkgconf/pkgconf/issues/205
+       local -x PKG_CONFIG_FDO_SYSROOT_RULES=1
+
        if $(tc-getPKG_CONFIG) --exists systemd; then
                d=$($(tc-getPKG_CONFIG) --variable="${variable}" systemd) || die
                d=${d#${EPREFIX}}

Reply via email to