[MacPorts] #19784: policykit 0.9 fails while making doc
#19784: policykit 0.9 fails while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: policykit -------------------------------+-------------------------------------------- This looks like a bug in the source which could be patched; in the <builddir>/doc/man, lines 556-557 of Makefile.in are: {{{ @MAN_PAGES_ENABLED_TRUE@%.1 %.5 %.8 : %.xml @MAN_PAGES_ENABLED_TRUE@ $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< }}} It's the `-nonet` option that's killing things; not only should it be `--nonet` (double-dash), it also seems kinda silly to specify an HTTP URL as the stylesheet, then tell xsltproc "oh, and don't use the internet to fetch that, now, got it?" I just removed the '-nonet' from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/work/PolicyKit-0.9/doc/man/Makefile and everything went peachy. -- Ticket URL: <http://trac.macports.org/ticket/19784> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: policykit 0.9 fails while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: policykit -------------------------------+-------------------------------------------- Comment(by raimue@…): Replying to [ticket:19784 jim@…]:
It's the `-nonet` option that's killing things; not only should it be `--nonet` (double-dash), it also seems kinda silly to specify an HTTP URL as the stylesheet, then tell xsltproc "oh, and don't use the internet to fetch that, now, got it?"
It will use a local version if found in the catalog file even though you specify an URL. Entries in the catalog file are referenced by an URL, that is why it is using an URL here. Often the stylesheet is not even available at that URL. As far as I know, this is the recommended way to do it. The `--nonet` switch avoids downloading the stylesheet, but use the local copy instead. It would be wrong to require web access during build. Did you experience a build error? There might be a problem with your xml catalog file. -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: policykit 0.9 fails while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: policykit -------------------------------+-------------------------------------------- Comment(by jim@…): I did experience a build error. It looked like: {{{
sudo port install policykit ---> Building policykit Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/work/PolicyKit-0.9" && make all " returned error 2 Command output: make all-recursive Making all in data make[2]: Nothing to be done for `all'. Making all in src Making all in kit make[3]: Nothing to be done for `all'. Making all in polkit make[3]: Nothing to be done for `all'. Making all in polkit-dbus make[3]: Nothing to be done for `all'. Making all in polkit-grant make[3]: Nothing to be done for `all'. make[3]: Nothing to be done for `all-am'. Making all in polkitd make all-am make[3]: Nothing to be done for `all-am'. Making all in doc Making all in man /opt/local/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 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 make[3]: *** [polkit-auth.1] Error 4 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Error: Status 1 encountered during processing. }}} Fetching the file via curl worked, so I patched as attached. If there's a good way to detect/repair the breakage, it'd be nice if we hint it to the user. I'll attach my /opt/local/etc/xml/catalog for examination. -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: policykit 0.9 fails while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: policykit -------------------------------+-------------------------------------------- Comment(by jmr@…): If you search trac, there are some other tickets where docbook-xsl or docbook-xml doesn't seem to be found in the catalog and something attempts to download it. -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: policykit 0.9 fails while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: policykit -------------------------------+-------------------------------------------- Comment(by raimue@…): `docbook-xsl` is missing from your catalog file. One solution would be to reinstall docbook-xsl. Or you could try to fix it manually: {{{ xmlcatmgr add nextCatalog /opt/local/share/xsl/docbook-xsl/catalog.xml }}} -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: policykit 0.9 fails while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: policykit -------------------------------+-------------------------------------------- Comment(by jim@…): Much better solution. Uninstalling and reinstalling docbook-xsl 1.75.0 (and uninstalling 1.74.0, which was there but deactivated) made it all better. Thanks! -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: policykit 0.9 fails while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: docbook-xsl -------------------------------+-------------------------------------------- Changes (by devans@…): * port: policykit => docbook-xsl -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: missing docbook-xml catalog entry causes policykit 0.9 to fail while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: boeyms@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: docbook-xsl -------------------------------+-------------------------------------------- Changes (by devans@…): * owner: macports-tickets@… => boeyms@… Comment: I note that the post-activate message in docbook-xml advises to manually remove this catalog entry when uninstalling docbook-xml using this command {{{ xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml }}} Is it possible that this is being done inappropriately? That is after install rather than uninstall? Since this seems to be a possible problem upgrading docbook-xml, assigning to that ports maintainer to investigate further. -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: missing docbook-xml catalog entry causes policykit 0.9 to fail while making doc -------------------------------+-------------------------------------------- Reporter: jim@… | Owner: boeyms@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: docbook-xsl -------------------------------+-------------------------------------------- Changes (by devans@…): * cc: devans@… (removed) -- Ticket URL: <http://trac.macports.org/ticket/19784#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19784: missing docbook-xml catalog entry causes policykit 0.9 to fail while making doc --------------------------------+------------------------------------------- Reporter: jim@… | Owner: boeyms@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: duplicate | Keywords: Port: docbook-xsl | --------------------------------+------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => duplicate Comment: Duping to the more general #26151. -- Ticket URL: <https://trac.macports.org/ticket/19784#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts