This prevents pkgconf from prepending install paths with SYSROOT.
Bug:
https://bugs.gentoo.org/813639
Signed-off-by: Mike Gilbert <
floppym@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}}
--
2.33.0
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)