diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-07-23 21:49:28 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-07-23 21:49:28 +0200 |
commit | 9293b49303dac0a18294cba3d5dcec74154ca392 (patch) | |
tree | 6556ddff4238f8e78c66266fc0d1189c8eaadfe5 /gkbuilds | |
parent | libgcrypt: Fix libgcrypt-config wrapper (diff) | |
download | genkernel-9293b49303dac0a18294cba3d5dcec74154ca392.tar.gz genkernel-9293b49303dac0a18294cba3d5dcec74154ca392.tar.bz2 genkernel-9293b49303dac0a18294cba3d5dcec74154ca392.zip |
kmod: remove hardcoded $BROOT value
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r-- | gkbuilds/kmod.gkbuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gkbuilds/kmod.gkbuild b/gkbuilds/kmod.gkbuild index 6bdc0c4..44a2df3 100644 --- a/gkbuilds/kmod.gkbuild +++ b/gkbuilds/kmod.gkbuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 src_prepare() { @@ -25,6 +25,12 @@ src_configure() { src_install() { default + # remove hardcoded $BROOT + sed -i \ + -e 's/-L\/[^ ]*/-L${libdir}/' \ + "${D}"/usr/lib*/pkgconfig/*.pc \ + || die + rm -rf \ "${D}"/usr/share/ } |