diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-07-27 15:03:36 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-07-27 15:03:36 +0200 |
commit | 9d292c8697649d99b24393ccc308fb2c736b1d31 (patch) | |
tree | 4119554347d89daef977eee5e1d56f72f97ea0bd /eclass/udev.eclass | |
parent | media-sound/pulseaudio: remove old, adjust USE descriptions (diff) | |
download | gentoo-9d292c8697649d99b24393ccc308fb2c736b1d31.tar.gz gentoo-9d292c8697649d99b24393ccc308fb2c736b1d31.tar.bz2 gentoo-9d292c8697649d99b24393ccc308fb2c736b1d31.zip |
eclass/udev.eclass: [QA] Revert "unconditional udevdir."
This change breaks installs using a different udevdir. Please remember
to submit patches for widely-used eclasses to gentoo-dev for review.
Acked-by: Amy Liffey <amynka@gentoo.org>
Reverts: 7df145403c61bfec4b4921b7e275e127b8877b37
Diffstat (limited to 'eclass/udev.eclass')
-rw-r--r-- | eclass/udev.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/udev.eclass b/eclass/udev.eclass index 96c723317c96..b7c6461dd8ff 100644 --- a/eclass/udev.eclass +++ b/eclass/udev.eclass @@ -44,7 +44,13 @@ DEPEND="virtual/pkgconfig" # @INTERNAL # @DESCRIPTION: # Get unprefixed udevdir. -_udev_get_udevdir() { echo /lib/udev; } +_udev_get_udevdir() { + if $($(tc-getPKG_CONFIG) --exists udev); then + echo "$($(tc-getPKG_CONFIG) --variable=udevdir udev)" + else + echo /lib/udev + fi +} # @FUNCTION: udev_get_udevdir # @DESCRIPTION: |