Bug 193475

Summary: [patch] packaged symbolic link to an unpackaged file
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: docbook-dtdsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dcantrell, h1k6zn2m, redhat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-20 13:53:04 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:
Bug Depends On:    
Bug Blocks: 150225    
Attachments:
Description Flags
Patch for docbook-dtds spec file resolving this bug report none

Description Robert Scheck 2006-05-29 13:06:35 UTC
Description of problem:
> ls -l /etc/sgml/sgml-docbook.cat /etc/sgml/xml-docbook.cat
lrwxrwxrwx 1 root root 27  7. Mar 00:25 /etc/sgml/sgml-docbook.cat -> sgml-
docbook-4.4-1.0-30.cat
lrwxrwxrwx 1 root root 26  7. Mar 00:25 /etc/sgml/xml-docbook.cat -> xml-
docbook-4.4-1.0-30.cat
>

> rpm -qf /etc/sgml/sgml-docbook.cat /etc/sgml/xml-docbook.cat
docbook-dtds-1.0-30.noarch
docbook-dtds-1.0-30.noarch
>

> ls -l /etc/sgml/sgml-docbook-4.4-1.0-30.cat /etc/sgml/xml-docbook-4.4-1.0-30.
cat
-rw-r--r-- 1 root root 124 Mar  7 00:25 /etc/sgml/sgml-docbook-4.4-1.0-30.cat
-rw-r--r-- 1 root root 123 Mar  7 00:25 /etc/sgml/xml-docbook-4.4-1.0-30.cat
>

> rpm -qf /etc/sgml/sgml-docbook-4.4-1.0-30.cat /etc/sgml/xml-docbook-4.4-1.0-
30.cat
file /etc/sgml/sgml-docbook-4.4-1.0-30.cat is not owned by any package
file /etc/sgml/xml-docbook-4.4-1.0-30.cat is not owned by any package
>

Version-Release number of selected component (if applicable):
docbook-dtds-1.0-30

How reproducible:
Everytime, see above.

Actual results:
There are packaged symbolic links in docbook-dts pointing to unpackaged files.

Expected results:
Rest of the files also packaged ;-)

Additional info:
Currently, dangling symbolic links are not detected at runtime by rpm - but the 
next generation of rpm is able to (whenever it reaches Rawhide). Nevertheless, 
all files should be packaged to be sane.

I would suggest to %ghost the files, which are currently unpackaged.

This shouldn't hurt (as far as tested on my devel system here) and maybe, the
rm -f /etc/sgml/{x,sg}ml-docbook-?.?-%{version}-%{release}.cat in %postun could 
also be removed (untested, yet).

Comment 1 Robert Scheck 2006-09-23 17:27:45 UTC
Tim, ping?

Comment 2 Robert Scheck 2006-10-14 10:17:02 UTC
Anybody alive? Can we please %ghost the unpackaged files in /etc/sgml/?

Comment 3 Robert Scheck 2006-10-14 10:36:28 UTC
Created attachment 138498 [details]
Patch for docbook-dtds spec file resolving this bug report

Comment 4 Robert Scheck 2006-12-19 23:05:29 UTC
Common, please :)

Comment 5 Ondrej Vasik 2007-05-21 07:57:46 UTC
*** Bug 130602 has been marked as a duplicate of this bug. ***

Comment 6 Ondrej Vasik 2007-05-21 13:25:17 UTC
*** Bug 59133 has been marked as a duplicate of this bug. ***

Comment 7 Ondrej Vasik 2007-06-20 13:53:04 UTC
Files touched and ghosted, checked Tim Waugh's comment about 
Failed to removed entry from /etc/sgml/sgml-docbook-3.0-1.0-4.cat
during rpm -Fvh ./RPMS/noarch/docbook-dtds-1.0-5.noarch.rpm in #59133, this
thing is ok with this solution, so I think we can use it.

Closing RAWHIDE, fixed in devel branch.