Configuration of the installed file locations
In Debian, we have a process to test the build of all packages so that a repeat build produces identical binaries. https://reproducible-builds.org/
xrstools is failing these tests, primarily because the source code uses code like:
os.path.join(os.path.dirname(os.path.abspath(__file__)),
in multiple locations.
I am currently having to patch each of these to refer to a single basepath matching the final installation directory for the package:
/usr/lib/python3/dist-packages/XRStools/resources/
It would be useful if XRSTools could set the expected base path once and then pick up that path each time it needs to set such a path. Then Debian would be able to set an alternative in just one place.
Current patch: https://salsa.debian.org/science-team/xrstools/-/blob/master/debian/patches/reproducible_build.patch
This patch isn't usable upstream directly, however, there are other locations within the codebase where reference is made to __file__
to build paths. It would be useful if all such occurrences used a single configurable base path instead of trying to use __file__
.
See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000326