Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xorg-docs: I/O error : Attempt to load network entity #11

Closed
sjackman opened this issue Mar 20, 2016 · 25 comments
Closed

xorg-docs: I/O error : Attempt to load network entity #11

sjackman opened this issue Mar 20, 2016 · 25 comments
Assignees

Comments

@sjackman
Copy link
Contributor

https://gist.github.com/sjackman/9ddb225ae6eda933a6cb#file-02-make-L14

/gsc/btl/linuxbrew/bin/xsltproc --path "/gsc/btl/linuxbrew/Cellar/xorg-sgml-doctools/1.11/share/sgml/X11" --path "/var/tmp/sjackman/xorg-docs20160319-115225-tk516u/xorg-docs-1.7" --stringparam targets.filename "fonts.pdf.db" --stringparam collect.xref.targets "only" --stringparam olink.base.uri "fonts.pdf" --nonet --xinclude /gsc/btl/linuxbrew/Cellar/xorg-sgml-doctools/1.11/share/sgml/X11/xorg-fo.xsl fonts.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
compilation error: file /gsc/btl/linuxbrew/Cellar/xorg-sgml-doctools/1.11/share/sgml/X11/xorg-fo.xsl line 11 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl
Makefile:529: recipe for target 'fonts.pdf.db' failed
make[2]: *** [fonts.pdf.db] Error 5
@maxim-belkin
Copy link
Owner

Hmm, are you saying that xorg-docs tries to load something from sourceforge.net and that sourceforge may be down and, therefore, the installation fails when it happens? We could host this file as a part of the package and use inreplace to redirect to our location.

I don't have access to my Linux workstation right now (network issues...).

@sjackman
Copy link
Contributor Author

I haven't had a chance to troubleshoot the error. I'm not sure if it's a transient error. It's an unusual error message. I'll try it again tomorrow and see whether it succeeds. You can just ignore it for now. Does brew install xorg-docs work for you?

@sjackman
Copy link
Contributor Author

Still failing for me today.

@maxim-belkin
Copy link
Owner

Just to make sure: what happens when you enter http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl into the url bar of a browser?

@sjackman
Copy link
Contributor Author

That works.

@DoomHammer
Copy link

Had the same problem with docbook.

Does settting XML_CATALOG_FILES=$(brew --prefix)/etc/xml/catalog help in any way?

@sjackman
Copy link
Contributor Author

No.

$ XML_CATALOG_FILES=$(brew --prefix)/etc/xml/catalog brew install xorg-docs
==> Installing xorg-docs from linuxbrew/xorg
==> Downloading http://www.x.org/archive/individual/doc/xorg-docs-1.7.tar.bz2
Already downloaded: /home/sjackman/.cache/Homebrew/xorg-docs-1.7.tar.bz2
==> Downloading https://raw.githubusercontent.com/Linuxbrew/homebrew-xorg/master
Already downloaded: /home/sjackman/.cache/Homebrew/xorg-docs--patch-e3aff4be9c8a992fbcbd73fa9ea6202691dd0647f73d1974ace537f3795ba15f.diff
==> Patching
==> Applying patch_configure.diff
patching file configure
Hunk #1 succeeded at 10645 (offset -8002 lines).
==> ./configure --disable-silent-rules --prefix=/gsc/btl/linuxbrew/Cellar/xorg-d
==> make
Last 15 lines from /home/sjackman/.cache/Homebrew/Logs/xorg-docs/02.make:
/var/tmp/sjackman/xorg-docs20160321-12395-nc0zyb/xorg-docs-1.7/general/fonts/fonts.xml:1950: parser error : Entity 'nbsp' not defined
url="https://datatracker.ietf.org/doc/rfc373/">RFC&nbsp;373</ulink>.
                                                        ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
Document /var/tmp/sjackman/xorg-docs20160321-12395-nc0zyb/xorg-docs-1.7/general/fonts/fonts.xml does not validate
Makefile:523: recipe for target 'fonts.pdf' failed
make[2]: *** [fonts.pdf] Error 13
make[2]: Leaving directory '/var/tmp/sjackman/xorg-docs20160321-12395-nc0zyb/xorg-docs-1.7/general/fonts'
Makefile:418: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/sjackman/xorg-docs20160321-12395-nc0zyb/xorg-docs-1.7/general'
Makefile:361: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

READ THIS: https://github.com/Linuxbrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/linuxbrew/homebrew-xorg/issues

@maxim-belkin
Copy link
Owner

There are two strange things: the first one is the one that you report and the second one is that according to your gist-log the patch for xmlto was applied but it didn't work:

configure: WARNING: xmlto cannot generate text format, this format skipped

Here is a similar report and the solution that worked is here. Can you try that? I think you have to uninstall docbook*, fontconfig and xmlto and then install them again.

