Your message dated Sat, 30 Apr 2022 17:22:57 -0700
with message-id <87h76a14pq.fsf@contorta>
and subject line Re: xdmf: reproducible builds: Embeds number and type of
processor
has caused the Debian Bug report #996599,
regarding xdmf: reproducible builds: Embeds number and type of processor
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
996599: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996599
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: xdmf
Severity: normal
Tags: patch
User: [email protected]
Usertags: cpu uname
X-Debbugs-Cc: [email protected]
The processor type and number of processors is embedded in
/usr/lib/x86_64-linux-gnu/cmake/Xdmf/XdmfConfig.cmake, which cause
reproducibility issues.
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/i386/diffoscope-results/xdmf.html
set(XDMF_CMAKE_HOST_SYSTEM_PROCESSOR» » "x86_64")
vs.
set(XDMF_CMAKE_HOST_SYSTEM_PROCESSOR» » "i686")
set(XDMF_CMAKE_SYSTEM_PROCESSOR»»"x86_64")
vs.
set(XDMF_CMAKE_SYSTEM_PROCESSOR»»"i686")
set(XDMF_MPIEXEC_MAX_NUMPROCS» » "9")
vs.
set(XDMF_MPIEXEC_MAX_NUMPROCS» » "10")
The attached patch to debian/rules fixes this by removing these values
from the XdmfConfig.cmake file.
Without knowing xdmf well, I am NOT sure if it is ok to remove these
values from XdmfConfig.cmake, though in order to use the .cmake file it
would seem best to regenerate it in the environment in which is used
rather than the environment where the package happened to be built.
So it is also unclear if XdmfConfig.cmake actually needs to be included
in the package; a better course of action *might* be to remove the file
entirely.
With this patch applied(or removing XdmfConfig.cmake from the package),
xdmf should (really this time!) become reproducible on
tests.reproducible-builds.org.
Thanks for maintaining xdmf!
live well,
vagrant
From fa766ebd467308ba91f8fedaf03901a51dfe09a7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Fri, 15 Oct 2021 22:05:14 +0000
Subject: [PATCH] debian/rules: Sanitize XdmfConfig.cmake to fix
reproducibility issues due to processor.
Remove XDMF_CMAKE_SYSTEM_PROCESSOR, XDMF_CMAKE_HOST_SYSTEM_PROCESSOR
and XDMF_MPIEXEC_MAX_NUMPROCS. The number and type of CPU may not be
consistent with the environment that the package is built for, and
make it hard to build reproducibly.
https://tests.reproducible-builds.org/debian/issues/unstable/captures_kernel_version_via_CMAKE_SYSTEM_issue.html
---
debian/rules | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index f7f3f42..6399a86 100755
--- a/debian/rules
+++ b/debian/rules
@@ -91,11 +91,15 @@ override_dh_auto_install:
cp debian/build-serial-$$p/lib/__*.so $(PY3DEST)/usr/lib/$$p/dist-packages/xdmf/NoMpi ; \
cp debian/build-mpi-$$p/lib/__*.so $(PY3DEST)/usr/lib/$$p/dist-packages/xdmf ; \
done
- # Remove build path and kernel version, and adjust path to
- # uname to make build reproducible
+ # Remove build path and kernel version, adjust path to uname,
+ # and remove sytem processor and number of processors to make
+ # build reproducible
sed -i -e "s,$(CURDIR),BUILDDIR,g" \
-e "s,/usr/bin/uname,/bin/uname,g" \
-e "s,$(shell uname -r),,g" \
+ -e "/XDMF_CMAKE_SYSTEM_PROCESSOR/d" \
+ -e "/XDMF_CMAKE_HOST_SYSTEM_PROCESSOR/d" \
+ -e "/XDMF_MPIEXEC_MAX_NUMPROCS/d" \
debian/tmp/$(LIBDIR)/cmake/Xdmf/XdmfConfig.cmake
override_dh_auto_fixperms:
--
2.33.0
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Version: 3.0+git20190531-9
On 2021-10-15, Vagrant Cascadian wrote:
> The processor type and number of processors is embedded in
> /usr/lib/x86_64-linux-gnu/cmake/Xdmf/XdmfConfig.cmake, which cause
> reproducibility issues.
This appears to have been fixed but didn't get recorded in the bug
tracker:
xdmf (3.0+git20190531-9) unstable; urgency=medium
* More reproducibility fixes thanks to Vagrant C. Closes: #996599
-- Alastair McKinstry <[email protected]> Sat, 13 Nov 2021 13:54:26 +0000
And tests.reproducible-builds.org also seems to concur that the issue is
resolved:
https://tests.reproducible-builds.org/debian/history/xdmf.html
live well,
vagrant
signature.asc
Description: PGP signature
--- End Message ---