Source: jack-audio-connection-kit
Severity: normal
Version: 1:0.125.0-3
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath usrmerge shell
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The generated Makefile shipped in jackd1 includes the build path of the
build, various embedded paths for SHELL, SED, GREP, etc. which may
differ if built on a usrmerged system.

This Makefile is arguably broken, containing paths which may not be
present on the user's system. Since the user would have to re-generate
this file in order to use it anyways, the simplest thing to do is not
install the file at all.

The attached patch removes this file in debian/rules with a
dh_installexamples override.


Thanks for maintaining jack-audio-connection-kit!


live well,
  vagrant
From 205403909ee8e0349823fb91fcc95b2ebab473eb Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 18 Aug 2020 21:34:56 +0000
Subject: [PATCH] debian/rules: Add dh_installexamples override to remove
 generated Makefile which breaks reproducible builds.

---
 debian/rules | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/debian/rules b/debian/rules
index 320470f..fb1db40 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,14 @@ endif
 override_dh_auto_configure:
 	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)
 
+override_dh_installexamples:
+	dh_installexamples
+	# Remove generated Makefile which contains build paths and
+	# hard-coded paths to binaries, which need to be regenerated
+	# in order to be used. Removing it also fixes Reproducible
+	# Builds.
+	rm -f debian/jackd1/usr/share/doc/jackd1/examples/python/Makefile
+
 # this target fetches the FAQ from the JACK homepage
 .PHONY: faq
 faq:
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to