Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Cc: Mike Gilbert <floppym@g.o>
Subject: [gentoo-dev] [PATCH 1/5] systemd.eclass: set PKG_CONFIG_FDO_SYSROOT_RULES
Date: Sat, 18 Sep 2021 14:41:07
Message-Id: 20210918144053.780056-1-floppym@gentoo.org
1 This prevents pkgconf from prepending install paths with SYSROOT.
2
3 Bug: https://bugs.gentoo.org/813639
4 Signed-off-by: Mike Gilbert <floppym@g.o>
5 ---
6 eclass/systemd.eclass | 3 +++
7 1 file changed, 3 insertions(+)
8
9 diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
10 index 27e4dcae1ff..c80c4c43f31 100644
11 --- a/eclass/systemd.eclass
12 +++ b/eclass/systemd.eclass
13 @@ -48,6 +48,9 @@ _systemd_get_dir() {
14 [[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} <variable-name> <fallback-directory>"
15 local variable=${1} fallback=${2} d
16
17 + # https://github.com/pkgconf/pkgconf/issues/205
18 + local -x PKG_CONFIG_FDO_SYSROOT_RULES=1
19 +
20 if $(tc-getPKG_CONFIG) --exists systemd; then
21 d=$($(tc-getPKG_CONFIG) --variable="${variable}" systemd) || die
22 d=${d#${EPREFIX}}
23 --
24 2.33.0

Replies