Bug#996599: xdmf: reproducible builds: Embeds number and type of processor

Vagrant Cascadian vagrant at reproducible-builds.org
Fri Oct 15 23:20:02 BST 2021


Source: xdmf
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: cpu uname
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Sanitize-XdmfConfig.cmake-to-fix-reprod.patch
Type: text/x-diff
Size: 1636 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20211015/21199104/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20211015/21199104/attachment.sig>


More information about the Reproducible-bugs mailing list