Bug 745446

Summary: rpmlint-1.2-1.fc15.noarch checks ghost manual pages for encoding
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: rpmlintAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: a.badger, manuel.wolfshant, tcallawa, tmz, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpmlint-1.3-2.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-19 04:29:20 UTC Type: ---
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 2011-10-12 11:42:34 UTC
Run rpmlint of binary package delivering ghost manual pages. Example with `whois' package:

$ rpmlint x86_64/whois-5.0.11-1.fc17.x86_64.rpm 
[...]
whois.x86_64: W: file-not-utf8 /usr/share/man/man1/whois.1.gz
[...]

The ghost file is created with %files line:

%ghost %verify(not md5 size mtime) %{_mandir}/man1/%{name}.1.gz

I think rpmlint should not examine content of ghost files as they do not exist at installation time.

Comment 1 Toshio Ernie Kuratomi 2011-10-12 14:48:06 UTC
The bug report is perhaps technically true but.... What is the purpose of %ghost'ing (and customizing the %verify) for the manpage?  Naively, I'd say that the spec file should be changed in this case.... At the moment, I can't think of any file on /usr that should be %ghost'd.

Comment 2 Petr Pisar 2011-10-12 14:55:47 UTC
The purpose is <https://fedoraproject.org/wiki/Packaging:Alternatives>.

The ghost flag is saved in binary package, so just skipping flagged files should be enough to fix rpmlint. You can practice with live whois package. It's available since F15.

Comment 3 Ville Skyttä 2011-10-12 15:25:39 UTC
Fixed upstream now although this is a rare case (the latter hunk of the patch):
http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1886

Comment 4 Toshio Ernie Kuratomi 2011-10-12 17:38:40 UTC
(In reply to comment #2)
> The purpose is <https://fedoraproject.org/wiki/Packaging:Alternatives>.
> 
> The ghost flag is saved in binary package, so just skipping flagged files
> should be enough to fix rpmlint. You can practice with live whois package. It's
> available since F15.

Okay.  That explains the %ghost.  Isn't the %verify extraneous with %ghost used in this manner?

Comment 5 Fedora Update System 2011-10-12 19:03:55 UTC
rpmlint-1.3-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/rpmlint-1.3-2.fc15

Comment 6 Fedora Update System 2011-10-12 19:04:08 UTC
rpmlint-1.3-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/rpmlint-1.3-2.fc14

Comment 7 Fedora Update System 2011-10-12 19:04:22 UTC
rpmlint-1.3-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/rpmlint-1.3-2.fc16

Comment 8 Petr Pisar 2011-10-13 07:58:55 UTC
The %verify presents to inhibit content checking but to observe mode of the file (e.g. make sure regular user cannot write into a log).

Comment 9 Fedora Update System 2011-10-13 18:10:35 UTC
Package rpmlint-1.3-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpmlint-1.3-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14240
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2011-10-19 04:29:20 UTC
rpmlint-1.3-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2011-10-22 08:22:22 UTC
rpmlint-1.3-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2011-10-22 08:27:55 UTC
rpmlint-1.3-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.