commit:     328939565639000eab12170a3a060612e0045ff5
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 20 20:20:43 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 20 22:36:05 2020 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=32893956

libgcrypt: Fix libgcrypt-config wrapper

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gkbuilds/libgcrypt.gkbuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gkbuilds/libgcrypt.gkbuild b/gkbuilds/libgcrypt.gkbuild
index 388a6b5..1f063c4 100644
--- a/gkbuilds/libgcrypt.gkbuild
+++ b/gkbuilds/libgcrypt.gkbuild
@@ -23,11 +23,18 @@ src_install() {
                "${D}"/usr/bin/mpicalc \
                "${D}"/usr/share
 
+       # remove hardcoded $BROOT
+       sed -i \
+               -e 's/-L\/[^-"]*//' \
+               -e 's/-I\/[^"]*//' \
+               "${D}"/usr/bin/libgcrypt-config  \
+               || die
+
        # libgcrypt-config tries to be smart and will omit include
        # and lib dir due to set prefix
        sed -i \
-               -e "s|/usr/include|/dont-try-to-be-smart|" \
-               -e "s|/usr/lib|/dont-try-to-be-smart|" \
+               -e "s|x/usr/include|x/dont-try-to-be-smart|" \
+               -e "s|x/usr/lib|x/dont-try-to-be-smart|" \
                "${D}"/usr/bin/libgcrypt-config \
                || die "Failed to make libgcrypt-config dumb!"
 

Reply via email to