Skip to content

python3-sepolicy: remove direct_url.json and its RECORD entry

The direct_url.json file contains a reference to the requested origin URL of the installed package, as specified in PEP610[1]. During Debian package builds, the install origin is a temporary directory on the build host's local filesystem (a file:// URI) - ephemeral, different between each build of the package, and a cause of non-reproducibility for package builds.

This fix is modeled on a one-off fix for a different package in #982529. There is also a precedent[2] for dh-python to remove this file automatically, although at the time-of-writing that only applies to Python packages that use the 'flit' framework as their Python buildsystem.

[1] - https://peps.python.org/pep-0610/

[2] - python-team/tools/dh-python@2ef6ff13

Relates-to libselinux!10 (merged)

Closes #1064895.

Edited by James Addison

Merge request reports

Loading