projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b481b
)
udev.eclass: return unprefixed dir in _udev_get_udevdir()
author
Guilherme Amadio
<amadio@gentoo.org>
Tue, 7 Aug 2018 08:53:15 +0000
(10:53 +0200)
committer
Guilherme Amadio
<amadio@gentoo.org>
Tue, 7 Aug 2018 09:00:35 +0000
(11:00 +0200)
Documentation said it should return unprefixed dir, but the
function actually returned the prefixed dir.
eclass/udev.eclass
patch
|
blob
|
history
diff --git
a/eclass/udev.eclass
b/eclass/udev.eclass
index b7c6461dd8ffe7ee35b437cc5d29ffce7abfccd8..63120c14cda6c9ef43fd32911702260d782cc079 100644
(file)
--- 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