From d2171ffff8016ff43630738e589c82935968f476 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Mon, 21 May 2018 13:21:19 -0700 Subject: [PATCH] LinGui: set the build date in the debian changelog Ubuntu build servers appear to set the build machine date/time from this. So hard coding it to some random date is suboptimal. Fixes incorrect build date in the HandBrake version line of the activity log. (cherry picked from commit 06d1ee1eec79ce62517c8168e1614ed788b6b091) --- pkg/linux/module.rules | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/linux/module.rules b/pkg/linux/module.rules index 1c90c0137..82eaa34ea 100644 --- a/pkg/linux/module.rules +++ b/pkg/linux/module.rules @@ -4,6 +4,8 @@ pkg.create.rpm:: $(PKG.rpm.stamp) pkg.create.src.deb:: $(PKG.src.deb.stamp) pkg.create.tar:: pkg.create $(PKG.cli.tar) +DEBIAN_CHANGELOG_DATE = $(shell date -R) + # # CLI Tar Package # @@ -132,7 +134,7 @@ $(PKG.src.deb.stamp): GNUmakefile echo " * Snapshot" >> $(STAGE.out.src/)bionic/$(PKG.deb.basename)/debian/changelog echo " - See commit history at https://github.com/HandBrake/HandBrake/commits/master" >> $(STAGE.out.src/)bionic/$(PKG.deb.basename)/debian/changelog echo "" >> $(STAGE.out.src/)bionic/$(PKG.deb.basename)/debian/changelog - echo " -- John Stebbins Sun, 11 Apr 2010 9:51:07 -0800" >> $(STAGE.out.src/)bionic/$(PKG.deb.basename)/debian/changelog + echo " -- John Stebbins " $(DEBIAN_CHANGELOG_DATE) >> $(STAGE.out.src/)bionic/$(PKG.deb.basename)/debian/changelog $(TAR.exe) czf $(STAGE.out.src/)bionic/$(PKG.src.deb.tar) -C $(STAGE.out.src/)bionic $(PKG.deb.basename) (cd $(STAGE.out.src/)bionic/$(PKG.deb.basename) && debuild -S -kjstebbins.hb) $(MKDIR.exe) -p $(STAGE.out.src/)artful @@ -146,7 +148,7 @@ $(PKG.src.deb.stamp): GNUmakefile echo " * Snapshot" >> $(STAGE.out.src/)artful/$(PKG.deb.basename)/debian/changelog echo " - See commit history at https://github.com/HandBrake/HandBrake/commits/master" >> $(STAGE.out.src/)artful/$(PKG.deb.basename)/debian/changelog echo "" >> $(STAGE.out.src/)artful/$(PKG.deb.basename)/debian/changelog - echo " -- John Stebbins Sun, 11 Apr 2010 9:51:07 -0800" >> $(STAGE.out.src/)artful/$(PKG.deb.basename)/debian/changelog + echo " -- John Stebbins " $(DEBIAN_CHANGELOG_DATE) >> $(STAGE.out.src/)artful/$(PKG.deb.basename)/debian/changelog $(TAR.exe) czf $(STAGE.out.src/)artful/$(PKG.src.deb.tar) -C $(STAGE.out.src/)artful $(PKG.deb.basename) (cd $(STAGE.out.src/)artful/$(PKG.deb.basename) && debuild -S -kjstebbins.hb) $(MKDIR.exe) -p $(STAGE.out.src/)xenial @@ -160,7 +162,7 @@ $(PKG.src.deb.stamp): GNUmakefile echo " * Snapshot" >> $(STAGE.out.src/)xenial/$(PKG.deb.basename)/debian/changelog echo " - See commit history at https://github.com/HandBrake/HandBrake/commits/master" >> $(STAGE.out.src/)xenial/$(PKG.deb.basename)/debian/changelog echo "" >> $(STAGE.out.src/)xenial/$(PKG.deb.basename)/debian/changelog - echo " -- John Stebbins Sun, 11 Apr 2010 9:51:07 -0800" >> $(STAGE.out.src/)xenial/$(PKG.deb.basename)/debian/changelog + echo " -- John Stebbins " $(DEBIAN_CHANGELOG_DATE) >> $(STAGE.out.src/)xenial/$(PKG.deb.basename)/debian/changelog $(TAR.exe) czf $(STAGE.out.src/)xenial/$(PKG.src.deb.tar) -C $(STAGE.out.src/)xenial $(PKG.deb.basename) (cd $(STAGE.out.src/)xenial/$(PKG.deb.basename) && debuild -S -kjstebbins.hb) $(MKDIR.exe) -p $(STAGE.out.src/)trusty @@ -174,6 +176,6 @@ $(PKG.src.deb.stamp): GNUmakefile echo " * Snapshot" >> $(STAGE.out.src/)trusty/$(PKG.deb.basename)/debian/changelog echo " - See commit history at https://github.com/HandBrake/HandBrake/commits/master" >> $(STAGE.out.src/)trusty/$(PKG.deb.basename)/debian/changelog echo "" >> $(STAGE.out.src/)trusty/$(PKG.deb.basename)/debian/changelog - echo " -- John Stebbins Sun, 11 Apr 2010 9:51:07 -0800" >> $(STAGE.out.src/)trusty/$(PKG.deb.basename)/debian/changelog + echo " -- John Stebbins " $(DEBIAN_CHANGELOG_DATE) >> $(STAGE.out.src/)trusty/$(PKG.deb.basename)/debian/changelog $(TAR.exe) czf $(STAGE.out.src/)trusty/$(PKG.src.deb.tar) -C $(STAGE.out.src/)trusty $(PKG.deb.basename) (cd $(STAGE.out.src/)trusty/$(PKG.deb.basename) && debuild -S -kjstebbins.hb) -- 2.40.0