Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package whois for openSUSE:Factory checked in at 2023-03-14 18:15:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/whois (Old) and /work/SRC/openSUSE:Factory/.whois.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "whois" Tue Mar 14 18:15:47 2023 rev:89 rq:1071150 version:5.5.16 Changes: -------- --- /work/SRC/openSUSE:Factory/whois/whois.changes 2023-01-05 14:59:54.444772573 +0100 +++ /work/SRC/openSUSE:Factory/.whois.new.31432/whois.changes 2023-03-14 18:15:56.579506758 +0100 @@ -1,0 +2,8 @@ +Tue Mar 7 07:39:28 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 5.5.16: + * Add bash completion support, courtesy of Ville Skyttä. + * Updated the .tr TLD server. + * Removed support for -metu NIC handles. + +------------------------------------------------------------------- Old: ---- whois_5.5.15.tar.xz New: ---- whois_5.5.16.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ whois.spec ++++++ --- /var/tmp/diff_new_pack.IvdFw9/_old 2023-03-14 18:15:57.187510008 +0100 +++ /var/tmp/diff_new_pack.IvdFw9/_new 2023-03-14 18:15:57.191510030 +0100 @@ -17,7 +17,7 @@ Name: whois -Version: 5.5.15 +Version: 5.5.16 Release: 0 Summary: Intelligent WHOIS client License: GPL-2.0-or-later @@ -45,14 +45,23 @@ The package also contains mkpasswd, a features-rich front end to the password encryption function crypt(3). +%package bash-completion +Summary: Bash completion for whois +Group: System/Shells +Requires: %{name} +Requires: bash-completion +Supplements: (%{name} and bash-completion) + +%description bash-completion +bash command line completion support for whois. + %prep # the signature is on the Debian .dsc. Extract the checksums and verify against source echo "`grep -A1 "Files:" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | md5sum -c echo "`grep -A1 "Checksums-Sha1" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha1sum -c echo "`grep -A1 "Checksums-Sha256" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha256sum -c -%setup -q -n %{name} -%patch0 -p1 +%autosetup -p1 %build %make_build all mkpasswd HAVE_LIBIDN2=1 HAVE_ICONV=1 \ @@ -77,4 +86,8 @@ %{_mandir}/man1/*.1%{?ext_man} %{_mandir}/man5/*.5%{?ext_man} +%files bash-completion +%{_sysconfdir}/bash_completion.d/whois +%{_sysconfdir}/bash_completion.d/mkpasswd + %changelog ++++++ whois-nobsdsource.patch ++++++ --- /var/tmp/diff_new_pack.IvdFw9/_old 2023-03-14 18:15:57.219510180 +0100 +++ /var/tmp/diff_new_pack.IvdFw9/_new 2023-03-14 18:15:57.223510201 +0100 @@ -1,7 +1,7 @@ -Index: whois-5.2.12/mkpasswd.c +Index: whois-5.5.16/mkpasswd.c =================================================================== ---- whois-5.2.12.orig/mkpasswd.c -+++ whois-5.2.12/mkpasswd.c +--- whois-5.5.16.orig/mkpasswd.c ++++ whois-5.5.16/mkpasswd.c @@ -17,10 +17,7 @@ */ @@ -13,10 +13,10 @@ /* System library */ #include <stdio.h> -Index: whois-5.2.12/whois.c +Index: whois-5.5.16/whois.c =================================================================== ---- whois-5.2.12.orig/whois.c -+++ whois-5.2.12/whois.c +--- whois-5.5.16.orig/whois.c ++++ whois-5.5.16/whois.c @@ -7,9 +7,6 @@ * (at your option) any later version. */ @@ -27,17 +27,17 @@ /* System library */ #include <stdio.h> #include <stdlib.h> -Index: whois-5.2.12/Makefile +Index: whois-5.5.16/Makefile =================================================================== ---- whois-5.2.12.orig/Makefile -+++ whois-5.2.12/Makefile -@@ -53,7 +53,7 @@ endif +--- whois-5.5.16.orig/Makefile ++++ whois-5.5.16/Makefile +@@ -69,7 +69,7 @@ else mkpasswd_LDADD += -lcrypt endif -CPPFLAGS += $(DEFS) $(INCLUDES) +CPPFLAGS += -D_GNU_SOURCE $(DEFS) $(INCLUDES) - ############################################################################## - all: Makefile.depend whois mkpasswd pos + BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null || echo /etc/bash_completion.d) + ++++++ whois.asc ++++++ --- /var/tmp/diff_new_pack.IvdFw9/_old 2023-03-14 18:15:57.243510308 +0100 +++ /var/tmp/diff_new_pack.IvdFw9/_new 2023-03-14 18:15:57.247510329 +0100 @@ -5,26 +5,26 @@ Source: whois Binary: whois Architecture: any -Version: 5.5.15 +Version: 5.5.16 Maintainer: Marco d'Itri <m...@linux.it> Standards-Version: 4.6.1.1 Vcs-Browser: https://github.com/rfc1036/whois Vcs-Git: https://github.com/rfc1036/whois.git -Build-Depends: debhelper-compat (= 13), gettext, pkg-config, libidn2-dev (>= 2.0.3) +Build-Depends: debhelper-compat (= 13), gettext, pkg-config, bash-completion, libidn2-dev (>= 2.0.3) Package-List: whois deb net standard arch=any Checksums-Sha1: - c7db35f75ec61cad8466d3683970e5fbfd3dedcf 89960 whois_5.5.15.tar.xz + ea4a35f9ea52ac16c283db81c44a0bd10eb62daa 90516 whois_5.5.16.tar.xz Checksums-Sha256: - 16951471874750cd735405cc995d659f8b45005f6dfe4eabf71e8b4f59f8aeb8 89960 whois_5.5.15.tar.xz + 0a818f56c4bb909cf8665766cb683931de52901d6a33627d51b1005add3cdb27 90516 whois_5.5.16.tar.xz Files: - c6cff7ed72b004127a7afa29dd510868 89960 whois_5.5.15.tar.xz + f9ebb22480329ee691aba52ba867ed6a 90516 whois_5.5.16.tar.xz -----BEGIN PGP SIGNATURE----- -iHUEARYIAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCY6ydNAAKCRDLPsM64d7X -gS/UAP41hxsjjpv6Ln6fa6GH1sN8I22s0YliVRYWdpMLoYxM8wEA57NrtuXydHFO -LtCHCIcxVr0eJrpquQEPAJEIy8zV7AE= -=7o4f +iHUEARYIAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCY/1G6AAKCRDLPsM64d7X +gfb5AP4kbL5Pps3rco1mHI+7BbkNgkFHTu01aokRsqbWi5RrkAEAqgLXdj+9MkHz +57NV6E+qRtA+I537nmba6+bFSKofVwk= +=qOfM -----END PGP SIGNATURE----- ++++++ whois_5.5.15.tar.xz -> whois_5.5.16.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/Makefile new/whois-5.5.16/Makefile --- old/whois/Makefile 2021-06-06 19:56:37.000000000 +0200 +++ new/whois-5.5.16/Makefile 2023-02-28 00:50:59.000000000 +0100 @@ -71,6 +71,8 @@ CPPFLAGS += $(DEFS) $(INCLUDES) +BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null || echo /etc/bash_completion.d) + ############################################################################## all: Makefile.depend whois mkpasswd pos @@ -121,7 +123,7 @@ nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois ############################################################################## -install: install-whois install-mkpasswd install-pos +install: install-whois install-mkpasswd install-pos install-bashcomp install-whois: whois $(INSTALL) -d $(BASEDIR)$(prefix)/bin/ @@ -140,12 +142,18 @@ install-pos: cd po && $(MAKE) install +install-bashcomp: + $(INSTALL) -d $(BASEDIR)$(BASHCOMPDIR) + $(INSTALL) -m 0644 mkpasswd.bash $(BASEDIR)$(BASHCOMPDIR)/mkpasswd + $(INSTALL) -m 0644 whois.bash $(BASEDIR)$(BASHCOMPDIR)/whois + distclean: clean rm -f version.h po/whois.pot clean: rm -f Makefile.depend as_del.h as32_del.h ip_del.h ip6_del.h \ - new_gtlds.h tld_serv.h servers_charset.h *.o whois mkpasswd + nic_handles.h new_gtlds.h tld_serv.h servers_charset.h \ + *.o whois mkpasswd rm -f po/*.mo pos: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/debian/changelog new/whois-5.5.16/debian/changelog --- old/whois/debian/changelog 2022-12-28 20:44:11.000000000 +0100 +++ new/whois-5.5.16/debian/changelog 2023-02-28 00:58:22.000000000 +0100 @@ -1,3 +1,11 @@ +whois (5.5.16) unstable; urgency=medium + + * Add bash completion support, courtesy of Ville Skyttä. + * Updated the .tr TLD server. + * Removed support for -metu NIC handles. + + -- Marco d'Itri <m...@linux.it> Tue, 28 Feb 2023 00:58:22 +0100 + whois (5.5.15) unstable; urgency=medium * Updated the .bd, .nz and .tv TLD servers. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/debian/control new/whois-5.5.16/debian/control --- old/whois/debian/control 2022-10-16 22:18:50.000000000 +0200 +++ new/whois-5.5.16/debian/control 2023-02-28 00:40:13.000000000 +0100 @@ -5,6 +5,7 @@ Standards-Version: 4.6.1.1 Rules-Requires-Root: no Build-Depends: debhelper-compat (= 13), gettext, pkg-config, + bash-completion, libidn2-dev (>= 2.0.3), Vcs-Git: https://github.com/rfc1036/whois.git Vcs-Browser: https://github.com/rfc1036/whois diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/mkpasswd.bash new/whois-5.5.16/mkpasswd.bash --- old/whois/mkpasswd.bash 1970-01-01 01:00:00.000000000 +0100 +++ new/whois-5.5.16/mkpasswd.bash 2023-02-28 00:33:53.000000000 +0100 @@ -0,0 +1,33 @@ +_mkpasswd() { + + case $3 in + --help | --version | --salt | --rounds | --password-fd | -[hVSRP]) + return 0 + ;; + --method | -m) + COMPREPLY=($(compgen -W '$( + LC_ALL=C "$1" --method=help 2>/dev/null | + while read -r method _; do + [[ $method == Available ]] || + printf "%s\n" "$method" + done + )')) + return 0 + ;; + esac + + if [[ $2 == -* ]]; then + COMPREPLY=($(compgen -W ' + --method + -5 + --salt + --rounds + --password-fd + --stdin + --help + --version + ' -- "$2")) + return 0 + fi + +} && complete -F _mkpasswd mkpasswd diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/nic_handles.h new/whois-5.5.16/nic_handles.h --- old/whois/nic_handles.h 2018-05-22 15:36:34.000000000 +0200 +++ new/whois-5.5.16/nic_handles.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ - "-arin", "whois.arin.net", - "-ripe", "whois.ripe.net", - "-mnt", "whois.ripe.net", - "-lacnic", "whois.lacnic.net", - "-afrinic", "whois.afrinic.net", - "-ap", "whois.apnic.net", - "-cznic", "whois.nic.cz", - "-dk", "whois.dk-hostmaster.dk", - "-il", "whois.isoc.org.il", - "-is", "whois.isnic.is", - "-kg", "whois.domain.kg", - "-coop", "whois.nic.coop", - "-frnic", "whois.nic.fr", - "-lrms", "whois.afilias.info", - "-metu", "whois.nic.tr", - "-nicat", "whois.nic.at", - "-nicci", "whois.nic.ci", - "-irnic", "whois.nic.ir", - "-norid", "whois.norid.no", - "-tel", "whois.nic.tel", - "-adnic", "whois.nic.org.uy", - "-sixxs", "whois.sixxs.net", - "-uanic", "whois.ua", - "-bzh", "whois.nic.bzh", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/nic_handles_list new/whois-5.5.16/nic_handles_list --- old/whois/nic_handles_list 2018-05-22 15:34:39.000000000 +0200 +++ new/whois-5.5.16/nic_handles_list 2023-02-28 00:57:12.000000000 +0100 @@ -12,7 +12,6 @@ -coop whois.nic.coop -frnic whois.nic.fr -lrms whois.afilias.info --metu whois.nic.tr -nicat whois.nic.at -nicci whois.nic.ci -irnic whois.nic.ir diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/servers_charset_list new/whois-5.5.16/servers_charset_list --- old/whois/servers_charset_list 2022-11-26 04:31:16.000000000 +0100 +++ new/whois-5.5.16/servers_charset_list 2023-02-28 00:57:23.000000000 +0100 @@ -61,7 +61,7 @@ whois.tld.sy utf-8 whois.thains.co.th utf-8 whois.ati.tn utf-8 -whois.nic.tr utf-8 +whois.trabis.gov.tr utf-8 whois.twnic.net.tw utf-8 whois.nic.ac.uk utf-8 whois.gov.uk utf-8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/tld_serv_list new/whois-5.5.16/tld_serv_list --- old/whois/tld_serv_list 2022-12-28 20:34:44.000000000 +0100 +++ new/whois-5.5.16/tld_serv_list 2023-02-28 00:57:23.000000000 +0100 @@ -317,7 +317,7 @@ .tm whois.nic.tm .tn whois.ati.tn .to whois.tonic.to -.tr whois.nic.tr +.tr whois.trabis.gov.tr .tt WEB http://www.nic.tt/cgi-bin/search.pl .tv RECURSIVE whois.nic.tv .tw whois.twnic.net.tw diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois/whois.bash new/whois-5.5.16/whois.bash --- old/whois/whois.bash 1970-01-01 01:00:00.000000000 +0100 +++ new/whois-5.5.16/whois.bash 2023-02-28 00:33:53.000000000 +0100 @@ -0,0 +1,86 @@ +_whois_query() { + "$1" -q "$2" 2>/dev/null | while read -r item _; do + [[ $item == %* ]] && continue + printf "%s\n" "${item%%:*}" + done +} + +_whois_hosts() { + # _known_hosts_real from github.com/scop/bash-completion if available + if declare -f _known_hosts_real &>/dev/null; then + _known_hosts_real -- "$1" + return 0 + fi + COMPREPLY=($(compgen -A hostname -- "$1")) +} + +_whois() { + + case $3 in + --help | --version | -p | --port | -i) + return 0 + ;; + -h | --host) + _whois_hosts "$2" + return 0 + ;; + -T | -t | -v) + [[ ${_whois_types-} ]] || + _whois_types=" $(_whois_query "$1" types)" + COMPREPLY=($(compgen -W '$_whois_types' -- "$2")) + return 0 + ;; + -s | -g) + [[ ${_whois_sources-} ]] || + _whois_sources=" $(_whois_query "$1" sources)" + COMPREPLY=($(compgen -W '$_whois_sources' -- "$2")) + if [[ $3 == -g ]]; then + [[ ${#COMPREPLY[*]} -eq 1 ]] && COMPREPLY[0]+=: + compopt -o nospace + fi + return 0 + ;; + -q) + COMPREPLY=($(compgen -W 'version sources types' -- "$2")) + return 0 + ;; + esac + + if [[ $2 == -* ]]; then + COMPREPLY=($(compgen -W ' + -h --host + -p --port + -I + -H + --verbose + --no-recursion + --help + --version + -l + -L + -m + -M + -c + -x + -b + -B + -G + -d + -i + -T + -K + -r + -R + -a + -s + -g + -t + -v + -q + ' -- "$2")) + return 0 + fi + + _whois_hosts "$2" + +} && complete -F _whois whois