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

Bug#1014561: clp: reproducible-builds: Embedded build path in example Makefile



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

Attachment: signature.asc
Description: PGP signature


Reply to: