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

request to backport support for the SourceLicense spec file tag to rpm 4.16

    • rpm-4.16.1.3-31.el9
    • None
    • None
    • sst_cs_software_management
    • ssg_core_services
    • 20
    • 22
    • None
    • False
    • Hide

      None

      Show
      None
    • Yes
    • CentOS Stream
    • None
    • Feature
    • Hide
      Feature, enhancement (describe the feature or enhancement from the user’s point of view):
      Reason (why has the feature or enhancement been implemented):
      Result (what is the current user experience):
      Show
      Feature, enhancement (describe the feature or enhancement from the user’s point of view): Reason (why has the feature or enhancement been implemented): Result (what is the current user experience):
    • Proposed
    • All
    • None

      What were you trying to do that didn't work?

      Spec files for Rust packages as generated by rust2rpm are generally supposed to work across all branches of Fedora and EPEL 9. The only exception is that currently the version of RPM in RHEL 9 is too old to support the SourceLicense tag:

      error: line 14: Bad source number: SourceLicense: MIT

      We use the SourceLicense tag in Rust packages (among other cases) when the source package name and the name of the built package are the same, but the license tags needs to be different (i.e. the license of the sources in the SRPM is different from the combined license of statically linked components in the built RPM).

      Please provide the package NVR for which bug is seen:

      rpm-4.16.1.3-27.el9_3.x86_64

      How reproducible:

      Always.

      Steps to reproduce

      1.  Write spec file that uses the SourceLicense tag
      2.  Attempt to build it for RHEL 9 / EPEL 9
      3.  See

      Expected results

      Ideally, the SourceLicense tag would be supported in RHEL 9. However, it was only implemented in RPM 4.18, whereas RHEL 9 is stuck on RPM 4.16. Hence, the request for a backport.

      Actual results

      Spec files need to differ between Fedora and RHEL 9 / EPEL 9, with no way to currently specify different licenses for packages where the name of the source package matches the name of a built package.

            mdomonko@redhat.com Michal Domonkos
            decathorpe_gmail Fabio Valentini (Inactive)
            packaging-team-maint packaging-team-maint
            Tomas Bajer Tomas Bajer
            Mariya Pershina Mariya Pershina
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: