Remove dependency on "/usr/bin/python3" from Factory packages #484
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are some packages that depends directly on “/usr/bin/python3” and that makes more difficult to update the python in distribution and causes some known problems when that link changes.
This dependency is added by rpm when it detects the shebang
#!/usr/bin/python3in any binary provided by the package.We should replace those shebangs to use the corresponding python during build, calling the
%python3_fix_shebangmacro when it’s needed.Related bug: https://bugzilla.suse.com/show_bug.cgi?id=1212476
List of packages generated from Tumbleweed with
zypper search --requires --match-exact ‘/usr/bin/python3’on 2023/10/04https://en.opensuse.org/openSUSE:Packaging_Python#Dependency_on_/usr/bin/python3
Checklist: ring1
Checklist: ring0
Checklist: ring1 (second part)