* [gentoo-dev] [PATCH] udev.eclass: return unprefixed udevdir
@ 2018-06-08 13:54 Guilherme Amadio
2018-08-06 18:13 ` Mike Gilbert
0 siblings, 1 reply; 2+ messages in thread
From: Guilherme Amadio @ 2018-06-08 13:54 UTC (permalink / raw
To: gentoo-dev
Hi,
This is a simple fix, but I'd like it to be reviewed.
Without this get_udevdir returns the prefixed directory, leading
to double prefix on udev related packages (e.g. fuse-common).
Even if not used in prefix, udev related packages are usually pulled
in as dependencies of other packages (xrootd for fuse).
Cheers,
-Guilherme
---
diff --git a/eclass/udev.eclass b/eclass/udev.eclass
index 5e5df073880..148581b8bd5 100644
--- a/eclass/udev.eclass
+++ b/eclass/udev.eclass
@@ -46,7 +46,8 @@ DEPEND="virtual/pkgconfig"
# Get unprefixed udevdir.
_udev_get_udevdir() {
if $($(tc-getPKG_CONFIG) --exists udev); then
- echo "$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
+ local udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
+ echo ${udevdir#${EPREFIX%/}}
else
echo /lib/udev
fi
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] [PATCH] udev.eclass: return unprefixed udevdir
2018-06-08 13:54 [gentoo-dev] [PATCH] udev.eclass: return unprefixed udevdir Guilherme Amadio
@ 2018-08-06 18:13 ` Mike Gilbert
0 siblings, 0 replies; 2+ messages in thread
From: Mike Gilbert @ 2018-08-06 18:13 UTC (permalink / raw
To: Gentoo Dev
On Fri, Jun 8, 2018 at 9:54 AM Guilherme Amadio <amadio@gentoo.org> wrote:
>
> Hi,
>
> This is a simple fix, but I'd like it to be reviewed.
>
> Without this get_udevdir returns the prefixed directory, leading
> to double prefix on udev related packages (e.g. fuse-common).
>
> Even if not used in prefix, udev related packages are usually pulled
> in as dependencies of other packages (xrootd for fuse).
>
> Cheers,
> -Guilherme
Looks good to me.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-06 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-08 13:54 [gentoo-dev] [PATCH] udev.eclass: return unprefixed udevdir Guilherme Amadio
2018-08-06 18:13 ` Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox