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

* Re: [PR PATCH] [Updated] inetutils: fix the missing port number for whois
  2020-01-23 21:53 [PR PATCH] inetutils: fix the missing port number for whois voidlinux-github
@ 2020-01-24 22:43 ` voidlinux-github
  2020-01-24 22:46 ` voidlinux-github
  2020-01-25  7:49 ` [PR PATCH] [Merged]: " voidlinux-github
  2 siblings, 0 replies; 4+ messages in thread
From: voidlinux-github @ 2020-01-24 22:43 UTC (permalink / raw)
  To: ml

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

There is an updated 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: 2631 bytes --]

From 8238cea24eb478ad88197105b554bbf44a3062bf Mon Sep 17 00:00:00 2001
From: Shahab Vahedi <shahab.vahedi@gmail.com>
Date: Fri, 24 Jan 2020 23:41:25 +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, changing the whois/whois.c leads to invocation of
help2man. This is unnecessary, because no option has changed and
launching help2man during the cross compilation fails.

This fix wouldn't be possible without the help of great folks
at #voidlinux.
---
 srcpkgs/inetutils/template | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/inetutils/template b/srcpkgs/inetutils/template
index 9ef3f2b3d0e..132dbfa3e08 100644
--- a/srcpkgs/inetutils/template
+++ b/srcpkgs/inetutils/template
@@ -1,13 +1,13 @@
 # Template file for 'inetutils'
 pkgname=inetutils
 version=1.9.4
-revision=10
+revision=11
 build_style=gnu-configure
 configure_args="--without-wrap --with-pam"
 makedepends="pam-devel readline-devel"
 short_desc="GNU network utilities"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="GPL-3"
+license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/inetutils"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=849d96f136effdef69548a940e3e0ec0624fc0c81265296987986a0dd36ded37
@@ -29,9 +29,16 @@ esac
 depends="${subpackages}"
 
 pre_configure() {
-	sed -i 's|_GL_WARN_ON_USE (gets|//_GL_WARN_ON_USE (gets|' lib/stdio.in.h
+	vsed -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
+  # Use the standard name ("nicname") for the "whois" service.
+	vsed -i 's|port : "whois"|port : "nicname"|' whois/whois.c
+	# Changing the whois/whois.c triggers help2man invocation. This is not
+	# necessary because no option has changed. Moreover, launching help2man
+	# fails for the cross compilations. Let's make sure the build process
+	# is not triggered to run it then.
+	touch man/whois.1
 }
 post_install() {
 	# Keep just usr/share/info/inetutils.info.gz

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

* Re: [PR PATCH] [Updated] inetutils: fix the missing port number for whois
  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
  2 siblings, 0 replies; 4+ messages in thread
From: voidlinux-github @ 2020-01-24 22:46 UTC (permalink / raw)
  To: ml

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

There is an updated 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: 2630 bytes --]

From dcad2cc8eb23a84602e457bb779e8cc56b656274 Mon Sep 17 00:00:00 2001
From: Shahab Vahedi <shahab.vahedi@gmail.com>
Date: Fri, 24 Jan 2020 23:45:32 +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, changing the whois/whois.c leads to invocation of
help2man. This is unnecessary, because no option has changed and
launching help2man during the cross compilation fails.

This fix wouldn't be possible without the help of great folks
at #voidlinux.
---
 srcpkgs/inetutils/template | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/inetutils/template b/srcpkgs/inetutils/template
index 9ef3f2b3d0e..0bc62f06fb7 100644
--- a/srcpkgs/inetutils/template
+++ b/srcpkgs/inetutils/template
@@ -1,13 +1,13 @@
 # Template file for 'inetutils'
 pkgname=inetutils
 version=1.9.4
-revision=10
+revision=11
 build_style=gnu-configure
 configure_args="--without-wrap --with-pam"
 makedepends="pam-devel readline-devel"
 short_desc="GNU network utilities"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="GPL-3"
+license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/inetutils"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=849d96f136effdef69548a940e3e0ec0624fc0c81265296987986a0dd36ded37
@@ -29,9 +29,16 @@ esac
 depends="${subpackages}"
 
 pre_configure() {
-	sed -i 's|_GL_WARN_ON_USE (gets|//_GL_WARN_ON_USE (gets|' lib/stdio.in.h
+	vsed -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
+	# Use the standard name ("nicname") for the "whois" service.
+	vsed -i 's|port : "whois"|port : "nicname"|' whois/whois.c
+	# Changing the whois/whois.c triggers help2man invocation. This is not
+	# necessary because no option has changed. Moreover, launching help2man
+	# fails for the cross compilations. Let's make sure the build process
+	# is not triggered to run it then.
+	touch man/whois.1
 }
 post_install() {
 	# Keep just usr/share/info/inetutils.info.gz

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

* Re: [PR PATCH] [Merged]: inetutils: fix the missing port number for whois
  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 ` voidlinux-github
  2 siblings, 0 replies; 4+ messages in thread
From: voidlinux-github @ 2020-01-25  7:49 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

inetutils: fix the missing port number for whois
https://github.com/void-linux/void-packages/pull/18520

Description:
Fixes issue 18445:
#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, changing the whois/whois.c leads to invocation of
help2man. This is unnecessary, because no option has changed and
launching help2man during the cross compilation fails.

This fix wouldn't be possible without the help of great folks
at #voidlinux.

^ 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).