Your message dated Tue, 09 Jun 2026 00:09:01 -0700
with message-id <87fr2wur5e.fsf@wireframe>
and subject line Re: Bug#1002673: sphinx-copybutton: reproducible builds: html 
documentation contains translated content
has caused the Debian Bug report #1002673,
regarding sphinx-copybutton: reproducible builds: html documentation contains 
translated content
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1002673: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002673
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: sphinx-copybutton
Severity: normal
Tags: patch
User: [email protected]
Usertags: locale
X-Debbugs-Cc: [email protected]

Various .html files generated and shipped in the .deb package differ
depending on the locale of the build environment:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/sphinx-copybutton.html

  /usr/share/doc/python-sphinx-copybutton-doc/html/genindex.html

  ... 
placeholder="Search·the·docs·..."·aria-label="Search·the·docs·..."·autocomplete="off"·>

vs.

  ... 
placeholder="Dokumentidest·otsimine·..."·aria-label="Dokumentidest·otsimine·..."·autocomplete="off"·>


The attached patch fixes this by exporting LANGUAGE=en when calling
sphinxdoc from debian/rules.


Thanks for maintaining sphinx-copybutton!


live well,
  vagrant
From 6afc886f7fa911b76a7367e2837741f578150cda Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Mon, 27 Dec 2021 02:57:47 +0000
Subject: [PATCH] debian/rules: Set LANGUAGE when building documentation.

https://tests.reproducible-builds.org/debian/issues/bookworm/sphinxdoc_translations_issue.html
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index f6ae964..7729685 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ export PYBUILD_NAME=sphinx-copybutton
 override_dh_auto_build:
 	ln -sf /usr/share/javascript/clipboard.js/clipboard.js sphinx_copybutton/_static/clipboard.min.js
 	dh_auto_build
-	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs docs/build/html
+	PYTHONPATH=. LANGUAGE=en http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs docs/build/html
 
 override_dh_auto_install:
 	dh_auto_install
-- 
2.34.1

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
On 2021-12-26, Sandro Tosi wrote:
>> Various .html files generated and shipped in the .deb package differ
>> depending on the locale of the build environment:
>>
>>   
>> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/sphinx-copybutton.html
>>
>>   /usr/share/doc/python-sphinx-copybutton-doc/html/genindex.html
>>
>>   ... 
>> placeholder="Search·the·docs·..."·aria-label="Search·the·docs·..."·autocomplete="off"·>
>>
>> vs.
>>
>>   ... 
>> placeholder="Dokumentidest·otsimine·..."·aria-label="Dokumentidest·otsimine·..."·autocomplete="off"·>
>>
>>
>> The attached patch fixes this by exporting LANGUAGE=en when calling
>> sphinxdoc from debian/rules.
>
> this is a problem that could happen with every package that uses
> sphinx and has multi-language doc available.
>
> that said, i dont believe this should be fixed in each individual
> package, but it should either be enforced at the sphinx level or in
> the build environment.

Not sure exactly what fixed it, but this appears to no longer be and
issue. Based on the reproducible builds test history, Most likly
something fixed in sphinx in 2023 around june or july:

  https://tests.reproducible-builds.org/debian/history/sphinx-copybutton.html

although it is non-obvious exactly what version fixed it... or if it was
in some other depndency...

live well,
  vagrant

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to