Skip to contentSkip to conversation

libgcrypt: install libgcrypt-config in host directory

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 4 messages Jul 10, 2012 – Jul 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgcrypt: install libgcrypt-config in host directory

Packages depending on libgcrypt call libgcrypt-config to determine its CFLAGS. If libgcrypt-config happens to be installed on the host, this will add /usr/include to the target include path. So make sure libgcrypt-config is in the host directory.

---
 package/libgcrypt/libgcrypt.mk |    9 +++++++++
 1 file changed, 9 insertions(+)
package/libgcrypt/libgcrypt.mk +9 -0
index 68c6c47..2671819 100644
@@ -17,4 +17,13 @@ LIBGCRYPT_CONF_OPT = \
 
 LIBGCRYPT_DEPENDENCIES = libgpg-error
 
+# libgcrypt doesn't use pkg-config but instead has its own
+# libgcrypt-config.  Install this in the host directory so
+# packages depending on libgcrypt can find it.
+define LIBGCRYPT_HOST_INSTALL_LIBGCRYPT_CONFIG
+	$(INSTALL) -D -m 0755 $(STAGING_DIR)/usr/bin/libgcrypt-config $(HOST_DIR)/usr/bin/libgcrypt-config
+endef
+
+LIBGCRYPT_POST_INSTALL_STAGING_HOOKS += LIBGCRYPT_HOST_INSTALL_LIBGCRYPT_CONFIG
+
 $(eval $(call AUTOTARGETS))
Signature · 1 line
tg: (b8b57bb..) t/libgcrypt-config (depends on: master)
#1 lore raw

PATCH 1/1 libgcrypt: install libgcrypt-config in host directory

Le Wed, 11 Jul 2012 00:19:08 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <[email protected]> a ?crit :

Quoted 6 lines

Packages depending on libgcrypt call libgcrypt-config to determine its CFLAGS. If libgcrypt-config happens to be installed on the host, this will add /usr/include to the target include path. So make sure libgcrypt-config is in the host directory.

For most packages, we just leave the <foo>-config script in $(STAGING_DIR), and then adjust their reverse dependencies .mk file to point specifically to the $(STAGING_DIR) for that script.

I am not a big fan of doing otherwise specifically for libgcrypt.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 libgcrypt: install libgcrypt-config in host directory

Quoted 8 lines · Thomas Petazzoni

Le Wed, 11 Jul 2012 00:19:08 +0200,
"Arnout Vandecappelle (Essensium/Mind)"<[email protected]> a ?crit :

Quoted 5 lines

Packages depending on libgcrypt call libgcrypt-config to determine its CFLAGS. If libgcrypt-config happens to be installed on the host, this will add /usr/include to the target include path. So make sure libgcrypt-config is in the host directory.

Quoted 7 lines
Quoted 1 line

For most packages, we just leave the<foo>-config script in $(STAGING_DIR), and then adjust their reverse dependencies .mk file to point specifically to the $(STAGING_DIR) for that script.

I am not a big fan of doing otherwise specifically for libgcrypt.

Unfortunately I forgot which was the dependency that triggered the error
in the first place... Probably libxslt, so I'll try if I can reproduce it with that package.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#3 lore raw

PATCH 1/1 libgcrypt: install libgcrypt-config in host directory

Le Wed, 11 Jul 2012 11:30:32 +0200,
Arnout Vandecappelle <[email protected]> a ?crit :

Quoted 3 lines

Unfortunately I forgot which was the dependency that triggered the error
in the first place... Probably libxslt, so I'll try if I can reproduce it with that package.

That would be good, thanks.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com