commit: 9da59e5d593986ae94a4da5f10d0b1e3886b55b5
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 7 08:53:15 2018 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Tue Aug 7 09:00:35 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9da59e5d
udev.eclass: return unprefixed dir in _udev_get_udevdir()
Documentation said it should return unprefixed dir, but the
function actually returned the prefixed dir.
eclass/udev.eclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eclass/udev.eclass b/eclass/udev.eclass
index b7c6461dd8f..63120c14cda 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