Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-27272

Do not allow packages to Provide `python3dist(foo) = 0`

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • CentOS Stream 9
    • python-rpm-generators
    • None
    • None
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_platform_tools
    • 5
    • False
    • Hide

      None

      Show
      None
    • 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

      1. 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.

              python-maint python-maint
              maxgot Maxwell G
              Miro Hrončok Miro Hrončok
              rhel-python-qe bot rhel-python-qe bot
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: