Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/pcre: install headers in legacy location
@ 2014-12-13 17:08 Yann E. MORIN
  2014-12-14 13:32 ` Romain Naour
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yann E. MORIN @ 2014-12-13 17:08 UTC (permalink / raw)
  To: buildroot

nmap is looking for pcre headers in pcre/pcre.h which our current
version of pcre does not populates.

So, just create those as symlinks to the actual headers.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Romain Naour <romain.naour@openwide.fr>

---
Note: this is not fixing anything for now, because the error in nmap is
hidden by another error. But this is relaticvely easy to fix, so here we
go... ;-)
---
 package/pcre/pcre.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/pcre/pcre.mk b/package/pcre/pcre.mk
index 4ff7abd..f2cf02d 100644
--- a/package/pcre/pcre.mk
+++ b/package/pcre/pcre.mk
@@ -22,5 +22,13 @@ PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32)
 PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-utf,--disable-utf)
 PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties)
 
+define PCRE_LEGACY_PATHS
+	$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/pcre
+	for h in $(STAGING_DIR)/usr/include/pcre*.h; do \
+		ln -sf ../$${h##*/} $(STAGING_DIR)/usr/include/pcre/ || exit 1; \
+	done
+endef
+PCRE_POST_INSTALL_STAGING_HOOKS += PCRE_LEGACY_PATHS
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-23 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-13 17:08 [Buildroot] [PATCH] package/pcre: install headers in legacy location Yann E. MORIN
2014-12-14 13:32 ` Romain Naour
2014-12-21 22:19 ` Thomas Petazzoni
2014-12-23 11:21   ` Yann E. MORIN
2014-12-23 11:39     ` Thomas Petazzoni
2014-12-23 12:54 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox