From 42b6cc2f10409c1cdc30ab121c6260bd555588da Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Fri, 24 Jul 2015 20:49:22 +0000 Subject: [PATCH] debian/rules.real: Use dpkg-parsechangelog -S This option is supported since dpkg 1.17 (i.e. jessie) and allows a nice little clean-up. svn path=/dists/trunk/linux/; revision=22852 --- debian/changelog | 1 + debian/rules.real | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2bf227c64..788618767 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,7 @@ linux (4.1.3-1~exp1) UNRELEASED; urgency=medium [ Ben Hutchings ] * [armel/kirkwood] ubi: Change UBIFS_FS and MTD_UBI from built-in to modules, to reduce kernel image size (fixes FTBFS) + * debian/rules.real: Use dpkg-parsechangelog -S [ Ian Campbell ] * [armhf] Set CONFIG_ARM_TEGRA_CPUFREQ as builtin. diff --git a/debian/rules.real b/debian/rules.real index e1fecd3c5..6f90f758c 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -13,8 +13,8 @@ DEB_HOST_MULTIARCH:= $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_MULTIARCH) DEB_BUILD_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_BUILD_ARCH) endif MAINTAINER := $(shell sed -ne 's,^Maintainer: .[^<]*<\([^>]*\)>,\1,p' debian/control) -DISTRIBUTION := $(shell dpkg-parsechangelog | sed -ne 's,^Distribution: ,,p') -SOURCE_DATE := $(shell dpkg-parsechangelog | sed -ne 's,^Date: ,,p') +DISTRIBUTION := $(shell dpkg-parsechangelog -SDistribution) +SOURCE_DATE := $(shell dpkg-parsechangelog -SDate) SOURCE_DATE_UTC_ISO := $(shell date -u -d '$(SOURCE_DATE)' +%Y-%m-%d) DISTRIBUTOR := $(shell lsb_release -is 2>/dev/null)