Bug 2132936

Summary: False no-manual-page-for-binary warnings
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: rpmlintAssignee: Todd Zullinger <tmz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: j, spotrh, tmz, twoerner
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpmlint-2.4.0-3.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-11 15:26:07 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:

Description Petr Pisar 2022-10-07 08:45:59 UTC
I noticed that rpmlint-2.4.0-2.fc38.noarch does not associate manual pages with programs and reports a missing manual page:

$ rpm -q -lv -p ../RPMS/noarch/libloc-tools-0.9.15-1.fc38.noarch.rpm 
-rwxr-xr-x    1 root     root                    16977 Oct  7 08:56 /usr/bin/location
-rwxr-xr-x    1 root     root                    49371 Oct  7 08:56 /usr/bin/location-importer
-rw-r--r--    1 root     root                      218 Oct  7 08:56 /usr/lib/systemd/system/location-update.service
-rw-r--r--    1 root     root                      142 Oct  7 08:56 /usr/lib/systemd/system/location-update.timer
-rw-r--r--    1 root     root                     2520 Oct  7 08:56 /usr/share/man/man1/location.1.gz

$ rpmlint ../RPMS/noarch/libloc-tools-0.9.15-1.fc38.noarch.rpm 
======================================== rpmlint session starts =======================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/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: 1

libloc-tools.noarch: W: only-non-binary-in-usr-lib
libloc-tools.noarch: W: no-manual-page-for-binary location
libloc-tools.noarch: W: no-manual-page-for-binary location-importer
========= 1 packages and 0 specfiles checked; 0 errors, 3 warnings, 0 badness; has taken 0.0 s ========

This happens even with in-Fedora pacakges, like shigofumi-0.9-5.fc37.x86_64.rpm. I believe this used to work before.

Comment 1 Todd Zullinger 2022-10-07 15:57:13 UTC
Thanks for the report.  It looks like this broke somewhere between 2.3.0 and 2.4.0.  I'll take a look and see if it's already been reported or fixed upstream.  If not, I'll try to bisect and then send a fix upstream.  Or, railing that, report it.

Comment 2 Todd Zullinger 2022-10-07 17:29:47 UTC
The breakage bisects to upstream 718e1eb9 (extend checks related to manual pages, 2022-08-26).  I've asked in the ticket which led to that commit if anyone sees why it's broken[1].  With luck, the folks involved will be able to fix it quicker than if I have to dig around to debug the code.  I'll give that a few days to see.

[1] https://github.com/rpm-software-management/rpmlint/issues/918

Comment 3 Fedora Update System 2022-10-11 15:02:22 UTC
FEDORA-2022-4bd445e150 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-4bd445e150

Comment 4 Fedora Update System 2022-10-11 15:26:07 UTC
FEDORA-2022-4bd445e150 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.