[Reproducible-commits] [dpkg] 48/54: Write control.tar in a deterministic order
Mattia Rizzolo
mattia at debian.org
Fri Jan 15 18:54:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit 42dfae9ada9841e5efbe0f263e18359e3ca1d06b
Author: Jérémy Bobbio <lunar at debian.org>
Date: Thu Oct 8 14:24:57 2015 +0000
Write control.tar in a deterministic order
This requires the new `--sort=name` option available since
GNU Tar 1.28. Adding the required Depends for dpkg-dev.
Closes: #719845
---
debian/control | 3 ++-
dpkg-deb/build.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 8c05b3e..dca1c21 100644
--- a/debian/control
+++ b/debian/control
@@ -52,7 +52,8 @@ Priority: optional
Architecture: all
Multi-Arch: foreign
Depends: libdpkg-perl (= ${source:Version}), bzip2, xz-utils,
- patch (>= 2.7), make, binutils, base-files (>= 5.0.0), ${misc:Depends}
+ patch (>= 2.7), make, binutils, base-files (>= 5.0.0), tar (>= 1.28),
+ ${misc:Depends}
Recommends: gcc | c-compiler, build-essential, fakeroot,
gnupg | gnupg2, gpgv | gpgv2, libalgorithm-merge-perl
Suggests: debian-keyring
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 76f66a7..8d9f066 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -572,7 +572,7 @@ do_build(const char *const *argv)
m_dup2(p1[1],1); close(p1[0]); close(p1[1]);
if (chdir(ctrldir))
ohshite(_("failed to chdir to '%.255s'"), ctrldir);
- execlp(TAR, "tar", "-cf", "-", "--format=gnu", ".", NULL);
+ execlp(TAR, "tar", "-cf", "-", "--format=gnu", "--sort=name", ".", NULL);
ohshite(_("unable to execute %s (%s)"), "tar -cf", TAR);
}
close(p1[1]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list