Bug 2374310

Summary: Complaints about useless-provides for implicit unversioned/versioned provides of group
Product: [Fedora] Fedora EPEL Reporter: Ulrik Haugen <ulrik.haugen>
Component: rpmlintAssignee: Tom "spot" Callaway <spotrh>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: epel10CC: j, mhroncok, spotrh, twoerner, zbyszek
Target Milestone: ---Flags: mhroncok: needinfo? (zbyszek)
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Ulrik Haugen 2025-06-23 12:49:53 UTC
Description of problem:
From el10 rpmbuild (i think) creates both an unversioned and a versioned provides of group(*groupname*) when creating a group according to this pattern: https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/#_dynamic_allocation (the version appears to be a base64 encoded string of some of the sysusers data).

rpmlint does not approve and complains:

rpmlint gvm-libs.spec rpmbuild/SRPMS/gvm-libs-22.21.0-1liu2.el10.src.rpm rpmbuild/RPMS/x86_64/gvm-libs-*
rpmlint session starts
rpmlint: 2.7.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.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: 6

gvm-libs.x86_64: E: useless-provides group(gvm)
...

Version-Release number of selected component (if applicable):
rpm -q rpmlint
rpmlint-2.7.0-3.el10_1.noarch

How reproducible:
Always

Steps to Reproduce:
1. rpmbuild package using sysusers to provision a group on el10
2. rpmlint the package on el10

Actual results:
Complaints about
"gvm-libs.x86_64: E: useless-provides group(gvm)"

Expected results:
No error about provides that i can't influence (short of ignoring Fedoras advice and devising some n.i.h. way to provision the group). 

Additional info:
Easily worked around with a filter so not particularly severe.

Comment 1 Miro HronĨok 2025-06-23 13:11:24 UTC
We could:

 - stop generating the provides without version (cc @zbyszek.pl )
 - filter the warning in rpmlint upstream
 - filter the warning in rpmlint downstream (see https://src.fedoraproject.org/rpms/rpmlint/blob/rawhide/f/fedora.toml )