diff --git a/debian/build/scripts/mod/modpost.c b/debian/build/scripts/mod/modpost.c index 1cead40c2..8747c0cde 100644 --- a/debian/build/scripts/mod/modpost.c +++ b/debian/build/scripts/mod/modpost.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -57,8 +58,16 @@ int main (int argc, char *argv[]) } if (getline (&name, &name_len, file) < 0) { - fprintf (stderr, "Can't read \"%s\"\n", list_name); - return EXIT_FAILURE; + if (errno) + { + fprintf (stderr, "Can't read \"%s\"\n", list_name); + return EXIT_FAILURE; + } + else + { + /* Empty list */ + return EXIT_SUCCESS; + } } if (!is_stdin) fclose(file); @@ -80,6 +89,7 @@ int main (int argc, char *argv[]) } else { + /* Empty list */ return EXIT_SUCCESS; } diff --git a/debian/changelog b/debian/changelog index 0646a878a..b51c582f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,19 @@ linux-tools (3.11~rc4-1~exp1) experimental; urgency=low -- Ben Hutchings Thu, 08 Aug 2013 16:21:00 +0200 +linux-tools (3.10-4) unstable; urgency=low + + * Sourceful upload for the perl 5.18 transition + * usbip: Fix package version override to be binNMU-safe + + -- Ben Hutchings Fri, 30 Aug 2013 12:44:56 +0100 + +linux-tools (3.10-3) unstable; urgency=low + + * linux-kbuild: Fix no-modules case in modpost wrapper (Closes: #719129) + + -- Ben Hutchings Thu, 08 Aug 2013 21:49:02 +0200 + linux-tools (3.10-2) unstable; urgency=low * linux-kbuild: Fix use of getline() in modpost wrapper (Closes: #717195) diff --git a/debian/rules.real b/debian/rules.real index beb766bcb..8b2730e8e 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -4,6 +4,10 @@ include debian/rules.defs DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) +# VERSION_DEBIAN is the package source version; VERSION_DEBIAN_FULL +# includes any binNMU part. +VERSION_DEBIAN_FULL := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p') + binary-arch: install-kbuild install-usbip ifneq ($(filter alpha amd64 armel armhf hppa i386 powerpc ppc64 s390 s390x sh4 sparc sparc64,$(DEB_BUILD_ARCH)),) binary-arch: install-tools @@ -74,7 +78,7 @@ install-usbip: $(STAMPS_DIR)/build dh_fixperms dh_installdeb dh_shlibdeps - test -n "$(VERSION)" -a -n "$(VERSION_DEBIAN)" - dh_gencontrol -- -v$(VERSION)+$(VERSION_DEBIAN) + test -n "$(VERSION)" -a -n "$(VERSION_DEBIAN_FULL)" + dh_gencontrol -- -v$(VERSION)+$(VERSION_DEBIAN_FULL) dh_md5sums dh_builddeb