[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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
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

Attachment: signature.asc
Description: PGP signature


Reply to: