[devscripts] 01/03: debrepro: Use dpkg-buildpackage instead of ad-hoc code

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Oct 19 16:01:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository devscripts.

commit dd08b9cb774e70cb044ca0f47a626344501ad6a0
Author: Guillem Jover <guillem at debian.org>
Date:   Tue Oct 18 03:54:21 2016 +0200

    debrepro: Use dpkg-buildpackage instead of ad-hoc code
    
    Part of the reproducible machinery is handled already by
    dpkg-buildpackage, so there's no need to duplicate it. We can also
    pass faketime+fakeroot as a normal gain-root-command.
    
    Signed-off-by: Antonio Terceiro <terceiro at debian.org>
---
 scripts/debrepro.sh | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/scripts/debrepro.sh b/scripts/debrepro.sh
index 38dd14f..e1444fb 100755
--- a/scripts/debrepro.sh
+++ b/scripts/debrepro.sh
@@ -56,8 +56,6 @@ create_build_script() {
   echo "# package"
   echo
 
-  echo 'export SOURCE_DATE_EPOCH=$(date -d "$(dpkg-parsechangelog -SDate)" +%s)'
-
   variation PATH
   vary '' 'export PATH="$PATH":/i/capture/the/path'
 
@@ -83,13 +81,9 @@ create_build_script() {
     echo 'cd ../disorderfs'
   fi
 
-  echo
-  echo 'dpkg-source --before-build .'
-  echo 'fakeroot debian/rules clean'
-
   variation date
-  vary 'fakeroot debian/rules binary' \
-    'faketime "+213days +7hours +13minutes" fakeroot debian/rules binary'
+  vary 'dpkg-buildpackage -b -us -uc' \
+    'dpkg-buildpackage -b -us -uc -r"faketime +213days+7hours+13minutes fakeroot"'
 }
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list