Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] inetutils: fix the missing port number for whois
@ 2020-01-23 21:53 voidlinux-github
  2020-01-24 22:43 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: voidlinux-github @ 2020-01-23 21:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

There is a new pull request by shahab-vahedi against master on the void-packages repository

https://github.com/shahab-vahedi/void-packages inetutils-fix-missing-whois-service-in-iana
https://github.com/void-linux/void-packages/pull/18520

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.

A patch file from https://github.com/void-linux/void-packages/pull/18520.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-inetutils-fix-missing-whois-service-in-iana-18520.patch --]
[-- Type: text/x-diff, Size: 1958 bytes --]

From eacf1ff5e44a584012a775a179b41c1451234537 Mon Sep 17 00:00:00 2001
From: Shahab Vahedi <shahab.vahedi@gmail.com>
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 <orphan@voidlinux.org>"
@@ -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

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

end of thread, other threads:[~2020-01-25  7:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23 21:53 [PR PATCH] inetutils: fix the missing port number for whois voidlinux-github
2020-01-24 22:43 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-24 22:46 ` voidlinux-github
2020-01-25  7:49 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).