Package: whois Version: 5.1.5 Severity: serious Tags: patch Justification: fails to build from source (but built successfully in the past)
whois has to be binNMUed on s390x and failed to build: | make[1]: Entering directory '/«BUILDDIR»/whois-5.1.5+b1' | cc -D_FORTIFY_SOURCE=2 -DCONFIG_FILE=\"/etc/whois.conf\" -DHAVE_LIBIDN -DHAVE_ICONV -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MM -MG *.c > Makefile.depend | perl make_version_h.pl debian/changelog > version.h | Invalid version number in debian/changelog! | make[1]: *** [version.h] Error 25 | make[1]: *** Deleting file 'version.h' | Makefile:73: recipe for target 'version.h' failed | make[1]: Leaving directory '/«BUILDDIR»/whois-5.1.5+b1' | make: *** [build] Error 2 | debian/rules:17: recipe for target 'build' failed | dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2 The full build log is available there: https://buildd.debian.org/status/fetch.php?pkg=whois&arch=s390x&ver=5.1.5%2Bb1&stamp=1410534727 The problem is that the script parsing the version number doesn't handle the versions used by a binNMU. The patch below fixes the issue. --- a/make_version_h.pl +++ b/make_version_h.pl @@ -12,7 +12,7 @@ my ($ver) = $line =~ /^whois \s+ \( ( [^\)]+ ) \) \s+ \S+/x; die "Version number not found in $changelog!\n" if not $ver; -$ver =~ s/ ( ~bpo\d+\+\d+ | ~deb\d+.* | ubuntu\d+ | \+dyson\d+ ) $//x; +$ver =~ s/ ( ~bpo\d+\+\d+ | ~deb\d+.* | ubuntu\d+ | \+dyson\d+ | \+b\d+ ) $//x; # The version number must not deviate from this format or the -V option # to RIPE-like servers will break. If needed, update the previous regexp. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: s390x Kernel: Linux 3.2.0-4-s390x (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org