Address inconsistently localized entries in objects.inv #10882
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Subject: Address inconsistently localized entries in
objects.inv
by removing translation lazy-loader proxy classFeature or Bugfix
Purpose
Numerous packages within Debian are identified as non-reproducible during parallel builds that are performed side-by-side using builds with English-language and Estonian-language locale configurations (among other environmental differences).
One recurring cause for these appears to be that the
objects.inv
file generated by Sphinx contains some (often only one, or a small number) localized display names for entries.This behaviour appears to be inconsistent as documented in #9778.
Removing the lazy-loader
_TranslationProxy
class mechanism appears to help based on some local testing - although I'm yet to figure out why that is precisely.Detail
diffoscope
link for differences from apython-psutil
package build (at the time-of-writing, this displays an exampleobjects.inv
localization issue) - https://tests.reproducible-builds.org/debian/dbd/unstable/amd64/python-psutil_5.9.2-1.diffoscope.html#python-psutil-doc_-.-.---_all.deb---data.tar.xz---data.tar---.-usr-share-doc-python-psutil-doc-html-objects.invlanguage=et
configured viasphinx/config.py
(perhaps not the correct place...) that the resulting HTML documentation build does continue to be localized as expected (naive regression test)Relates
May resolve #9778.