Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589210 - sys-apps/portage-2.3.0 does not build : portage.docbook does not validate
Summary: sys-apps/portage-2.3.0 does not build : portage.docbook does not validate
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, PATCH, REGRESSION
: 594344 (view as bug list)
Depends on:
Blocks: 604854
  Show dependency tree
 
Reported: 2016-07-20 08:33 UTC by Helmut Jarausch
Modified: 2017-02-10 18:49 UTC (History)
4 users (show)

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


Attachments
build log (portage-9999.build,210.68 KB, text/plain)
2016-07-20 08:33 UTC, Helmut Jarausch
Details
Revert URI changes related to docbook schema (0001-doc-Revert-URI-changes-related-to-docbook-schema.patch,1.36 KB, patch)
2016-07-20 16:35 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2016-07-20 08:33:41 UTC
Created attachment 441194 [details]
build log

validity error : Could not load the external subset "https://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Document /var/tmp/portage/sys-apps/portage-9999/work/portage-9999/doc/portage.docbook does not validate
Building docs in xhtml format...
Traceback (most recent call last):
  File "setup.py", line 670, in <module>
    'Topic :: System :: Installation/Setup'
  File "/usr/lib64/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 114, in run
    '-m', 'doc/custom.xsl', f, 'doc/portage.docbook'])
  File "/usr/lib64/python3.5/subprocess.py", line 584, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['xmlto', '-o', 'doc', '-m', 'doc/custom.xsl', 'xhtml', 'doc/portage.docbook']' returned non-zero exit status 13
 * ERROR: sys-apps/portage-9999::gentoo failed (compile phase):
 *   (no error message)
Comment 1 Mike Gilbert gentoo-dev 2016-07-20 14:37:26 UTC
Please try reinstalling app-text/docbook-xml-dtd:4.4.
Comment 2 Helmut Jarausch 2016-07-20 15:07:38 UTC
(In reply to Mike Gilbert from comment #1)
> Please try reinstalling app-text/docbook-xml-dtd:4.4.

Thanks for the hint, but this didn't change anything.
I have versions 4.1.2-r6 4.2-r2 4.3-r1 4.4-r2 4.5-r1
installed here.
Comment 3 Mike Gilbert gentoo-dev 2016-07-20 16:17:32 UTC
Interesting. I can reproduce this with portage-9999. It works fine with portage-2.3.0.
Comment 4 Mike Gilbert gentoo-dev 2016-07-20 16:23:42 UTC
This was obviously an unintentional update in b5365341dad167e314023df95d2c5e0f955962f0.

diff --git a/doc/portage.docbook b/doc/portage.docbook
index 811544f..f7d539a 100644
--- a/doc/portage.docbook
+++ b/doc/portage.docbook
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
-       "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+       "https://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [

        <!ENTITY date SYSTEM "fragment/date">
        <!ENTITY version SYSTEM "fragment/version">

This chunk should be reverted.
Comment 5 Mike Gilbert gentoo-dev 2016-07-20 16:35:15 UTC
Created attachment 441224 [details, diff]
Revert URI changes related to docbook schema

Here's a patch.
Comment 6 Nils Holland 2016-09-19 08:44:41 UTC
sys-apps/portage-2.3.1, which just made it onto my ~x86 system, seems to be affected by this issue as well, i.e. it doesn't yet seem to contain the patch provided as part of this bug.

As a result, my emerge of sys-apps/portage-2.3.1 failed with the exact same error as quoted by Helmut in his original report. Applying the patch provided by Mike fixed the issue and made everything emerge properly.

I'm not entirely sure if I should have opened a new issue for my report regarding sys-apps/portage-2.3.1 - but since it's the same issue that this bug deals with, I thought I'd rather add my report as a comment here.
Comment 8 Mike Gilbert gentoo-dev 2016-09-19 14:02:24 UTC
I applied the patch in the 2.3.1 ebuild.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c16a429662b3ddab73139603798748d43f2068
Comment 9 Mike Gilbert gentoo-dev 2016-09-19 16:22:24 UTC
*** Bug 594344 has been marked as a duplicate of this bug. ***
Comment 10 Zac Medico gentoo-dev 2017-02-10 18:49:20 UTC
Fixed in portage-2.3.3.