From eacf1ff5e44a584012a775a179b41c1451234537 Mon Sep 17 00:00:00 2001 From: Shahab Vahedi Date: Thu, 23 Jan 2020 22:39:42 +0100 Subject: [PATCH] inetutils: fix the missing port number for whois Fixes issue 18445: https://github.com/void-linux/void-packages/issues/18445 inetutils-whois consults the /etc/services provided by IANA to determine the port number for the "whois" service. However, the "whois" service is not listed in that file and when you run whois you will end up with the following error: > whois 4.2.2.4 getaddrinfo: Servname not supported for ai_socktype This patch makes use of "nicname" port which is the same number (43) as a "whois" port and is listed in /etc/services. Moreover, I have added "help2man" as the "hostmakedepends". Usually, you don't need to have it running, but if you touch the whois.c file, then the build process needs it. --- srcpkgs/inetutils/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/inetutils/template b/srcpkgs/inetutils/template index 9ef3f2b3d0e..7e9a009e72c 100644 --- a/srcpkgs/inetutils/template +++ b/srcpkgs/inetutils/template @@ -1,9 +1,10 @@ # Template file for 'inetutils' pkgname=inetutils version=1.9.4 -revision=10 +revision=11 build_style=gnu-configure configure_args="--without-wrap --with-pam" +hostmakedepends="help2man" makedepends="pam-devel readline-devel" short_desc="GNU network utilities" maintainer="Orphaned " @@ -32,6 +33,8 @@ pre_configure() { sed -i 's|_GL_WARN_ON_USE (gets|//_GL_WARN_ON_USE (gets|' lib/stdio.in.h # Create a definition to allow the ifconfig program to build properly echo '#define PATH_PROCNET_DEV "/proc/net/dev"' >> ifconfig/system/linux.h + # Since there is no "whois" port in IANA services, use the next best thing. + sed -i 's|port : "whois"|port : "nicname"|' whois/whois.c } post_install() { # Keep just usr/share/info/inetutils.info.gz