Source: coinor-cgl
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The build path is embedded in 
/usr/share/doc/coinor-libcgl-doc/examples/Makefile:

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

  
CXXFLAGS·=·-g·-O2·-ffile-prefix-map=/build/1st/coinor-cgl-0.60.3+repack1=.·-fstack...
  vs.
  
CXXFLAGS·=·-g·-O2·-ffile-prefix-map=/build/2/coinor-cgl-0.60.3+repack1/2nd=.·-fstack...

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


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


Thanks for maintaining coinor-cgl!


live well,
  vagrant
From ead6f2b5d0b1e0b03d0f607c6d91fa7ef7db8149 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 2 May 2022 13:40:30 +0000
Subject: [PATCH] debian/rules: Replace the build path in example Makefile with
 a placeholder string.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 3e66c59..d471945 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,3 +18,7 @@ override_dh_auto_configure:
 execute_after_dh_auto_build:
 	make doxydoc
 	$(RM) doxydoc/html/*.md5 doxydoc/html/*.dot doxydoc/html/*.map
+
+execute_before_dh_installexamples:
+	# Remove full build path from example Makefile
+	sed -i -e "s,prefix-map=$(CURDIR),prefix-map=BUILDPATH,g" Cgl/examples/Makefile
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature

Reply via email to