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

Bug#1010948: xine-lib-1.2: reproducible-builds: embedded build path in libxine.pc



Source: xine-lib-1.2
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/lib/x86_64-linux-gnu/pkgconfig/libxine.pc:

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

  objcflags=... -ffile-prefix-map=/build/1st/xine-lib-1.2-1.2.12=.·-fstack-protector-strong ...
vs.
  objcflags=... -ffile-prefix-map=/build/2/xine-lib-1.2-1.2.12/2nd=.·-fstack-protector-strong ...
  
The attached patch fixes this by replacing the build path with the
placeholder string "BUILDPATH" in the libxine.pc file in a debian/rules
dh_install override.


With this patch applied, xine-lib-1.2 should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
From b6e42a46178877dbb613c47d79faf47fd223b990 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 13 May 2022 20:03:04 +0000
Subject: [PATCH] debian/rules: Remove the build path from libxine.pc in
 dh_install override.

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

diff --git a/debian/rules b/debian/rules
index 4a0ec9e..f6ba553 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,3 +51,7 @@ override_dh_installdocs:
 		--link-doc=libxine2-bin
 	dh_installdocs -plibxine2-doc --doc-main-package libxine2-doc
 	dh_installdocs --remaining-packages
+
+override_dh_install:
+	dh_install
+	sed -i -e "s,$(CURDIR),BUILDPATH,g" debian/libxine2-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/libxine.pc
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


Reply to: