[Buildroot] [PATCH 1/1] package/libldns: Fix build error with target install-manpages

Bernd Kuhls bernd.kuhls at t-online.de
Sun Jan 10 20:46:57 UTC 2016


Using this minimal defconfig

BR2_PACKAGE_LIBLDNS=y

the build fails due to the non-existing directory share/man/man3/

./install-sh: doc/man/man3/* does not exist.
Makefile:297: recipe for target 'install-manpages' failed
make[1]: *** [install-manpages] Error 1

Since we do not need manpages anyway this patch disables the
corresponding make target.

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 package/libldns/libldns.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/libldns/libldns.mk b/package/libldns/libldns.mk
index 3d4d356..5595407 100644
--- a/package/libldns/libldns.mk
+++ b/package/libldns/libldns.mk
@@ -10,6 +10,12 @@ LIBLDNS_SITE = http://www.nlnetlabs.nl/downloads/ldns
 LIBLDNS_LICENSE = BSD-3c
 LIBLDNS_LICENSE_FILES = LICENSE
 LIBLDNS_INSTALL_STAGING = YES
+
+define LIBLDNS_DISABLE_INSTALL_MANPAGES
+	$(SED) 's/ install-manpages / /' $(@D)/Makefile.in
+endef
+LIBLDNS_POST_PATCH_HOOKS += LIBLDNS_DISABLE_INSTALL_MANPAGES
+
 LIBLDNS_CONF_OPTS = \
 	--without-examples \
 	--without-p5-dns-ldns \
-- 
2.6.4



More information about the buildroot mailing list