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

Bug#978407: libcommoncpp2: reproducible builds: Example Makefile contains variable build paths and binary paths



Source: libcommoncpp2
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath usrmerge shell
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The included file /usr/share/doc/libcommoncpp2-dev/examples/Makefile.gz
various paths dependent on the build environment:

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

  ACLOCAL·=·${SHELL}·'/build/1st/libcommoncpp2-1.8.1/autoconf/missing'·aclocal-1.16
  vs.
  ACLOCAL·=·${SHELL}·'/build/2/libcommoncpp2-1.8.1/2nd/autoconf/missing'·aclocal-1.16

  EGREP·=·/bin/grep·-E
  vs.
  EGREP·=·/usr/bin/grep·-E


The attached patch fixes this by removing the Makefile from the package,
while preserving the Makefile.in and Makefile.am files needed to
regenerate the Makefile should the user wish to use it.


Thanks for maintaining libcommoncpp2!


live well,
  vagrant
From f9304813d7191100159470e35f64127ed4a20a7c Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 27 Dec 2020 00:17:27 +0000
Subject: [PATCH 1/3] debian/rules: Remove example Makefile.

The Makefile contains information specific to the build environment
such as build paths and paths to specific binaries. Remove it as it
would need to be regenerated on the end user system in order to be
used.
---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index fec6698..f227c11 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,11 @@ override_dh_install:
 override_dh_strip:
 	dh_strip --dbgsym-migration='libcommoncpp2-dbg (<< 1.8.1-7~)'
 
+override_dh_installexamples:
+	dh_installexamples
+	# Remove Makefile which embeds binary paths and build paths
+	rm -f debian/libcommoncpp2-doc/usr/share/doc/libcommoncpp2-dev/examples/Makefile
+
 help2man:
 	/usr/bin/help2man -N -S 'Debian GNU/Linux' -o debian/ccgnu2-config.8 ccgnu2-config \
 	    -n 'script to get information about the installed version of libcommoncpp2'
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature


Reply to: