Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 848540 - sys-apps/systemd-utils-250.6 compile failed on prefix; missing docbook xml templates?
Summary: sys-apps/systemd-utils-250.6 compile failed on prefix; missing docbook xml te...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-30 20:21 UTC by Lukas Schmelting
Modified: 2022-06-29 14:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log of systemd-utils (build.log,807.68 KB, text/plain)
2022-05-30 20:21 UTC, Lukas Schmelting
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Schmelting 2022-05-30 20:21:37 UTC
Created attachment 781487 [details]
build.log of systemd-utils

I am trying to use Gentoo Prefix on a CentOS server, and am using the "bootstrap-prefix.sh" script. ninja interrupts the build process with a "subcommand failed".
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-30 21:26:12 UTC
FAILED: man/systemd-tmpfiles.8 man/systemd-tmpfiles-clean.service.8 man/systemd-tmpfiles-clean.timer.8 man/systemd-tmpfiles-setup-dev.service.8 man/systemd-tmpfiles-setup.service.8 
/home/prefixuser/gentoo/usr/bin/xsltproc -o man/systemd-tmpfiles.8 --nonet --xinclude --maxdepth 9000 --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam systemd.version 250 --path /home/prefixuser/gentoo/var/tmp/portage/sys-apps/systemd-utils-250.6/work/systemd-stable-250.6-abi_x86_64.amd64/man:/home/prefixuser/gentoo/var/tmp/portage/sys-apps/systemd-utils-250.6/work/systemd-stable-250.6/man ../systemd-stable-250.6/man/custom-man.xsl ../systemd-stable-250.6/man/systemd-tmpfiles.xml
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
../systemd-stable-250.6/man/systemd-tmpfiles.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
                                                           ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
../systemd-stable-250.6/man/standard-options.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
                                                           ^
../systemd-stable-250.6/man/systemd-tmpfiles.xml:219: element include: XInclude error : could not load ../systemd-stable-250.6/man/standard-options.xml, and no fallback was found
../systemd-stable-250.6/man/systemd-tmpfiles.xml:220: element include: XInclude error : could not load ../systemd-stable-250.6/man/standard-options.xml, and no fallback was found
../systemd-stable-250.6/man/systemd-tmpfiles.xml:221: element include: XInclude error : could not load ../systemd-stable-250.6/man/standard-options.xml, and no fallback was found
../systemd-stable-250.6/man/systemd-tmpfiles.xml:222: element include: XInclude error : could not load ../systemd-stable-250.6/man/standard-options.xml, and no fallback was found
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
../systemd-stable-250.6/man/common-variables.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
[...]
Comment 2 Lukas Schmelting 2022-05-31 08:37:03 UTC
Trying to access 
oasis-open.org/docbook/xml/4.5/docbookx.dtd
or
oasis-open.org/docbook/xml/4.2/docbookx.dtd (in build.log)
via Firefox leads to:
```
The connection has timed out

The server at www.oasis-open.org is taking too long to respond.
```

while e.g. the changelog
oasis-open.org/docbook/xml/4.2/README
was accessible at the moment i tried.
Comment 3 Fabian Groffen gentoo-dev 2022-05-31 08:57:25 UTC
It should not rely on network at all, so the most likely case is that it cannot find the local copy of the file.

I'm assuming you have app-text/docbook-xml-dtd-4.2-r3 etc. installed?  Can you quickly check, e.g. `qfile -v docbookx.dtd` to see which versions you have of that dtd?
Comment 4 Fabian Groffen gentoo-dev 2022-05-31 09:09:22 UTC
since you're still bootstrapping, this would also do:

