Bug 44537

Summary: packaging problem - missing files
Product: [Retired] Red Hat Linux Reporter: Michal Jaegermann <michal>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: alpha   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-14 14:48:28 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 Michal Jaegermann 2001-06-14 00:24:40 UTC
Description of Problem:

There seem to be errors in packaging in that that there are files
which show on rpm listings but 'rpm --verify' does not find them
on a disk and also 'rpm2cpio <package> | cpio -t' does not detect
their presence.

Instances I found are  

  /usr/share/ssl/certs/stunnel.pem    from stunnel-3.13-3
  /var/log/mysqld.log                 from mysql-server-3.23.38-1
  /var/cache/ssl_gcache_data.dir      from mod_ssl-2.8.1-5
  /var/cache/ssl_gcache_data.pag      from mod_ssl-2.8.1-5
  /var/cache/ssl_gcache_data.sem      from mod_ssl-2.8.1-5

At least stunnel.pem is of a non-zero length and ownership and/or
permits is "not usual" in all cases.

   Michal
   michal

Comment 1 Jeff Johnson 2001-06-14 04:31:26 UTC
The stunnel file is marked %config(missingok,noreplace) :

    bash$ rpm -q --qf '[%{filenames} %{fileflags:fflags}\n]' stunnel
    ...
    /usr/share/ssl/certs/stunnel.pem cmng


Comment 2 Michal Jaegermann 2001-06-14 14:35:13 UTC
Does this make it ok that 'rpm2cpio' cannot find it even if it is listed
by 'rpm -qvlp ...'?  In any case 'rpm --verify stunnel' is concerned.

Comment 3 Jeff Johnson 2001-06-14 14:48:22 UTC
I need to check to be certain, but files marked %config(missingok,noreplace)
may very well not be part of a package payload. I'll check by rebuilding with
rpm-3.0.5 ...

Comment 4 Jeff Johnson 2001-06-14 21:36:51 UTC
I'm blind :-(

The stunnel file is marked as follows

	%ghost %config(noreplace,missingok) %{_datadir}/ssl/certs/stunnel.pem

A file marked with %ghost is resident in metadata only, not in the payload, but
will have all the usual file attributes when queried. On --verify, rpm has never
handled %ghost gracefully, will report false positive erros (fixed recently in
rpm-4.0.3)