Bug 2368987
| Summary: | Epel 10 flavour of rpmlint missing configuration | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Ulrik Haugen <ulrik.haugen> |
| Component: | rpmlint | Assignee: | Miro Hrončok <mhroncok> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel10 | CC: | j, mhroncok, spotrh, twoerner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rpmlint-2.7.0-3.el10_1 rpmlint-2.5.0-11.el10_0 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-06-06 02:15:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This was something I missed when importing the package to EPEL. Fix in https://src.fedoraproject.org/rpms/rpmlint/pull-request/48 And an EPEL PR that syncs to that: https://src.fedoraproject.org/rpms/rpmlint/pull-request/49 Tedhncailly, we should not really update in EPEL 10 but since this never properly worked... When the CI scratchbuild finishes, could you please test? Before:
<mock-chroot> sh-5.2# rpmlint -i rpmlint
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
/usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
checks: 26, packages: 1
rpmlint.noarch: W: python-missing-require pyxdg
rpmlint.noarch: W: python-missing-require rpm
rpmlint.noarch: W: python-missing-require tomli-w
rpmlint.noarch: W: python-missing-require zstandard
rpmlint.noarch: W: python-missing-require pyenchant
rpmlint.noarch: W: python-missing-require file-magic
rpmlint.noarch: W: python-missing-require packaging
rpmlint.noarch: E: no-signature
rpmlint.noarch: W: no-manual-page-for-binary rpmdiff
rpmlint.noarch: W: no-manual-page-for-binary rpmlint
rpmlint.noarch: E: no-group-tag
rpmlint.noarch: W: invalid-license GPL-2.0-or-later
rpmlint.noarch: W: incoherent-version-in-changelog 2.5.0-10 2.5.0-10.el10_0
1 packages and 0 specfiles checked; 2 errors, 11 warnings, 0 filtered, 2 badness; has taken 0.1 s
After:
<mock-chroot> sh-5.2# rpmlint -i rpmlint
============================ rpmlint session starts ============================
rpmlint: 2.7.0
configuration:
/usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
/etc/xdg/rpmlint/fedora-spdx-licenses.toml
/etc/xdg/rpmlint/fedora.toml
/etc/xdg/rpmlint/scoring.toml
/etc/xdg/rpmlint/users-groups.toml
/etc/xdg/rpmlint/warn-on-functions.toml
checks: 31, packages: 1
rpmlint.noarch: W: no-manual-page-for-binary rpmdiff
rpmlint.noarch: W: no-manual-page-for-binary rpmlint
rpmlint.noarch: E: incorrect-fsf-address /usr/lib/python3.12/site-packages/rpmlint-2.7.0.dist-info/COPYING
rpmlint.noarch: E: incorrect-fsf-address /usr/lib/python3.12/site-packages/rpmlint/cli.py
1 packages and 0 specfiles checked; 2 errors, 2 warnings, 3 filtered, 2 badness; has taken 0.1 s
Wow, thank you for your very quick response! I will start trying to test it now. In Sweden thursday and (for some) friday are off this week so if you don't hear from me today i will probably not get back until monday. Current epel 10 rpmlint:
authinvenotryrepo% rpmlint --file .rpmlintrc rpmbuild/*/*/*.rpm rpmbuild/*/*.rpm
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
/usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
rpmlintrc: [PosixPath('.rpmlintrc')]
checks: 26, packages: 3
authinventory.noarch: W: python-missing-require pyyaml
authinventory.noarch: E: no-signature
authinventory-doc.noarch: E: no-signature
authinventory.src: E: no-signature
authinventory.noarch: E: no-packager-tag
authinventory-doc.noarch: E: no-packager-tag
authinventory.src: E: no-packager-tag
authinventory.noarch: E: no-group-tag
authinventory-doc.noarch: E: no-group-tag
authinventory.src: E: no-group-tag
authinventory-doc.noarch: E: no-dependency-on locales-doc
authinventory.spec: W: no-buildroot-tag
authinventory.noarch: W: invalid-license GPL-3.0-or-later
authinventory-doc.noarch: W: invalid-license GPL-3.0-or-later
authinventory.src: W: invalid-license GPL-3.0-or-later
3 packages and 0 specfiles checked; 10 errors, 5 warnings, 17 filtered, 10 badness; has taken 0.4 s
After building from noif in your fork i'm immediately somewhat happier:
# dnf install .../rpmlint-2.7.0-3.el10.noarch.rpm
Updating Subscription Management repositories.
Last metadata expiration check: 0:13:54 ago on Wed May 28 16:31:54 2025.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Upgrading:
rpmlint noarch 2.7.0-3.el10 @commandline 312 k
Installing dependencies:
rpmlint-fedora-license-data noarch 1.57-1.el10_0 epel 37 k
Transaction Summary
================================================================================
Install 1 Package
Upgrade 1 Package
Total size: 349 k
Total download size: 37 k
Downloading Packages:
rpmlint-fedora-license-data-1.57-1.el10_0.noarc 153 kB/s | 37 kB 00:00
--------------------------------------------------------------------------------
Total 150 kB/s | 37 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : rpmlint-2.7.0-3.el10.noarch 1/3
Installing : rpmlint-fedora-license-data-1.57-1.el10_0.noarch 2/3
Cleanup : rpmlint-2.5.0-10.el10_0.noarch 3/3
Running scriptlet: rpmlint-2.5.0-10.el10_0.noarch 3/3
Installed products updated.
Upgraded:
rpmlint-2.7.0-3.el10.noarch
Installed:
rpmlint-fedora-license-data-1.57-1.el10_0.noarch
Complete!
And after testing it very pleased:
authinvenotryrepo% rpmlint --file .rpmlintrc rpmbuild/*/*/*.rpm rpmbuild/*/*.rpm
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
============================ rpmlint session starts ============================
rpmlint: 2.7.0
configuration:
/usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
/etc/xdg/rpmlint/fedora-spdx-licenses.toml
/etc/xdg/rpmlint/fedora.toml
/etc/xdg/rpmlint/scoring.toml
/etc/xdg/rpmlint/users-groups.toml
/etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('.rpmlintrc')]
checks: 31, packages: 3
3 packages and 0 specfiles checked; 0 errors, 0 warnings, 28 filtered, 0 badness; has taken 0.7 s
Cheers!
FEDORA-EPEL-2025-c483a1483c (rpmlint-2.7.0-3.el10_1) has been submitted as an update to Fedora EPEL 10.1. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-c483a1483c FEDORA-EPEL-2025-98cc6708ea (rpmlint-2.5.0-11.el10_0) has been submitted as an update to Fedora EPEL 10.0. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-98cc6708ea FEDORA-EPEL-2025-c483a1483c has been pushed to the Fedora EPEL 10.1 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-c483a1483c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2025-98cc6708ea has been pushed to the Fedora EPEL 10.0 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-98cc6708ea See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Bodhi build downloaded and tested and thumbsup submitted there. Thanks again! (For the el10.1 build.) FEDORA-EPEL-2025-c483a1483c (rpmlint-2.7.0-3.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2025-98cc6708ea (rpmlint-2.5.0-11.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: When linting a package on el10 that i have already built and linted on el9 and fc42 rpmlint reports complain about: E: no-dependency-on locales-doc E: no-group-tag E: no-packager-tag E: no-signature W: invalid-license GPL-3.0-or-later W: no-buildroot-tag W: python-missing-require pyyaml To be more concrete, running rpmlint on rpmlint itself: % rpmlint rpmlint-2.5.0-10.el10_0.noarch.rpm rpmlint-2.5.0-10.el10_0.src.rpm ============================ rpmlint session starts ============================ rpmlint: 2.5.0 configuration: /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml checks: 26, packages: 2 rpmlint.noarch: W: python-missing-require pyxdg rpmlint.noarch: W: python-missing-require rpm rpmlint.noarch: W: python-missing-require tomli-w rpmlint.noarch: W: python-missing-require zstandard rpmlint.noarch: W: python-missing-require pyenchant rpmlint.noarch: W: python-missing-require file-magic rpmlint.noarch: W: python-missing-require packaging rpmlint.noarch: W: no-manual-page-for-binary rpmdiff rpmlint.noarch: W: no-manual-page-for-binary rpmlint rpmlint.noarch: E: no-group-tag rpmlint.src: E: no-group-tag rpmlint.spec: W: no-buildroot-tag rpmlint.noarch: W: invalid-license GPL-2.0-or-later rpmlint.src: W: invalid-license GPL-2.0-or-later rpmlint.noarch: W: incoherent-version-in-changelog 2.5.0-10 2.5.0-10.el10_0 2 packages and 0 specfiles checked; 2 errors, 13 warnings, 0 filtered, 2 badness; has taken 0.6 s Version-Release number of selected component (if applicable): % rpm -q rpmlint rpmlint-2.5.0-10.el10_0.noarch How reproducible: Always. Steps to reproduce: rpmlint *package.rpm* Actual results: Errors and warnings as noted above. Expected results: (Almost) no complaints. no-manual-page-for-binary are legitimate complaints and incoherent-version-in-changelog might be but the others seem to me to be caused by missing configuration. Additional info: The gating in the specfile around copying sources into %{_sysconfdir}/xdg/rpmlint/ seems to me to be to hard. At least the epel10 packaging of rpmlint contains no replacement for /usr/share/rpmlint/config that was present in the rhel9 packaging, perhaps it should not have all the Fedora configuration but the current state seems like some form of accidental omission. The gating around requires rpmlint-fedora-license-data might also be to hard but that at least it's easy to compensate for by installing it explicitly.