whois: fix build with NLS disabled
PATCH 1/3 whois: fix build with NLS disabled
whois build uses the xgettext utility to build translation files. This utility may not be available when NLS is disabled. Omit the pos and install-pos Makefile targets from the default and the install targets when NLS is disabled, respectively.
Fixes:
http://autobuild.buildroot.net/results/862/862d8165a59711c970c65d90009a527315a1a6b4/
http://autobuild.buildroot.net/results/b62/b62ec9d6f350e409731d47ffb585344c516944e8/
http://autobuild.buildroot.net/results/be2/be28d06ae004a46c87133d6f07709c6f909288d8/
--- package/whois/whois.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
package/whois/whois.mk +11 -2
@@ -27,13 +27,22 @@ WHOIS_DEPENDENCIES += libidn WHOIS_MAKE_ENV += HAVE_LIBIDN=1 endif +ifeq ($(BR2_SYSTEM_ENABLE_NLS),y) +WHOIS_BUILD_TARGETS = +WHOIS_INSTALL_TARGETS = install +else +WHOIS_BUILD_TARGETS = Makefile.depend whois mkpasswd +WHOIS_INSTALL_TARGETS = install-whois install-mkpasswd +endif + define WHOIS_BUILD_CMDS - $(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) -C $(@D) + $(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \ + $(WHOIS_BUILD_TARGETS) -C $(@D) endef define WHOIS_INSTALL_TARGET_CMDS $(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \ - BASEDIR="$(TARGET_DIR)" install -C $(@D) + BASEDIR="$(TARGET_DIR)" $(WHOIS_INSTALL_TARGETS) -C $(@D) endef $(eval $(generic-package))
Signature · 1 line
2.14.1
PATCH 2/3 whois: use github repo as home page
The github repo is more informative than the list Marco's software on the previous link.
--- package/whois/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/whois/Config.in +1 -1
@@ -4,4 +4,4 @@ config BR2_PACKAGE_WHOIS help Improved whois client. - http://www.linux.it/~md/software/ + https://github.com/rfc1036/whois
Signature · 1 line
2.14.1
PATCH 2/3 whois: use github repo as home page
Hello,
Quoted 5 lines · Baruch Siach
The github repo is more informative than the list Marco's software on the previous link.
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>
What about switching the upstream to be Github, instead of fetching from Debian? The Github repo has all the releases available:
https://github.com/rfc1036/whois/releases.
Just make sure that the 5.2.14 tarball we were getting from Debian is similar in contents to what we get from the Github repository for the same version.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/3 whois: use github repo as home page
Hi Thomas,
Quoted 7 lines · Thomas Petazzoni
Quoted 5 lines · Baruch Siach
The github repo is more informative than the list Marco's software on the previous link.
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>
Quoted 7 lines
What about switching the upstream to be Github, instead of fetching from Debian? The Github repo has all the releases available:
https://github.com/rfc1036/whois/releases.Just make sure that the 5.2.14 tarball we were getting from Debian is similar in contents to what we get from the Github repository for the same version.
But we generally prefer upstream provided tarballs, aren't we? Moreover, in this case the Debian repo provides a smaller .tar.xz, and an upstream computed SHA256 in the .dsc file. You don't get that from github.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 2/3 whois: use github repo as home page
Quoted 13 lines · Baruch Siach
Hi Thomas,
Quoted 10 lines · Thomas Petazzoni
Quoted 5 lines · Baruch Siach
The github repo is more informative than the list Marco's software on the previous link.
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>What about switching the upstream to be Github, instead of fetching from Debian? The Github repo has all the releases available:
https://github.com/rfc1036/whois/releases.
Quoted 6 lines
Quoted 3 lines
Just make sure that the 5.2.14 tarball we were getting from Debian is similar in contents to what we get from the Github repository for the same version.
But we generally prefer upstream provided tarballs, aren't we? Moreover, in this case the Debian repo provides a smaller .tar.xz, and an upstream computed SHA256 in the .dsc file. You don't get that from github.
On Sunday, I was going to ask the same question, and came to the same
conclusion about the tar.xz and the sha256. Unfortunately, I don't remember why I didn't just apply it then and there...
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 2/3 whois: use github repo as home page
Hello,
Quoted 7 lines · Arnout Vandecappelle
Quoted 3 lines
But we generally prefer upstream provided tarballs, aren't we? Moreover, in this case the Debian repo provides a smaller .tar.xz, and an upstream computed SHA256 in the .dsc file. You don't get that from github.
On Sunday, I was going to ask the same question, and came to the same
conclusion about the tar.xz and the sha256. Unfortunately, I don't remember why I didn't just apply it then and there...
I definitely don't agree here. We should use upstream when it exists, even if it provides things that are less "convenient" than Debian.
Otherwise, we're going to convert a *lot* of packages to use tarballs from Debian rather than from upstream.
What will happen when we'll want to bump to a new upstream version that hasn't been packaged by Debian ?
Sorry, but I definitely disagree here. Please use the real upstream.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/3 whois: use github repo as home page
Hi Thomas,
Quoted 10 lines · Thomas Petazzoni
Quoted 7 lines · Arnout Vandecappelle
Quoted 3 lines
But we generally prefer upstream provided tarballs, aren't we? Moreover, in this case the Debian repo provides a smaller .tar.xz, and an upstream computed SHA256 in the .dsc file. You don't get that from github.
On Sunday, I was going to ask the same question, and came to the same
conclusion about the tar.xz and the sha256. Unfortunately, I don't remember why I didn't just apply it then and there...
Quoted 8 lines
I definitely don't agree here. We should use upstream when it exists, even if it provides things that are less "convenient" than Debian.
Otherwise, we're going to convert a *lot* of packages to use tarballs from Debian rather than from upstream.
What will happen when we'll want to bump to a new upstream version that hasn't been packaged by Debian ?
As things stand now this is quite unlikely. The whois package Debian maintainer and the upstream developer are the same person, Marco d'Itri. The only upstream in-tree changelog file is at debian/changelog.
Quoted 1 line
Sorry, but I definitely disagree here. Please use the real upstream.
The real whois upstream README file says this:
The canonical distribution point for releases of the program is
http://ftp.debian.org/debian/pool/main/w/whois/ .
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 2/3 whois: use github repo as home page
Hello,
Quoted 24 lines · Baruch Siach
Quoted 10 lines · Thomas Petazzoni
Quoted 7 lines · Arnout Vandecappelle
Quoted 3 lines
But we generally prefer upstream provided tarballs, aren't we? Moreover, in this case the Debian repo provides a smaller .tar.xz, and an upstream computed SHA256 in the .dsc file. You don't get that from github.
On Sunday, I was going to ask the same question, and came to the same
conclusion about the tar.xz and the sha256. Unfortunately, I don't remember why I didn't just apply it then and there...Quoted 8 lines
I definitely don't agree here. We should use upstream when it exists, even if it provides things that are less "convenient" than Debian.
Otherwise, we're going to convert a *lot* of packages to use tarballs from Debian rather than from upstream.
What will happen when we'll want to bump to a new upstream version that hasn't been packaged by Debian ?
As things stand now this is quite unlikely. The whois package Debian maintainer and the upstream developer are the same person, Marco d'Itri. The only upstream in-tree changelog file is at debian/changelog.
Quoted 6 lines
Quoted 1 line
Sorry, but I definitely disagree here. Please use the real upstream.
The real whois upstream README file says this:
The canonical distribution point for releases of the program is
http://ftp.debian.org/debian/pool/main/w/whois/ .
Fair enough. But I still find it completely weird to have the Github page as the "project home page" indicated in the Config.in file, and not use that as the upstream.
And Arnout has put PATCH 1/3 back to the New state, while I still disagree with the approach being taken.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/3 whois: use github repo as home page
Quoted 5 lines · Thomas Petazzoni
Hello,
Quoted 1 line · Baruch Siach
On Tue, Aug 15, 2017 at 12:56:21PM +0200, Thomas Petazzoni wrote:
[snip]
Quoted 8 lines
Quoted 4 lines
The real whois upstream README file says this:
The canonical distribution point for releases of the program is
http://ftp.debian.org/debian/pool/main/w/whois/ .Fair enough. But I still find it completely weird to have the Github page as the "project home page" indicated in the Config.in file, and not use that as the upstream.
It's weird, but it is what it is. Don't we have any other package where the
github repo is the upstream URL, but the release tarball comes from somewhere else?
Quoted 2 lines
And Arnout has put PATCH 1/3 back to the New state, while I still disagree with the approach being taken.
Sorry, I hadn't seen your reply to 1/3, I had also seen your reply to 2/3 and
considered that Baruch and I had given sufficient feedback to warrant going back to New. With your reply to 1/3, it indeed makes sense to set the entire series to Changes Requested.
However, I'm just going to apply patch 3/3 now, since there is no objection to
that one. So only 1/3 and 2/3 will be Changes Requested.
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 3/3 whois: bump to version 5.2.17
In reply to Baruch SiachFixes serious usability issues (Debian changelog):
* Fixed whois referrals for .com, .net, .jobs, .bz, .cc and .tv, broken by an ICANN-mandated output change:
https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-en
Use snapshot.debian.org for the .dsc reference, since files tend to disappear from the official Debian ftp site over time.
---
This should go to master IMO.
--- package/whois/whois.hash | 4 ++-- package/whois/whois.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
package/whois/whois.hash +2 -2
@@ -1,2 +1,2 @@ -# From http://ftp.debian.org/debian/pool/main/w/whois/whois_5.2.14.dsc -sha256 a41daf41abed0fbfa8c9c4b0e4a3f5f22d9876dd6feb9091aac12f8f4c38b0d2 whois_5.2.14.tar.xz +# From http://snapshot.debian.org/archive/debian/20170727T214450Z/pool/main/w/whois/whois_5.2.17.dsc +sha256 257585678f571e18964667b41dc6543fe9da6123ac95743660c9c3ae1eba9664 whois_5.2.17.tar.xz
package/whois/whois.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -WHOIS_VERSION = 5.2.14 -WHOIS_SITE = http://snapshot.debian.org/archive/debian/20161230T032015Z/pool/main/w/whois +WHOIS_VERSION = 5.2.17 +WHOIS_SITE = http://snapshot.debian.org/archive/debian/20170727T214450Z/pool/main/w/whois WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz # take precedence over busybox implementation WHOIS_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) $(TARGET_NLS_DEPENDENCIES)
Signature · 1 line
2.14.1
PATCH 3/3 whois: bump to version 5.2.17
Hi Thomas,
Quoted 11 lines · Baruch Siach
Fixes serious usability issues (Debian changelog):
* Fixed whois referrals for .com, .net, .jobs, .bz, .cc and .tv, broken by an ICANN-mandated output change:
https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-enUse snapshot.debian.org for the .dsc reference, since files tend to disappear from the official Debian ftp site over time.
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>
Why has this patch been marked 'Changes Requested'? It is independent of other patches in this series.
baruch
Quoted 30 lines
This should go to master IMO.
--- package/whois/whois.hash | 4 ++-- package/whois/whois.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)package/whois/whois.hash +2
-2@@ -1,2 +1,2 @@ -# From http://ftp.debian.org/debian/pool/main/w/whois/whois_5.2.14.dsc -sha256 a41daf41abed0fbfa8c9c4b0e4a3f5f22d9876dd6feb9091aac12f8f4c38b0d2 whois_5.2.14.tar.xz +# From http://snapshot.debian.org/archive/debian/20170727T214450Z/pool/main/w/whois/whois_5.2.17.dsc +sha256 257585678f571e18964667b41dc6543fe9da6123ac95743660c9c3ae1eba9664 whois_5.2.17.tar.xzpackage/whois/whois.mk +2
-2@@ -4,8 +4,8 @@ # ################################################################################ -WHOIS_VERSION = 5.2.14 -WHOIS_SITE = http://snapshot.debian.org/archive/debian/20161230T032015Z/pool/main/w/whois +WHOIS_VERSION = 5.2.17 +WHOIS_SITE = http://snapshot.debian.org/archive/debian/20170727T214450Z/pool/main/w/whois WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz # take precedence over busybox implementation WHOIS_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) $(TARGET_NLS_DEPENDENCIES)
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 3/3 whois: bump to version 5.2.17
Hello,
Quoted 7 lines · Baruch Siach
Quoted 6 lines · Baruch Siach
Fixes serious usability issues (Debian changelog):
* Fixed whois referrals for .com, .net, .jobs, .bz, .cc and .tv, broken by an ICANN-mandated output change:
https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-en
Quoted 8 lines
Quoted 5 lines
Use snapshot.debian.org for the .dsc reference, since files tend to disappear from the official Debian ftp site over time.
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>Why has this patch been marked 'Changes Requested'? It is independent of other patches in this series.
Because I always mark all patches in a series as Changes Requested if at least one of them had comments. Indeed, if it's a patch series, we expect the submitter to resend a complete new iteration of the series, even if some patches remain unchanged.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 3/3 whois: bump to version 5.2.17
Quoted 14 lines · Thomas Petazzoni
Hello,
Quoted 10 lines · Baruch Siach
Quoted 9 lines · Baruch Siach
Fixes serious usability issues (Debian changelog):
* Fixed whois referrals for .com, .net, .jobs, .bz, .cc and .tv, broken by an ICANN-mandated output change:
https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-enUse snapshot.debian.org for the .dsc reference, since files tend to disappear from the official Debian ftp site over time.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>Why has this patch been marked 'Changes Requested'? It is independent of other patches in this series.
Because I always mark all patches in a series as Changes Requested if at least one of them had comments.
Moreover, it was exactly this patch which had changes requested (switching
upstream would change this patch completely).
Quoted 3 lines
Indeed, if it's a patch series, we
expect the submitter to resend a complete new iteration of the series, even if some patches remain unchanged.
But in this case, there are in fact no changes requested in the series (or
rather, the request has been refuted). So I've changed the status back to New.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 3/3 whois: bump to version 5.2.17
Hello,
Quoted 6 lines · Arnout Vandecappelle
Quoted 3 lines
Indeed, if it's a patch series, we
expect the submitter to resend a complete new iteration of the series, even if some patches remain unchanged.But in this case, there are in fact no changes requested in the series (or
rather, the request has been refuted). So I've changed the status back to New.
Doh? Why? My comments still stand. It's not because Baruch said Debian is a better upstream than the real upstream that I agree with his comments.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 3/3 whois: bump to version 5.2.17
In reply to Baruch SiachQuoted 11 lines · Baruch Siach
Fixes serious usability issues (Debian changelog):
* Fixed whois referrals for .com, .net, .jobs, .bz, .cc and .tv, broken by an ICANN-mandated output change:
https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-enUse snapshot.debian.org for the .dsc reference, since files tend to disappear from the official Debian ftp site over time.
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>
As mentioned before, applied to master, thanks.
I first checked the differences between 5.2.14 and 5.2.17, and it really is
only in the whois databases (and in documentation) that there are changes. Source code hasn't changed.
Peter, this should probably go to the LTS branches as well.
Regards,
Arnout
Quoted 3 lines
---
This should go to master IMO.
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 3/3 whois: bump to version 5.2.17
In reply to Baruch SiachQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
Fixes serious usability issues (Debian changelog):
* Fixed whois referrals for .com, .net, .jobs, .bz, .cc and .tv, broken by an ICANN-mandated output change:
https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-en
Quoted 8 lines
Use snapshot.debian.org for the .dsc reference, since files tend to disappear from the official Debian ftp site over time.
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>---
This should go to master IMO.
Committed to 2017.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/3 whois: fix build with NLS disabled
In reply to Baruch SiachHello,
Quoted 5 lines · Baruch Siach
whois build uses the xgettext utility to build translation files. This utility may not be available when NLS is disabled. Omit the pos and install-pos
Makefiletargets from the default and the install targets when NLS is disabled, respectively.
Quoted 7 lines
Fixes:
http://autobuild.buildroot.net/results/862/862d8165a59711c970c65d90009a527315a1a6b4/
http://autobuild.buildroot.net/results/b62/b62ec9d6f350e409731d47ffb585344c516944e8/
http://autobuild.buildroot.net/results/be2/be28d06ae004a46c87133d6f07709c6f909288d8/Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>
Since there is an active upstream at https://github.com/rfc1036/whois,
what about doing something upstreamable, such as introducing an HAVE_NLS variable, which the Makefile uses to determine if PO files should be built or not?
The Makefile already supports HAVE_LIBIDN, HAVE_ICONV, HAVE_XCRYPT, etc. so introducing HAVE_NLS should fit quite well into this, and it really is a simple patch to do.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Thomas Petazzoni
AppliedPATCH 1/3 whois: fix build with NLS disabled
In reply to Baruch SiachHello,
Quoted 10 lines · Baruch Siach
whois build uses the xgettext utility to build translation files. This utility may not be available when NLS is disabled. Omit the pos and install-pos
Makefiletargets from the default and the install targets when NLS is disabled, respectively.Fixes:
http://autobuild.buildroot.net/results/862/862d8165a59711c970c65d90009a527315a1a6b4/
http://autobuild.buildroot.net/results/b62/b62ec9d6f350e409731d47ffb585344c516944e8/
http://autobuild.buildroot.net/results/be2/be28d06ae004a46c87133d6f07709c6f909288d8/
Quoted 5 lines
Cc Gustavo Zacarias <[email protected]>Signed-off-by Baruch Siach <[email protected]>--- package/whois/whois.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
Applied to master, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com