Red Hat Bugzilla – Bug 461206
Wrong filenames in /usr/share/sgml/docbook/xmlcatalog
Last modified: 2008-09-24 11:21:58 EDT
Created attachment 315811 [details]
Updated spec file
Description of problem:
The %post script that updates /usr/share/sgml/docbook/xmlcatalog has the wrong filenames for the iso*.ent entries for versions 4.4 and 4.5. You're specifying "iso-amsa.ent" but the names are like "isoamsa.ent".
I've attached an updated spec that uses perl to parse the catalog files and uses that to update xmlcatalog.
Scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=807697
Also, looks like entries are not getting removed with the -39 version. Haven't tested with -40.
Thank you very much for report and solution. It helps me to build libdbi-drivers-0.8.3-2.fc10 which is currently broken.
Thanks for report and proposed solution and sorry for long response (had some deadlines and things to finish). As opposite side I have request (bz #462997) to remove perl scripts from spec file (to remove perl requirements for docbook-dtds because of FedoraMini). From my point of view perl script is better because of decreased possibility of typos - anyway I tried your changed spec file and it doesn't work on my machine with older perl correctly - catalog registrations were completely broken. I will try to find different solution as I would like to remove the perl dependency from docbook-dtds spec file - if possible.
Fixed package (without perl replacement) built as docbook-dtds-1.0-40.fc10 , will try to remove perl dependency from docbook-dtds somehow because of #462997 , if not possible, will use your perl scripts to prevent similar issues in future. Once more time, thanks. Closing RAWHIDE.
Following things were fixed:
- wrong filenames for xml-dtd-4.4 and xml-dtd-4.5
- /ent/iso-cyr1.ent now correctly registered in xml catalog
(there was /ent/iso-cyrl.ent typo)
- fixed broken unregistration of xml-dtds from catalog
(missing CAT_DIR variable in %preun section)