Package: whois Version: 5.0.17 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu quantal ubuntu-patch
Hello, I'm trying to backport whois to an older Ubuntu release, but I've noticed it won't build because of the VERSION check in debian/rules. When backporting a package the version number will look like the following: 5.0.15ubuntu2~oneiric1 This will fail because the regex isn't expecting ~oneiric1. The attached patch will expand this regex and allow for such addition to the changelog string, and will be cut appropriately when compared with the VERSION in config.h. Here is the changelog addition: * debian/rules: Updated VERSION regex to allow for extra version strings. Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise'), (100, 'precise-backports') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-24-generic (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru whois-5.0.16/debian/changelog whois-5.0.17/debian/changelog diff -Nru whois-5.0.16/debian/rules whois-5.0.17/debian/rules --- whois-5.0.16/debian/rules 2012-03-05 15:57:49.000000000 -0600 +++ whois-5.0.17/debian/rules 2012-05-01 14:47:07.000000000 -0500 @@ -6,7 +6,7 @@ D := $(shell pwd)/debian/whois -VERSION := $(shell dpkg-parsechangelog | sed -n 's/ubuntu[0-9]*$$//; s/\+.*$$//; /^Version/s/.* //p') +VERSION := $(shell dpkg-parsechangelog | sed -n 's/ubuntu[0-9]*.*$$//; s/\+.*$$//; /^Version/s/.* //p') build: dh_testdir