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

xml-commons-resolver: Install license files in the correct directory [rhel-9.6]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.6
    • xml-commons-resolver
    • None
    • xml-commons-resolver-1.2-42.el9
    • No
    • Moderate
    • rhel-base-utils-core
    • ssg_core_services
    • 22
    • 24
    • 2
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      tmt test /javapackages-validator of test plan /plans/javapackages passes

      Show
      tmt test /javapackages-validator of test plan /plans/javapackages passes
    • Pass
    • Enabled
    • Automated
    • All
    • None

      Quoting the javapackages validator failure of the latest build:

      [FAIL] javadocFiles(RpmInfo, Path) [xml-commons-resolver-javadoc-1.2-41.el9.noarch@/usr/share/doc/xml-commons-resolver-javadoc] Javadoc package contains only javadoc content
      Expected: (a string starting with "/usr/share/javadoc/" or a string starting with "/usr/share/licenses/")
       but: was "/usr/share/doc/xml-commons-resolver-javadoc"
      [FAIL] javadocFiles(RpmInfo, Path) [xml-commons-resolver-javadoc-1.2-41.el9.noarch@/usr/share/doc/xml-commons-resolver-javadoc/LICENSE.resolver.txt] Javadoc package contains only javadoc content
      Expected: (a string starting with "/usr/share/javadoc/" or a string starting with "/usr/share/licenses/")
       but: was "/usr/share/doc/xml-commons-resolver-javadoc/LICENSE.resolver.txt"
      [FAIL] javadocFiles(RpmInfo, Path) [xml-commons-resolver-javadoc-1.2-41.el9.noarch@/usr/share/doc/xml-commons-resolver-javadoc/NOTICE-resolver.txt] Javadoc package contains only javadoc content
      Expected: (a string starting with "/usr/share/javadoc/" or a string starting with "/usr/share/licenses/")
       but: was "/usr/share/doc/xml-commons-resolver-javadoc/NOTICE-resolver.txt"
      

      The .spec file installs license files using the %doc macro instead of the %license macro.

      How to fix: Backport changes from the Fedora package.
      For pre-verification, check that /plans/javapackages/javapackages-validator/javadoc test passed.

              mizdebsk@redhat.com Mikolaj Izdebski
              mkoncek Marián Konček
              Mikolaj Izdebski Mikolaj Izdebski
              Jakub Heger Jakub Heger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: