Bug 2368987 - Epel 10 flavour of rpmlint missing configuration
Summary: Epel 10 flavour of rpmlint missing configuration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: rpmlint
Version: epel10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-28 15:44 UTC by Ulrik Haugen
Modified: 2025-06-06 02:31 UTC (History)
4 users (show)

Fixed In Version: rpmlint-2.7.0-3.el10_1 rpmlint-2.5.0-11.el10_0
Clone Of:
Environment:
Last Closed: 2025-06-06 02:15:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources rpmlint pull-request 49 0 None None None 2025-05-28 15:56:19 UTC

Description Ulrik Haugen 2025-05-28 15:44:45 UTC
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.

Comment 1 Miro Hrončok 2025-05-28 15:56:20 UTC
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?

Comment 2 Miro Hrončok 2025-05-28 16:06:29 UTC
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

Comment 3 Ulrik Haugen 2025-05-28 16:29:14 UTC
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.

Comment 4 Ulrik Haugen 2025-05-28 16:51:15 UTC
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!

Comment 5 Fedora Update System 2025-05-28 21:39:08 UTC
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

Comment 6 Fedora Update System 2025-05-28 21:44:39 UTC
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

Comment 7 Fedora Update System 2025-05-29 02:38:43 UTC
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.

Comment 8 Fedora Update System 2025-05-29 02:48:35 UTC
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.

Comment 9 Ulrik Haugen 2025-06-02 12:26:38 UTC
Bodhi build downloaded and tested and thumbsup submitted there. Thanks again!

Comment 10 Ulrik Haugen 2025-06-02 12:27:19 UTC
(For the el10.1 build.)

Comment 11 Fedora Update System 2025-06-06 02:15:54 UTC
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.

Comment 12 Fedora Update System 2025-06-06 02:31:44 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.