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 2/5] udev.eclass: set PKG_CONFIG_FDO_SYSROOT_RULES
Date: Sat, 18 Sep 2021 14:41:21
Message-Id: 20210918144053.780056-2-floppym@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/5] systemd.eclass: set PKG_CONFIG_FDO_SYSROOT_RULES by Mike Gilbert
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/udev.eclass | 2 ++
7 1 file changed, 2 insertions(+)
8
9 diff --git a/eclass/udev.eclass b/eclass/udev.eclass
10 index 7f9415914cd..073e5d8acbc 100644
11 --- a/eclass/udev.eclass
12 +++ b/eclass/udev.eclass
13 @@ -49,6 +49,8 @@ fi
14 # @DESCRIPTION:
15 # Get unprefixed udevdir.
16 _udev_get_udevdir() {
17 + # https://github.com/pkgconf/pkgconf/issues/205
18 + local -x PKG_CONFIG_FDO_SYSROOT_RULES=1
19 if $($(tc-getPKG_CONFIG) --exists udev); then
20 local udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
21 echo "${udevdir#${EPREFIX%/}}"
22 --
23 2.33.0