aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-20 22:20:43 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-21 00:36:05 +0200
commit328939565639000eab12170a3a060612e0045ff5 (patch)
tree6e8c99566d00926ae782e0d8470acc5c1d263fde /gkbuilds
parentBump zstd to v1.4.5 (diff)
downloadgenkernel-328939565639000eab12170a3a060612e0045ff5.tar.gz
genkernel-328939565639000eab12170a3a060612e0045ff5.tar.bz2
genkernel-328939565639000eab12170a3a060612e0045ff5.zip
libgcrypt: Fix libgcrypt-config wrapper
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r--gkbuilds/libgcrypt.gkbuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/gkbuilds/libgcrypt.gkbuild b/gkbuilds/libgcrypt.gkbuild
index 388a6b5f..1f063c48 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!"