Debian Bug report logs - #1011257
coinor-osi: reproducible-builds: Embedded build path in example Makefile

Package: src:coinor-osi; Maintainer for src:coinor-osi is Debian QA Group <packages@qa.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Thu, 19 May 2022 00:27:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1011257; Package src:coinor-osi. (Thu, 19 May 2022 00:27: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 QA Group <packages@qa.debian.org>. (Thu, 19 May 2022 00:27:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: coinor-osi: reproducible-builds: Embedded build path in example Makefile
Date: Wed, 18 May 2022 17:22:27 -0700
[Message part 1 (text/plain, inline)]
Source: coinor-osi
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-libosi-doc/examples/Makefile.gz:

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

  CXXFLAGS·=·-g·-O2·-ffile-prefix-map=/build/1st/coinor-osi-0.108.6+repack1=.·-fstack-protector-strong ...
  vs.
  CXXFLAGS·=·-g·-O2·-ffile-prefix-map=/build/2/coinor-osi-0.108.6+repack1/2nd=.·-fstack-protector-strong ...

The attached patch fixes this by replacing the build path with a
placeholder string in debian/rules.


With this patch applied coinor-osi should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining coinor-osi!


live well,
  vagrant
[0001-debian-rules-Add-dh_installexamples-override-to-remo.patch (text/x-diff, inline)]
From 75e8dab1279e54e282cfb51d9f1ef450155cae88 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 19 May 2022 00:17:25 +0000
Subject: [PATCH] debian/rules: Add dh_installexamples override to remove the
 build path from the 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 88e40ca..102c30e 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:
+	sed -i -e "s,$(CURDIR),BUILDPATH,g" Osi/examples/Makefile
+	dh_installexamples
-- 
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 12:38:02 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.