Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • X xrstools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ixstools
  • xrstools
  • Issues
  • #2
Closed
Open
Issue created Nov 22, 2021 by Neil Williams@codehelpDeveloper

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

Assignee
Assign to
Time tracking