Debian Bug report logs -
#990953
lxml: reproducible-builds: Set locale to ensure html documentation is reproducible
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Matthias Klose <doko@debian.org>:
Bug#990953; Package src:lxml.
(Sun, 11 Jul 2021 17:09:03 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, Matthias Klose <doko@debian.org>.
(Sun, 11 Jul 2021 17:09:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: lxml
Severity: minor
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
Various .html files generated in the documentation have different
results depending on the (potentially obscure) locale used in reprotest.
./usr/share/doc/python-lxml/html/index.html
<div class="line"><a class="reference external"
href="https://mailman-mail5.webfaction.com/pipermail/lxml/200\
80131/019119.html">» lxml takes all the pain out of
XML. «</a></div>
vs.
<div class="line"><a class="reference external"
href="https://mailman-mail5.webfaction.com/pipermail/lxml/200\
80131/019119.html">» lxml takes all the pain out of
XML. «</a></div>
The attached patch sets the LC_ALL and LANG environment variables from
debian/rules to ensure the C.UTF-8 locale is used.
Thanks for maintaining lxml!
live well,
vagrant
[0002-debian-rules-Set-LC_ALL-and-LANG-to-C.UTF-8-to-avoid.patch (text/x-diff, inline)]
From b3bf97844053add891129e119cc66b5af3eb5016 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 11 Jul 2021 17:00:21 +0000
Subject: [PATCH 2/2] debian/rules: Set LC_ALL and LANG to C.UTF-8 to avoid
reproducibility issues when generating html documentation.
---
debian/rules | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/debian/rules b/debian/rules
index db5abad..466e936 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,10 @@ PY3VER := $(shell py3versions -vd)
UPSTREAMVER := $(subst lxml-,,$(notdir $(CURDIR)))
+# Some locales trigger reproducibility issues in html documentation
+export LC_ALL=C.UTF-8
+export LANG=C.UTF-8
+
include /usr/share/python3/python.mk
prebuild: prebuild-stamp
--
2.32.0
[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 12:27:23 2023;
Machine Name:
bembo
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.