ls $EPREFIX/usr/share/sgml/docbook/xml-dtd-*/docbookx.dtd
Comment 5 Fabian Groffen gentoo-dev 2022-05-31 09:11:42 UTC
in addition: at what stage is this failing?
Comment 6 Lukas Schmelting 2022-05-31 10:31:09 UTC
(In reply to Fabian Groffen from comment #3)
> It should not rely on network at all, so the most likely case is that it
> cannot find the local copy of the file.
> 
> I'm assuming you have app-text/docbook-xml-dtd-4.2-r3 etc. installed?  Can
> you quickly check, e.g. `qfile -v docbookx.dtd` to see which versions you
> have of that dtd?

app-text/docbook-xml-dtd-4.5-r2: /home/prefixuser/gentoo/usr/share/sgml/docbook/xml-dtd-4.5/docbookx.dtd
app-text/docbook-xml-dtd-4.2-r3: /home/prefixuser/gentoo/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd
app-text/docbook-xml-dtd-4.1.2-r7: /home/prefixuser/gentoo/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd
Comment 7 Lukas Schmelting 2022-05-31 10:39:31 UTC
(In reply to Fabian Groffen from comment #5)
> in addition: at what stage is this failing?

stage3. Any additional info needed?
Comment 8 Guilherme Amadio gentoo-dev 2022-06-29 13:37:15 UTC
The real issue seems to be with the installation of docbook-xml-dtd. As the output below shows, build-docbook-catalog is failing on prefix, so the xml catalog at ${EPREFIX}/etc/xml/docbook is almost empty.



>>> Installing (1 of 1) app-text/docbook-xml-dtd-4.5-r2::gentoo
 * checking 35 files for package collisions
>>> Merging app-text/docbook-xml-dtd-4.5-r2 to /
--- /gentoo/usr/
--- /gentoo/usr/share/
--- /gentoo/usr/share/doc/
--- /gentoo/usr/share/doc/docbook-xml-dtd-4.5-r2/
...
... (removed some output here for installed files)
...
--- replaced dir /gentoo/etc
Found DocBook XSL stylesheets (xsl) in /gentoo/usr/share/sgml/docbook/xsl-stylesheets
DocBook XSL stylesheets (xsl-ns) not found
DocBook XSL stylesheets (xsl-saxon) not found
DocBook XSL stylesheets (xsl-xalan) not found
/gentoo/usr/sbin/build-docbook-catalog: line 140: mapfile: -d: invalid option
mapfile: usage: mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
/gentoo/usr/sbin/build-docbook-catalog: line 141: mapfile: -d: invalid option
mapfile: usage: mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
No installed DocBook XML DTDs found
find: ‘xml-simple-dtd-*/’: No such file or directory
 * Updating /gentoo/etc/sgml/catalog ...                                                                                                                [ ok ]
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
Found DocBook XSL stylesheets (xsl) in /gentoo/usr/share/sgml/docbook/xsl-stylesheets
DocBook XSL stylesheets (xsl-ns) not found
DocBook XSL stylesheets (xsl-saxon) not found
DocBook XSL stylesheets (xsl-xalan) not found
/gentoo/usr/sbin/build-docbook-catalog: line 140: mapfile: -d: invalid option
mapfile: usage: mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
/gentoo/usr/sbin/build-docbook-catalog: line 141: mapfile: -d: invalid option
mapfile: usage: mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
No installed DocBook XML DTDs found
find: ‘xml-simple-dtd-*/’: No such file or directory
 * Updating /gentoo/etc/sgml/catalog ...                                                                                                                [ ok ]
>>> app-text/docbook-xml-dtd-4.5-r2 merged.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
Comment 9 Larry the Git Cow gentoo-dev 2022-06-29 14:13:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91d9ac680f3c80df288a607f31c6bd188d501a2c

commit 91d9ac680f3c80df288a607f31c6bd188d501a2c
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2022-06-29 14:08:44 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2022-06-29 14:12:50 +0000

    app-text/build-docbook-catalog: prefix script shebang
    
    Closes: https://bugs.gentoo.org/848540
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 ...ld-docbook-catalog-2.3.ebuild => build-docbook-catalog-2.3-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)