Created attachment 907438 [details] yum output Description of problem: Error in PREIN scriptlet in rpm package xml-common-0.6.3-41.fc21.noarch
[bruno@wolff ~]$ ls -l /etc/xml* total 20 -rw-r--r--. 1 root root 0 Jun 10 18:20 catalog -rw-r--r--. 1 root root 1171 Jan 14 2012 catalog.rpmnew -rw-r--r--. 1 root root 1241 Sep 28 2009 catalog.rpmsave -rw-r--r--. 1 root root 1626 Jun 7 04:52 docbook-simple.xml -rw-r--r--. 1 root root 1105 Jun 7 04:48 docbook-slides.xml -rw-r--r--. 1 root root 1293 Jun 8 06:24 xhtml1-dtds-1.0-20020801.11.xml lrwxrwxrwx. 1 root root 31 Jun 10 04:21 xhtml1-dtds.xml -> xhtml1-dtds-1.0-20020801.11.xml [bruno@wolff ~]$ ls -lc /etc/xml total 20 -rw-r--r--. 1 root root 0 Jun 10 18:20 catalog -rw-r--r--. 1 root root 1171 Jun 10 08:07 catalog.rpmnew -rw-r--r--. 1 root root 1241 Jun 10 08:07 catalog.rpmsave -rw-r--r--. 1 root root 1626 Jun 10 08:07 docbook-simple.xml -rw-r--r--. 1 root root 1105 Jun 10 08:07 docbook-slides.xml -rw-r--r--. 1 root root 1293 Jun 10 08:07 xhtml1-dtds-1.0-20020801.11.xml lrwxrwxrwx. 1 root root 31 Jun 10 04:21 xhtml1-dtds.xml -> xhtml1-dtds-1.0-20020801.11.xml
Moving catalog.rpmnew to catalog and then retrying the update worked.
Strange - /usr/bin/xmlcatalog is from the libxml2 package - moving there to get information what could be the reason for "add command fails". I never saw this kind of failure before - and the sgml-common package is relatively old&stable.
Hum, maybe if /etc/xml/catalog was empty instead of being non-existant then the command to add it would fail because it would first load the catalog (in order to add the corresponding new nodes to the tree) and fail doing this because an empty file is not a well formed XML file. I checked the code quickly and indeed, unless you use the create command xmlcatalog will fail if the target file is inexistant or broken. That sounds relatively normal. Now who created that empty catalog ??? Git blame indicates that xmlcatalog.c was mostly unmodified for the last 10 years, and indeed it's the first time since then I got a bug targetting it. I would rather suspect that the empty catalog was the result of a botched rpm upgrade or something, Daniel
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.