@maxim-belkin maxim-belkin self-assigned this Mar 21, 2016
@sjackman
Copy link
Contributor Author

Does the contents of this file mean anything to you?
/gsc/btl/linuxbrew/etc/xml/catalog

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook XML" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegatePublic publicIdStartString="ISO 8879:1986" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegateURI uriStartString="http://www.oasis-open.org/docbook/" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <rewriteSystem systemIdStartString="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" rewritePrefix="/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd"/>
  <rewriteURI uriStartString="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" rewritePrefix="/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook/5.0/docbook/xml/5.0/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook-xsl/1.78.1_1/docbook-xsl/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook-xsl/1.78.1_1/docbook-xsl-ns/catalog.xml"/>
</catalog>

@sjackman
Copy link
Contributor Author

This issue isn't really a priority for me particularly. I'm okay without the docs package. I just wanted to report it here for the record. If you can't reproduce it, tag the issue "unreproducible", and leave it for another day.

@maxim-belkin
Copy link
Owner

The content of my $(brew --prefix)/etc/xml/catalog is below. I wonder why yours is so different? I guess you could try copying mine and replacing [linuxbrew-folder] with the correct path.

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook/5.0/docbook/xml/4.2/catalog.xml"/>
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook/5.0/docbook/xml/4.1.2/catalog.xml"/>
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook/5.0/docbook/xml/4.3/catalog.xml"/>
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook/5.0/docbook/xml/4.4/catalog.xml"/>
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook/5.0/docbook/xml/4.5/catalog.xml"/>
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook/5.0/docbook/xml/5.0/catalog.xml"/>
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook-xsl/1.78.1_1/docbook-xsl/catalog.xml"/>
  <nextCatalog catalog="file://[linuxbrew-folder]/Cellar/docbook-xsl/1.78.1_1/docbook-xsl-ns/catalog.xml"/>
</catalog>

@sjackman
Copy link
Contributor Author

Maybe it has something to do with how files in etc are upgraded? Which formula creates this file? I'll reinstall it. I presume docbook and docbook-xsl?

@maxim-belkin
Copy link
Owner

It looks like docbook creates the xml folder and docbook-xsl updates it.

@sjackman
Copy link
Contributor Author

I'm trying

brew reinstall docbook docbook-xsl
brew install xorg-docs

@sjackman
Copy link
Contributor Author

I did the brew reinstall docbook docbook-xsl, but now that I look at it, I think brew postinstall docbook docbook-xsl would have sufficed.

@sjackman
Copy link
Contributor Author

Here's my new /gsc/btl/linuxbrew/etc/xml/catalog

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook XML" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegatePublic publicIdStartString="ISO 8879:1986" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <delegateURI uriStartString="http://www.oasis-open.org/docbook/" catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
  <rewriteSystem systemIdStartString="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" rewritePrefix="/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd"/>
  <rewriteURI uriStartString="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" rewritePrefix="/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook/5.0/docbook/xml/4.2/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook/5.0/docbook/xml/4.1.2/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook/5.0/docbook/xml/4.3/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook/5.0/docbook/xml/4.4/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook/5.0/docbook/xml/4.5/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook/5.0/docbook/xml/5.0/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook-xsl/1.78.1_1/docbook-xsl/catalog.xml"/>
  <nextCatalog catalog="file:///gsc/btl/linuxbrew/Cellar/docbook-xsl/1.78.1_1/docbook-xsl-ns/catalog.xml"/>
</catalog>

@sjackman
Copy link
Contributor Author

I've run brew reinstall docbook docbook-xsl fontconfig xmlto
The same error occurs.

@rwhogg
Copy link
Contributor

rwhogg commented Jul 26, 2016

I just pushed the bottle for xorg-docs in #94 . @sjackman, does the above error still happen to you? If not, I think we can finally close this issue.

@sjackman
Copy link
Contributor Author

Both pouring the xorg-docs bottle and building from source work for me. Thanks, Bob!

@rwhogg rwhogg closed this as completed Jul 26, 2016
@rwhogg
Copy link
Contributor

rwhogg commented Jul 26, 2016

This issue took a long time to fix, but it exposed a lot of other dependency problems, some here and some upstream in Mac-land. So, all told, we gained a lot from it.

@sjackman
Copy link
Contributor Author

Great! Glad to hear it. I've closed a few issues recently that have taken months to resolve.

@sjackman
Copy link
Contributor Author

Setting the XML_CATALOG_FILES environment variable resolves this issue:

ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"

@sjackman
Copy link
Contributor Author

@maxim-belkin Is there a reason that you've reopened this issue?

@maxim-belkin
Copy link
Owner

Yes, there is (actually, there are a few)... but I'll just bookmark this page instead.... apologies...

@sjackman
Copy link
Contributor Author

No worries. If the issue is stale, it's probably better to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants