After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 134231 - Improve registration of the DTD in the XML catalog
Improve registration of the DTD in the XML catalog
Status: RESOLVED DUPLICATE of bug 77833
Product: libglade
Classification: Deprecated
Component: general
CVS HEAD
Other other
: Normal enhancement
: ---
Assigned To: James Henstridge
James Henstridge
Depends on:
Blocks:
 
 
Reported: 2004-02-12 16:03 UTC by Julio Merino
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch to implement --with-catalog (1.79 KB, patch)
2004-02-12 16:04 UTC, Julio Merino
none Details | Review

Description Julio Merino 2004-02-12 16:03:35 UTC
The current build system assumes that the system-wide XML catalog resides 
in /etc/xml/catalog.  This also assumes that the user wants the DTD to be 
registered in it automatically, using the xmlcatalog utility which may be 
missing. 
 
This is broken: 
1) The packaging system (pkgsrc in this case) may opt to place the 
catalog file somewhere else to keep it under its control.  If it does, 
the path will be different and break. 
2) The packaging system (also pkgsrc) may choose to register entries in 
the catalog itself, for the same reason above (keep exact control of what 
has been done).  This will also break because the current build system 
registers the DTD unconditionally. 
3) xmlcatalog may not exist, thus calling it will fail (though I doubt 
this could bring problems given the '-' preceding the call). 
 
What I propose (patch attached) is the addition of a --with-catalog flag 
(or rename it to whatever you prefer) so that the user can specify which 
catalog file to use.  If the option is not given, the default and 
standard /etc/xml/catalog is used.  If it's given, the catalog will be 
the one the user specified.  In both of these cases, the script will 
check for the xmlcatalog utility and use it.  Otherwise, if 
--without-catalog is given, the catalog entry won't be registered and no 
further actions will be taken. 
 
I hope this convinces you that this patch is a Good Thing (TM) to have in 
libglade ;-)
Comment 1 Julio Merino 2004-02-12 16:04:11 UTC
Created attachment 24356 [details] [review]
Patch to implement --with-catalog
Comment 2 Julio Merino 2004-09-02 12:08:09 UTC
Any reason about why this has not been applied yet?  It could have been very
good if the just published 2.4.0 included it....  FWIW, I've just checked and it
still applies correctly to CVS HEAD.
Comment 3 James Henstridge 2004-11-09 07:07:01 UTC
This should now be fixed in CVS.

*** This bug has been marked as a duplicate of 77833 ***