From b6a14ebec15b54b109f93b9d330d2083a663aa1c Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 18 Sep 2021 10:09:34 -0400 Subject: 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 --- eclass/systemd.eclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eclass') diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 27e4dcae1ff7..c80c4c43f319 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -48,6 +48,9 @@ _systemd_get_dir() { [[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} " 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}} -- cgit v1.2.3-65-gdbad