summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-09-18 10:09:34 -0400
committerMike Gilbert <floppym@gentoo.org>2021-09-19 17:38:23 -0400
commitb6a14ebec15b54b109f93b9d330d2083a663aa1c (patch)
treeb03c48443f24954b886b1973815a7c5a42e31806 /eclass
parentsys-fs/lvm2: drop multilib eclass (diff)
downloadgentoo-b6a14ebec15b54b109f93b9d330d2083a663aa1c.tar.gz
gentoo-b6a14ebec15b54b109f93b9d330d2083a663aa1c.tar.bz2
gentoo-b6a14ebec15b54b109f93b9d330d2083a663aa1c.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/systemd.eclass3
1 files changed, 3 insertions, 0 deletions
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} <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}}