When _root_ rpmbuild adds entries to /etc/xml/config; stuff like:
$ grep frysk /etc/xml/catalog
which tells xmllint to find the specified file locally at that path.
Unfortunatly, it isn't, rpmbuild put the file elsewhere.
When not root, it attempts to do same but, thankfully, fails.
Was this fixed by passing the --without-xml-catalog option
The issue here, in depth, was that glade was being installed within the spec
file on RHEL4. This install, while running on root, was causing a change to be
made to /etc/xml/config to be made. It added an entry (I would not consider that
as trashed, but the sentiment still remains I suppose).
If --without-xml-catalog fixes the issue I will close. However the larger issue
here is installing libs in RHEL4 within the rpmbuild process
(In reply to comment #1)
> Was this fixed by passing the --without-xml-catalog option
Both that, and disabling the xmllint check hid the problem (and stopped the
trashing) but I'm not sure that it is fixed.
Is it possible to verify our files on a RHEL-4 machine with:
- the frysk rpm installed
- no internet access
- no system glade.dtd file
I've a strong hunch that it isn't (I wan't to be proven wrong here :-), and if
it isn't the build will need to be changed so that:
- the xml files are installed into /etc/frysk/xml/catalog
So as to not trash /etc/xml/catalog.
- mod frysk's build so that it checks for xml re-directs in same
That stops the build relying on internet access, and something random pulled in
from the internet; and ensures that frysk is built against the xml file
providing in the rpm.
On FC-5, it definitly isn't possible to build the frysk gui without internet access.
cagney@nettle$ xmlcatalog -noout -v --add rewriteURI
0 Parsing catalog catalog
catalog added to file hash
Adding element rewriteURI to catalog
Free catalog entry http://glade.gnome.org/glade-2.0.dtd
Free catalog entry catalog
Free catalog entry
cagney@nettle$ cat catalog
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
cagney@nettle$ SGML_CATALOG_FILES=catalog xmllint --catalogs --noout --valid
2006-04-24 Andrew Cagney <email@example.com>
* Makefile.rules (glade.catalog): New rule.
(glade.checked): Point SGML_CATALOG_FILES at glade.catalog, add
--nonet and --catalogs parameters.
* acinclude.m4 (lib): Check for XMLLINT.