* [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory
@ 2012-07-10 22:19 Arnout Vandecappelle
2012-07-11 9:24 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-07-10 22:19 UTC (permalink / raw)
To: buildroot
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.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
package/libgcrypt/libgcrypt.mk | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 68c6c47..2671819 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -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))
--
tg: (b8b57bb..) t/libgcrypt-config (depends on: master)
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory
2012-07-10 22:19 [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory Arnout Vandecappelle
@ 2012-07-11 9:24 ` Thomas Petazzoni
2012-07-11 9:30 ` Arnout Vandecappelle
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2012-07-11 9:24 UTC (permalink / raw)
To: buildroot
Le Wed, 11 Jul 2012 00:19:08 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be> a ?crit :
> 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.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory
2012-07-11 9:24 ` Thomas Petazzoni
@ 2012-07-11 9:30 ` Arnout Vandecappelle
2012-07-11 9:43 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-07-11 9:30 UTC (permalink / raw)
To: buildroot
On 07/11/12 11:24, Thomas Petazzoni wrote:
> Le Wed, 11 Jul 2012 00:19:08 +0200,
> "Arnout Vandecappelle (Essensium/Mind)"<arnout@mind.be> a ?crit :
>
>> 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.
>>
>> Signed-off-by: Arnout Vandecappelle (Essensium/Mind)<arnout@mind.be>
>
> 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
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory
2012-07-11 9:30 ` Arnout Vandecappelle
@ 2012-07-11 9:43 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-07-11 9:43 UTC (permalink / raw)
To: buildroot
Le Wed, 11 Jul 2012 11:30:32 +0200,
Arnout Vandecappelle <arnout@mind.be> a ?crit :
> 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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-11 9:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 22:19 [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory Arnout Vandecappelle
2012-07-11 9:24 ` Thomas Petazzoni
2012-07-11 9:30 ` Arnout Vandecappelle
2012-07-11 9:43 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.