Source: p7zip
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Apparently p7zip includes different paths when built in parallel:

  
https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/p7zip.html

  /usr/lib/p7zip/7z

  ../../../../CPP/myWindows/StdAfx.h:68
  vs.
  ../../../myWindows/StdAfx.h:68


The attached patch fixes this by disabling parallelism during the build.

With this patch applied, p7zip should be reproducible on
tests.reproducible-builds.org.


It may be possible to dig deeper into p7zip to fix the issues with a
parallel build, but I haven't found a good starting point to do so.


Thanks for maintaining p7zip!


live well,
  vagrant
From ef7ff07a47b785e48be34d32810a4a65c5edacee Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sat, 10 Jul 2021 22:42:22 +0000
Subject: [PATCH] debian/rules: Disable parallel builds to enable reproducible
 builds.

---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 49bfcac..de763c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-DH_AUTO_OPTIONS := -v -Smakefile --parallel
+DH_AUTO_OPTIONS := -v -Smakefile
 stampfile       := debian/build-stamp
 
 DEB_BUILD_MAINT_OPTIONS := hardening=+all
@@ -19,7 +19,7 @@ else
 endif
 
 %:
-	dh ${@}
+	dh ${@} --no-parallel
 
 override_dh_auto_clean:
 	# Make sure patches are applied otherwise `make clean' fails
-- 
2.32.0

Attachment: signature.asc
Description: PGP signature

Reply via email to