tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc patches for Darwin 17.3.0



> On Mar 29, 2018, at 1:38 PM, Joerg Sonnenberger <joerg%bec.de@localhost> wrote:
> 
> On Thu, Mar 29, 2018 at 01:08:08PM -0600, Brook Milligan wrote:
>> Good question.  Judging from the error message that I quoted in the earlier email, it is using xlstproc from pkgsrc.  Here it is again:
>> 
>> /Users/brook/pkg-current/bin/xsltproc -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl polkit-auth.xml
>> I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> 
> What's the content of
> /Users/brook/pkg-current/share/xsl/docbook/catalog.xml? It should
> contain:
> 
>  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/"; rewritePrefix="./"/>

As far as I can tell, catalog.xml looks ok.  Here are the complete contents:

<?xml version="1.0" encoding="utf-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <!-- XML Catalog file for DocBook XSL Stylesheets vsnapshot_9899 -->
  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/"; rewritePrefix="./"/>
  <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/current/"; rewritePrefix="./"/>
  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/snapshot_9899/"; rewritePrefix="./"/>
  <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/snapshot_9899/"; rewritePrefix="./"/>
</catalog>

For completeness, here are the contents of pkg-current/share/xml/catalog, which seems to be read (see below):

<?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";>

<!-- Created by XML Catalog Manager 2.2 -->
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2"; rewritePrefix="/Users/brook/pkg-current/share/xml/docbook/4.2" />
<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.3"; rewritePrefix="/Users/brook/pkg-current/share/xml/docbook/4.3" />
<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.4"; rewritePrefix="/Users/brook/pkg-current/share/xml/docbook/4.4" />
<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.5"; rewritePrefix="/Users/brook/pkg-current/share/xml/docbook/4.5" />
<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1.2"; rewritePrefix="/Users/brook/pkg-current/share/xml/docbook/4.2" />
<nextCatalog catalog="/Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog" />
<nextCatalog catalog="/Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.3/catalog" />
<nextCatalog catalog="/Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.4/catalog" />
<nextCatalog catalog="/Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.5/catalog" />
<nextCatalog catalog="/Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog-4.1.2" />
<nextCatalog catalog="/Users/brook/pkg-current/Users/brook/pkg-current/share/xsl/docbook/catalog.xml" />
</catalog>

> Also: /Users/brook/pkg-current is an absolute path, no symlinks
> involved?

The path is just absolute directories, no links.

> Finally: can you trace the execution of the above program by hand in
> doc/man and check if the catalog is actually read?

I'm not exactly sure what you mean by "trace the execution", but I have run xsltproc with XML_DEBUG_CATALOG=1.  The output follows and indicates that it cannot parse any of the catalog files referred to in pkg-current/share/xml/catalog, all of which exist and are readable.

Suggestions?  Thanks for your help.

Cheers,
Brook

env XML_DEBUG_CATALOG=1 /Users/brook/pkg-current/bin/xsltproc -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl polkit-auth.xml
Resolve: sysID http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
-1701244096 Parsing catalog file:///Users/brook/pkg-current/etc/xml/catalog
file:///Users/brook/pkg-current/etc/xml/catalog added to file hash
file:///Users/brook/pkg-current/share/xml/catalog not found in file hash
-1701244096 Parsing catalog file:///Users/brook/pkg-current/share/xml/catalog
file:///Users/brook/pkg-current/share/xml/catalog added to file hash
file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog not found in file hash
Failed to parse catalog file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog
file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.3/catalog not found in file hash
Failed to parse catalog file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.3/catalog
file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.4/catalog not found in file hash
Failed to parse catalog file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.4/catalog
file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.5/catalog not found in file hash
Failed to parse catalog file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.5/catalog
file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog-4.1.2 not found in file hash
Failed to parse catalog file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog-4.1.2
file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xsl/docbook/catalog.xml not found in file hash
Failed to parse catalog file:///Users/brook/pkg-current/Users/brook/pkg-current/share/xsl/docbook/catalog.xml
Resolve URI http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl";
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
Catalogs cleanup
Free catalog entry http://www.oasis-open.org/docbook/xml/4.2
Free catalog entry http://www.oasis-open.org/docbook/xml/4.3
Free catalog entry http://www.oasis-open.org/docbook/xml/4.4
Free catalog entry http://www.oasis-open.org/docbook/xml/4.5
Free catalog entry http://www.oasis-open.org/docbook/xml/4.1.2
Free catalog entry /Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog
Free catalog entry /Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.3/catalog
Free catalog entry /Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.4/catalog
Free catalog entry /Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.5/catalog
Free catalog entry /Users/brook/pkg-current/Users/brook/pkg-current/share/xml/docbook/4.2/catalog-4.1.2
Free catalog entry /Users/brook/pkg-current/Users/brook/pkg-current/share/xsl/docbook/catalog.xml
Free catalog entry file:///Users/brook/pkg-current/share/xml/catalog
Free catalog entry /Users/brook/pkg-current/share/xml/catalog
Free catalog entry file:///Users/brook/pkg-current/etc/xml/catalog
Free catalog entry




Home | Main Index | Thread Index | Old Index