Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: dbus-cleanup-sockets.1.xml does not validate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4974
Location: Dark side of the mood

PostPosted: Tue Apr 14, 2015 5:30 pm    Post subject: SOLVED: dbus-cleanup-sockets.1.xml does not validate Reply with quote

Hi all.

I wanted to cross-compile bluez for ARM but I got the following error message:
Code:
make[3]: Entering directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/test/name-test'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/test/name-test'
make[2]: Leaving directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/test'
Making all in doc
make[2]: Entering directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/doc'
/usr/bin/xmlto man dbus-cleanup-sockets.1.xml
xmlto: /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/doc/dbus-cleanup-sockets.1.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd
dbus-cleanup-sockets.1.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
                   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
                                                                            ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Document /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/doc/dbus-cleanup-sockets.1.xml does not validate
Makefile:765: recipe for target 'dbus-cleanup-sockets.1' failed

I tried to fetch http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd and it works. So I hacked xmlto and saw the following:
xmlto man dbus-cleanup-sockets.1.xml:
++ /usr/bin/xmllint --noout --nonet --xinclude --postvalid --noent /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/doc/dbus-cleanup-sockets.1.xml

Then I tried to run xmllint alone and got this:
xmllint --noout --nonet --xinclude --postvalid --noent dbus-cleanup-sockets.1.xml:
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd
/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-apps/dbus-1.8.16/work/dbus-1.8.16-.arm/doc/dbus-cleanup-sockets.1.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
                   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
                                                                            ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Document dbus-cleanup-sockets.1.xml does not validate

But
wget http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd:
<!-- ...................................................................... -->
<!-- DocBook XML DTD V4.4 ................................................. -->
<!-- File docbookx.dtd .................................................... -->

<!-- Copyright 1992-2004 HaL Computer Systems, Inc.,
     O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
     Corporation, Norman Walsh, Sun Microsystems, Inc., and the
     Organization for the Advancement of Structured Information
     Standards (OASIS).

     See also http://docbook.org/specs/

     $Id: docbookx.dtd,v 1.31 2005/01/27 13:52:36 nwalsh Exp $

     Permission to use, copy, modify and distribute the DocBook XML DTD
     and its accompanying documentation for any purpose and without fee
     is hereby granted in perpetuity, provided that the above copyright
     notice and this paragraph appear in all copies.  The copyright
     holders make no representation about the suitability of the DTD for
     any purpose.  It is provided "as is" without expressed or implied
     warranty.

     If you modify the DocBook DTD in any way, except for declaring and
     referencing additional sets of general entities and declaring
     additional notations, label your DTD as a variant of DocBook.  See
     the maintenance documentation for more information.

     Please direct all questions, bug reports, or suggestions for
     changes to the docbook@lists.oasis-open.org mailing list. For more
     information, see http://www.oasis-open.org/docbook/.
--> 
...

What does that thing fail to load? Can anyone shed some light on this?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Wed Apr 15, 2015 2:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4974
Location: Dark side of the mood

PostPosted: Wed Apr 15, 2015 2:00 pm    Post subject: Reply with quote

Explanation

No network access is permitted during installation. Documentation is XML-based and requires validation. If no XML validation schema is found locally then the validation process tries to fetch it from the internet, which fails due to option --nonet.

The solution, as found in the German forum (post 7633658) was to
Code:
emerge -a1 docbook-xml-dtd:4.4

Now dbus is emerged without error.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum