Debian Bug report logs -
#1034327
nmodl: reproducible-builds: Embedded build path in /usr/bin/nmodl
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>:
Bug#1034327; Package src:nmodl.
(Thu, 13 Apr 2023 02:45:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>.
(Thu, 13 Apr 2023 02:45:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: nmodl
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@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
[0001-src-config-config.cpp.in-Drop-build-path-from-NRNUNI.patch (text/x-diff, inline)]
From 09e3bc7f2336e8ec15bb0ddc713f88a0e4fdc252 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 12 Apr 2023 17:09:49 -0700
Subject: [PATCH] src/config/config.cpp.in: Drop build path from
NRNUNITSLIB_PATH.
The build path will not generally be available when the package is
installed, so should not be able to afect the resulting package at
runtime.
https://reproducible-builds.org/docs/build-path/
---
src/config/config.cpp.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/config/config.cpp.in b/src/config/config.cpp.in
index d962184..726d243 100644
--- a/src/config/config.cpp.in
+++ b/src/config/config.cpp.in
@@ -22,4 +22,4 @@ const std::string nmodl::Version::NMODL_VERSION = "@PROJECT_VERSION@";
* will cause ccache misses when the build prefix is changed.
*/
std::vector<std::string> nmodl::NrnUnitsLib::NRNUNITSLIB_PATH =
- {"@CMAKE_INSTALL_PREFIX@/share/nmodl/nrnunits.lib", "@NMODL_PROJECT_BINARY_DIR@/share/nmodl/nrnunits.lib"};
+ {"@CMAKE_INSTALL_PREFIX@/share/nmodl/nrnunits.lib"};
--
2.39.2
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 11:43:54 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.