Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272063 - sys-apps/portage[doc] fails to build with app-text/xmlto-0.0.22
Summary: sys-apps/portage[doc] fails to build with app-text/xmlto-0.0.22
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All All
: Highest normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 272267 274461 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-01 08:34 UTC by Alexandre Sanches
Modified: 2009-08-03 23:03 UTC (History)
7 users (show)

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


Attachments
What portage tells me when I try to install it (bug,30.89 KB, text/plain)
2009-06-01 08:35 UTC, Alexandre Sanches
Details
xmlto-0.0.22 build.log (live) (build.log,4.50 KB, text/plain)
2009-06-03 00:32 UTC, Jonas Bernoulli
Details
/etc/xml/catalog (live) (catalog,1.59 KB, text/plain)
2009-06-03 00:33 UTC, Jonas Bernoulli
Details
/etc/xml/docbook (live) (docbook,8.47 KB, text/plain)
2009-06-03 00:33 UTC, Jonas Bernoulli
Details
xmlto-0.0.22 build.log (stage3) (build.log,5.45 KB, text/plain)
2009-06-03 00:37 UTC, Jonas Bernoulli
Details
/etc/xml/catalog (stage3) (catalog,236 bytes, text/plain)
2009-06-03 00:39 UTC, Jonas Bernoulli
Details
git-9999 build.log (live) (build.log,29.07 KB, text/plain)
2009-06-03 00:46 UTC, Jonas Bernoulli
Details
No validation with xmlto 0.0.22 until the docbook is fixed. (foo.patch,419 bytes, patch)
2009-06-07 05:23 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Sanches 2009-06-01 08:34:08 UTC
I'll join a copy/paste of my term for details...

xmlto seems to disagree with some docbook file... My xmlto version is 0.0.22 with latex USE flag.

Reproducible: Always




Deactivating doc-epydoc USE flags is a simple workaround (I did not check which one is the source of the bug), so it's not a blocker, but... well, it's an ugly bug for the package manager.
Comment 1 Alexandre Sanches 2009-06-01 08:35:28 UTC
Created attachment 193124 [details]
What portage tells me when I try to install it
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-06-01 10:33:41 UTC
This error doesn't occur with app-text/xmlto-0.0.21...
Comment 3 Alexandre Sanches 2009-06-01 23:13:26 UTC
Well, if it's an xmlto bug, it's not a Portage bug, but it's still a bug anyway, and quite ugly.
To force a versioned dep on =app-text/xmlto-0.0.21 (I locally simply masked 0.0.22) would be ugly, but would fix the problem.
Comment 4 Sebastian Luther (few) 2009-06-02 20:14:29 UTC
*** Bug 272267 has been marked as a duplicate of this bug. ***
Comment 5 Jonas Bernoulli 2009-06-03 00:32:12 UTC
Created attachment 193345 [details]
xmlto-0.0.22 build.log (live)
Comment 6 Jonas Bernoulli 2009-06-03 00:33:20 UTC
Created attachment 193346 [details]
/etc/xml/catalog (live)
Comment 7 Jonas Bernoulli 2009-06-03 00:33:47 UTC
Created attachment 193348 [details]
/etc/xml/docbook (live)
Comment 8 Jonas Bernoulli 2009-06-03 00:37:49 UTC
Created attachment 193349 [details]
xmlto-0.0.22 build.log (stage3)
Comment 9 Jonas Bernoulli 2009-06-03 00:39:07 UTC
Created attachment 193350 [details]
/etc/xml/catalog (stage3)
Comment 10 Jonas Bernoulli 2009-06-03 00:45:32 UTC
I get similar errors when installing other packages including xmlto itself on my live system as well as when creating a stage3 tarball using metro.

My uneducated guess is that something is wrong with build-docbook-catalog. At the time xmlto is emerged (and all of it's dependencies have been merged already) when building the stage3 /etc/xml/docbook is completely missing and /etc/xml/catalog doesn't contain all the entries it should as can be seen above.

I am also unable to emerge git-9999. Probably every package that uses xmlto is affected.
Comment 11 Jonas Bernoulli 2009-06-03 00:46:54 UTC
Created attachment 193352 [details]
git-9999 build.log (live)
Comment 12 Zac Medico gentoo-dev 2009-06-03 02:03:06 UTC
Reassigning to sgml herd as per comment #10.
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-06-07 02:20:32 UTC
Samuli Suominen:
According to ChangeLog, you added xmlto-0.0.22.ebuild to the tree.
(If you can't fix it, please at least restore xmlto-0.0.21.ebuild.)
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 05:21:59 UTC
I'm not an expert with SGML but after Fedora switched to xmlto, the same error occured with their lcdproc pkg,

http://cvs.fedoraproject.org/viewvc/rpms/lcdproc/devel/lcdproc-0.5.2-novalidate.patch?revision=1.1&view=markup
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 05:23:57 UTC
Created attachment 193771 [details, diff]
No validation with xmlto 0.0.22 until the docbook is fixed.

Temp. solution, until we figure out what is wrong with the validation using new xmlto..

Tested, working.
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 05:43:10 UTC
Might want to look at this, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516253

If I read it correct, --noent was added to xmllint options for xmlto so there's something wrong with the docbook, not xmlto

I'm free to be corrected
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 06:05:47 UTC
"xmllint --noout -xinclude --postvalid --noent portage.docbook" by hand in doc/ directory to reproduce..
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 06:28:17 UTC
(Sorry, I keep spamming.)

bzless /usr/share/doc/xmlto-0.0.22/NEWS.bz2

  - xmllint validity check now with noent option(debian
    #516253)

So options:

1) Fix Portage's docs to be valid. (This is the correct option.)
2) Apply the foo.patch attached in this bug. (Documentation will build as before, but there is no validation since the docs are broken.)
3) Revert this one change in xmlto-0.0.22 to way it was in 0.0.21 (This still doesn't make your docs valid.)
4) Add 0.0.21 back in tree and reopen all the ~10 bugs it closed.

I'll try to rewrite the failing parts for the docs, but I can't promise anything since I'm really not an SGML expert or such :-)
Comment 19 Zac Medico gentoo-dev 2009-06-07 07:57:31 UTC
(In reply to comment #15)
> Created an attachment (id=193771) [edit]
> No validation with xmlto 0.0.22 until the docbook is fixed.
> 
> Temp. solution, until we figure out what is wrong with the validation using new
> xmlto..
> 
> Tested, working.
> 

Thanks, I've applied this patch to the ebuild and the docbook is fixed in svn for the next release.
Comment 20 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-21 21:52:22 UTC
*** Bug 274461 has been marked as a duplicate of this bug. ***
Comment 21 Jonas Bernoulli 2009-07-08 19:23:52 UTC
(In reply to comment #16)
> If I read it correct, --noent was added to xmllint options for xmlto so there's
> something wrong with the docbook, not xmlto

It seems we are dealing with two bugs here.
1. What you have mentioned.
2. The problems I experienced when building a stage3.

Well, I have added the noise about 2. and should probably have opened a new bug for that, sorry. Basically some of the involved packages have missing dependencies. I have opened a new bug for that (277092), so you can disregard all my above comments.

Comment 22 Zac Medico gentoo-dev 2009-08-03 23:03:58 UTC
This is fixed in 2.2_rc34.