Source: python-djvulibre 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/python3/dist-packages/djvu/decode.cpython-310-x86_64-linux-gnu.so: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/python-djvulibre.html /build/1st/python-djvulibre-0.8.8/build/temp.linux-x86_64-3.10/src/decode.c:70219 vs. /build/2/python-djvulibre-0.8.8/2nd/build/temp.linux-x86_64-3.10/src/decode.c:70219 The attached patch to setup.py fixes this by allowing the default CFLAGS to be passed from debian/rules, which includes -ffile-prefix-map to avoid embedding the build paths in the binaries. According to my local tests, with this patch applied, python-djvulibre should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining python-djvulibre! live well, vagrant
From 3deaa46f919c4f16f6ef6f3ede93fd9e39169b5f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 9 Oct 2022 01:52:57 +0000
Subject: [PATCH] setup.py: Allow debian/rules to pass the default CFLAGS.
---
setup.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/setup.py b/setup.py
index 9ed7cec..b4981cd 100644
--- a/setup.py
+++ b/setup.py
@@ -167,9 +167,6 @@ else:
# Python 3.X
req_cython_version = '0.20'
-# Work-around for <https://bugs.python.org/issue969718>:
-os.environ.pop('CFLAGS', None)
-
class build_ext(distutils.command.build_ext.build_ext):
def run(self):
--
2.37.2
Attachment:
signature.asc
Description: PGP signature