-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
CentOS Stream 9
-
None
-
None
-
None
-
rhel-sst-pt-python-ruby-nodejs
-
ssg_platform_tools
-
5
-
False
-
-
None
-
CentOS Stream
-
None
-
None
-
None
-
All
-
None
What were you trying to do that didn't work?
I would like to backport https://src.fedoraproject.org/rpms/python-rpm-generators/pull-request/57 that implements the Prevent-Providing-python3dist(pkg)=0 to python-rpm-generators in EL 9. I propose disabling this by default in EL 9 to preserve backwards compatibility while allowing packagers to set `%_python_dist_allow_version_zero` to `0` in their buildsystem configuration (or individual specfiles) to enable this extra check. I can provide a patch.
Please provide the package NVR for which bug is seen:
python3-rpm-generators-12-9.el9.noarch
Steps to reproduce
- Try to build a broken package with `rpmbuild` that includes Version: 0 in its dist-info metadata.
Expected results
When `%_python_dist_allow_version_zero` is enabled, the pythondist generator should fail the build with an informative message.
Actual results
The package build succeeds, resulting in a broken package.