Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 642592

Summary: app-text/docbook-sgml-utils-0.6.14-r1 - jade:/etc/xml/catalog:2:78:E: name expected
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED OBSOLETE    
Severity: normal CC: rickfharris
Priority: Normal Keywords: NeedPatch
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
/var/log/portage/app-text:docbook-sgml-utils-0.6.14-r2:20190904-153041.log

Description Martin von Gagern 2017-12-29 01:35:30 UTC
Created attachment 511920 [details]
build log

SGML_CATALOG_FILES=/etc/sgml/catalog \
SGML_SEARCH_PATH=../..:../../doc:.. \
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml
jade:/etc/xml/catalog:2:78:E: name expected
jade:/etc/xml/catalog:2:18:E: cannot find "PUBLIC"; tried "/etc/xml/PUBLIC", "../../PUBLIC", "../../doc/PUBLIC", "../PUBLIC"

The last two lines are repeated over and over again. /etc/xml/catalog appears to contain entries from e.g. app-text/xhtml1-20020801-r4 and app-text/docbook-xsl-stylesheets-1.79.1-r2. It starts like this:

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

Looks sane enough to me, in terms of xml, but might not be what sgml tools expect here. I have app-text/openjade-1.3.2-r7 on my system. I encountered this during a world re-emerge for the 17.0 profile migration.
Comment 1 Martin von Gagern 2017-12-29 01:40:06 UTC
Workaround: temporarily disabling the line

CATALOG "/etc/xml/catalog"

in /etc/sgml/catalog did make the build succeed for me. Not sure where that line came from, and whether it should be removed permanently. I doubt I added it manually.
Comment 2 Pacho Ramos gentoo-dev 2018-06-20 15:58:35 UTC
*** Bug 648932 has been marked as a duplicate of this bug. ***
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-04 15:28:03 UTC
FWICS docbook-sgml-utils build is broken by most of xml DTDs installed.  However, we can't really remove them because they're needed by other packages.  I'm not even sure if it's a problem with this package or with openjade in general.  In either case, I believe it's time we consider pruning it.

I'm going to start filing bugs for packages that use it unconditionally.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-04 15:33:03 UTC
Created attachment 589040 [details]
/var/log/portage/app-text:docbook-sgml-utils-0.6.14-r2:20190904-153041.log
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-04 16:23:22 UTC
Nevermind, I found a good solution for my problem.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-17 07:14:19 UTC
Feel free to reopen if you happen to hit it again.