Bug 442138
| Summary: | comps.dtd file is missing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Robinson Tiemuqinke <hahaha_30k> | ||||
| Component: | anaconda | Assignee: | Dave Cantrell <dcantrell> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 5.1 | CC: | atodorov, dcantrell, ddumas, jlaska, syeghiay, veillard | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-01-20 21:37:49 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: | |||||||
| Attachments: |
|
||||||
|
Description
Robinson Tiemuqinke
2008-04-11 23:47:35 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. My take is the following: it should be put somewhere on a public web site (www.redhat.com/fedoraproject.org or rpm.org), preferably with a versionned URL. Then it should also be installed on local disks possibly as part of the rpm or yum package, and in the post-install you add it to the XML Catalog (see http://xmlsoft.org/catalog.html for explanations) Then in the comps.xml shipped you keep the SYSTEM identifier as the URL on the public web site but validation will look first in the catalog and avoid the remote lookup. Examples of packages doing exactly this are xhtml1-dtds and docbook-dtds For paths to XML DTDs in the distro and catalogs, this has been discuted as part of the standardization group, /usr/share/xml/comps/1.0/comps.dtd would be just fine, and the mapping could be added directly in /etc/xml/catalog Daniel Seth, I think it would make sense for the yum package to be the one that includes the comps.dtd file and xml catalog entries. Do you agree? comps format is driven from anaconda. Yum just supports what anaconda wants to do with it. It might make more sense for it to be in anaconda. Having anaconda provide comps.dtd in an RPM is probably the easiest way considering comps is a special component in the distribution. You guys just want to remove it from the comps package in dist-cvs and add it to anaconda? We can install it as part of anaconda-runtime. Then we just need to update the comps files to reference the comps.dtd location correctly on the filesystem. Created attachment 317649 [details]
comps DTD
Sounds good. I've moved this bug to the anaconda component and attached the comps.dtd file. Where should this file be installed on the system? Adding exception flag I will get this bug taken care of and add the comps.dtd file if someone can tell me where on the system OK, comps.dtd added to /usr/share/xml/comps/1.0 as comps.dtd. The file is part of the anaconda-runtime package and now anaconda-runtime will depend on xml-common and the libxml2 package (for xmlcatalog).
I do not know where DTD files should live on our http servers, so I'm going to punt that decision to someone else's to do stack. The comps*.xml files I see in the current RHEL 5 trees just reference "comps.dtd" at the top, so I have added this as the %post script for the anaconda-runtime package:
CATALOG=/etc/xml/catalog
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"comps.dtd" \
"/usr/share/xml/comps/1.0/comps.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"comps.dtd" \
"/usr/share/xml/comps/1.0/comps.dtd" $CATALOG
|| :
When/if the comps.dtd file is published on an HTTP site, we change the rewrite rule generation here.
Fixed in anaconda-11.1.2.133-1 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0164.html |