Debian Bug report logs -
#1014561
clp: reproducible-builds: Embedded build path in example Makefile
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 QA Group <packages@qa.debian.org>:
Bug#1014561; Package src:clp.
(Thu, 07 Jul 2022 22:03:03 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 QA Group <packages@qa.debian.org>.
(Thu, 07 Jul 2022 22:03:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: clp
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/share/doc/coinor-libclp-doc/examples/Makefile.gz:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/clp.html
CXXFLAGS·=·-g·-O2·-ffile-prefix-map=/build/1st/clp-1.17.6=. ...
vs.
CXXFLAGS·=·-g·-O2·-ffile-prefix-map=/build/2/clp-1.17.6/2nd=. ...
The attached patch fixes this by replacing the build path with a
placeholder string in debian/rules.
With this patch applied clp should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining clp!
live well,
vagrant
[0001-debian-rules-Add-dh_installexamples-override-to-remo.patch (text/x-diff, inline)]
From ebabfddbbe32940959ff69e19bb816fb6067814d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 7 Jul 2022 21:54:07 +0000
Subject: [PATCH] debian/rules: Add dh_installexamples override to remove build
path from example Makefile.
https://reproducible-builds.org/docs/build-path/
---
debian/rules | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/debian/rules b/debian/rules
index ff730ed..8b50efa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,7 @@ override_dh_auto_build:
dh_auto_build
make doxydoc
$(RM) doxydoc/html/*.md5 doxydoc/html/*.dot doxydoc/html/*.map
+
+override_dh_installexamples:
+ dh_installexamples
+ sed -i -e "s,$(CURDIR),BUILDDIR,g" debian/coinor-libclp-doc/usr/share/doc/coinor-libclp-doc/examples/Makefile
--
2.36.1
[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 09:57:11 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.