Bug#1034327: nmodl: reproducible-builds: Embedded build path in /usr/bin/nmodl

Vagrant Cascadian vagrant at reproducible-builds.org
Thu Apr 13 03:43:33 BST 2023


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

The build path is embedded in /usr/bin/nmodl:

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

  /build/1st/nmodl-0.5/obj-x86_64-linux-gnu/share/nmodl/nrnunits.lib
  vs.
  /build/2/nmodl-0.5/2nd/obj-x86_64-linux-gnu/share/nmodl/nrnunits.lib

The attached patch fixes this by patching src/config/config.cpp.in to
avoid embedding a (presumed) search path including the build path for
NRNUNITSLIB_PATH.

This build path is generally not available when the package is
installed, so this should not cause issues at run-time... if nmodl
eventually adopts a test suite, this might cause issues; there is no
test suite run as part of the current debian package.


According to my local tests, with this patch applied nmodl should build
reproducibly on tests.reproducible-builds.org!


Thanks for maintaining nmodl!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-src-config-config.cpp.in-Drop-build-path-from-NRNUNI.patch
Type: text/x-diff
Size: 1091 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20230412/e1015323/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/debian-science-maintainers/attachments/20230412/e1015323/attachment.sig>


More information about the debian-science-maintainers mailing list