Debian Bug report logs -
#1014559
libloki: reproducible-builds: embedded build paths in libloki.so.*
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1014559; Package src:libloki.
(Thu, 07 Jul 2022 20:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>.
(Thu, 07 Jul 2022 20:57:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: libloki
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/libloki.so.0.1.7:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libloki.html
/build/1st/libloki-0.1.7/src/LevelMutex.cpp:88
vs.
/build/2/libloki-0.1.7/2nd/src/LevelMutex.cpp:88
The attached patch fixes this by explicitly passing CXXFLAGS to
dh_auto_build in debian/rules, which includes flags to avoid embedding
the build path.
With this patch applied, libloki should build reproducibly on
tests.reproducible-builds.org!
live well,
vagrant
[0001-debian-rules-Explicitly-pass-CXXFLAGS-to-dh_auto_bui.patch (text/x-diff, inline)]
From 4290aeceda937a01d2b6e54ce8b94abd98c0aeee Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 7 Jul 2022 20:45:03 +0000
Subject: [PATCH] debian/rules: Explicitly pass CXXFLAGS to dh_auto_build.
Makefile.common overrides CXXFLAGS from the environment, so explicitly
passing it in order to get the default build flags.
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index e7990c6..d2f39c9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@
dh $@
override_dh_auto_build:
- dh_auto_build -- OS=Linux build-static build-shared
+ dh_auto_build -- OS=Linux build-static build-shared CXXFLAGS="$(CXXFLAGS)"
override_dh_auto_test:
-dh_auto_test -- OS=Linux
--
2.36.1
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 09:57:13 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.