[111/131] libgcrypt: Fix path in binconfig script

Submitted by christian.braunersorensen@prevas.dk on Jan. 14, 2014, 12:34 p.m.

Details

Message ID 26e6f4846ced636381dbbdd1677266958b8c11b3.1389702652.git.christian.braunersorensen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

christian.braunersorensen@prevas.dk Jan. 14, 2014, 12:34 p.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 recipes/libgcrypt/libgcrypt_1.5.3.oe | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch hide | download patch | download mbox

diff --git a/recipes/libgcrypt/libgcrypt_1.5.3.oe b/recipes/libgcrypt/libgcrypt_1.5.3.oe
index abd3eec..982dcf1 100644
--- a/recipes/libgcrypt/libgcrypt_1.5.3.oe
+++ b/recipes/libgcrypt/libgcrypt_1.5.3.oe
@@ -4,3 +4,11 @@  require libgcrypt.inc
 LICENSE = "GPLv2+ & LGPLv2.1+"
 
 SRC_URI += "file://add-pkgconfig-support.patch"
+
+do_install[postfuncs] += "do_install_fix_gpg_error"
+do_install_fix_gpg_error() {
+       sed -i -e 's#\(gpg_error_libs=\"\).*\(-lgpg-error\"\)#\1\2#' \
+                       ${D}${bindir}/libgcrypt-config
+       sed -i -e 's#\(gpg_error_cflags=\"\).*\(\"\)#\1\2#' \
+                       ${D}${bindir}/libgcrypt-config
+}