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".
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"> [...]
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.
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?
since you're still bootstrapping, this would also do: ls $EPREFIX/usr/share/sgml/docbook/xml-dtd-*/docbookx.dtd
in addition: at what stage is this failing?
(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
(In reply to Fabian Groffen from comment #5) > in addition: at what stage is this failing? stage3. Any additional info needed?
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.
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(+)