Skip to contentSkip to conversation

package/whois: add host-pkgconf mandatory dependency

PATCH New Fabrice Fontaine 2 participants 2 messages Feb 4, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/whois: add host-pkgconf mandatory dependency

pkg-config is used to check if libidn2 is available since version 5.2.18 and
https://github.com/rfc1036/whois/commit/e20b8bbab3687aa26294bc3c443b4a43292b7636

This can lead to a build failure if a broken libidn2.pc is found on host so add a mandatory host-pkgconf dependency and drop our manual handling of HAVE_LIBIDN2 option (which does not exist anymore)

Fixes:
- http://autobuild.buildroot.org/results/6cd0dd779d72b7162943f0f7dbb4e7d258b463eb

---
 package/whois/whois.mk | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
package/whois/whois.mk +4 -6
index 9d29c2f852..417f5c76af 100644
@@ -7,7 +7,10 @@
 WHOIS_VERSION = 5.5.5
 WHOIS_SITE = http://snapshot.debian.org/archive/debian/20200123T155144Z/pool/main/w/whois
 WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
-WHOIS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
+WHOIS_DEPENDENCIES = \
+	host-pkgconf \
+	$(if $(BR2_PACKAGE_LIBIDN2),libidn2) \
+	$(TARGET_NLS_DEPENDENCIES)
 WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
 WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
 	LIBS="$(WHOIS_EXTRA_LIBS)"
@@ -21,11 +24,6 @@ WHOIS_EXTRA_LIBS += -liconv
 WHOIS_MAKE_ENV += HAVE_ICONV=1
 endif
 
-ifeq ($(BR2_PACKAGE_LIBIDN2),y)
-WHOIS_DEPENDENCIES += libidn2
-WHOIS_MAKE_ENV += HAVE_LIBIDN2=1
-endif
-
 ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
 WHOIS_BUILD_TARGETS =
 WHOIS_INSTALL_TARGETS = install
Signature · 1 line
2.24.1
#1 lore raw

PATCH 1/1 package/whois: add host-pkgconf mandatory dependency

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

pkg-config is used to check if libidn2 is available since version 5.2.18 and
https://github.com/rfc1036/whois/commit/e20b8bbab3687aa26294bc3c443b4a43292b7636

Quoted 8 lines

This can lead to a build failure if a broken libidn2.pc is found on host so add a mandatory host-pkgconf dependency and drop our manual handling of HAVE_LIBIDN2 option (which does not exist anymore)

Fixes:
- http://autobuild.buildroot.org/results/6cd0dd779d72b7162943f0f7dbb4e7d258b463eb

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard