From: Theodore Ts'o Date: Wed, 5 Feb 2014 02:45:51 +0000 (-0500) Subject: debian: fix dpkg-buildpackage for Debian Squeeze X-Git-Tag: v1.42.10~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8c4476dfa9baa6e31a12f467848b185fd550c61;p=thirdparty%2Fe2fsprogs.git debian: fix dpkg-buildpackage for Debian Squeeze Commit becb01ce84d breaks building e2fsprogs with dpkg 1.15.8 which is used in Debian 6.0 (Squeeze), since it doesn't support package specifications qualified with an architecture (i.e., "dpkg-query -W libblkid1:amd64"). Debian only needs to use its own version of libblkid and libuuid for versions of Debian 5.0 (Lenny) or before. So default to using util-linux-ng, instead of trying to test the version number of libblkid1. Lenny was released in February, 2009, and the current stable Debian release is 7.x, so it is two stable releases back as of February 2014. In the unlikely case someone needs to build a modern version of e2fsprogs on a version of Debian which is five years old or older, can create the file Debian/rules.custom with the line: UTIL_LINUX_NG = no Signed-off-by: "Theodore Ts'o" --- diff --git a/debian/rules b/debian/rules index bd9a34e9d..f5ee6a6e1 100755 --- a/debian/rules +++ b/debian/rules @@ -23,10 +23,7 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null # Allow distro-specific behaviour DISTRO :=$(shell sed -ne '/DISTRIB_ID/s/.*=//p' /etc/lsb-release 2>/dev/null || echo Debian) -SYS_BLKID_VER := $(shell dpkg-query -W libblkid1:$(DEB_HOST_ARCH) | cut -f 2 | cut -b 1) -ifeq ($(SYS_BLKID_VER),2) UTIL_LINUX_NG ?= yes -endif # find the version for the main package, from changelog file MAIN_VERSION = $(shell head -n 1 debian/changelog | cut '-d ' -f 2 | sed 's/[()]//g')