Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674510 - dev-util/gdbus-codegen-2.58.2 dev-util/glib-utils-2.58.2 fail to download docbook.xsl
Summary: dev-util/gdbus-codegen-2.58.2 dev-util/glib-utils-2.58.2 fail to download doc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-01-04 14:14 UTC by Petr Cerny [:hrosik]
Modified: 2019-01-18 21:54 UTC (History)
0 users

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


Attachments
patch for the gdbus-codegen-2.58.2.ebuild ebuild script fixing the issue (gdbus-codegen-2.58.2.ebuild.patch,1.06 KB, patch)
2019-01-04 14:14 UTC, Petr Cerny [:hrosik]
Details | Diff
patch for the glib-utils-2.58.2.ebuild script fixing the issue (glib-utils-2.58.2.ebuild.patch,1.42 KB, patch)
2019-01-04 14:16 UTC, Petr Cerny [:hrosik]
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cerny [:hrosik] 2019-01-04 14:14:53 UTC
Created attachment 559782 [details, diff]
patch for the gdbus-codegen-2.58.2.ebuild ebuild script fixing the issue

dev-util/gdbus-codegen-2.58.2 and dev-util/glib-utils-2.58.2 currently fail to build due to the manpage generation command:

xsltproc \
    --nonet \
    --stringparam man.output.quietly 1 \
    --stringparam funcsynopsis.style ansi \
    --stringparam man.th.extra1.suppress 1 \
    --stringparam man.authors.section.enabled 0 \
    --stringparam man.copyright.section.enabled 0 \
    -o "${2}" \
    http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
    "${1}" || die "manpage generation failed"

which requests the style sheet to be obtained from network while at the same time forbidding network access with the `--nonet` option. (Since it is taken from upstream sources I'm wondering how they are able to build it, but that's only tangential).

I'm attaching patches for both ebuilds, docbook-xsl-stylesheets are already listed as dependencies.
Comment 1 Petr Cerny [:hrosik] 2019-01-04 14:16:06 UTC
Created attachment 559784 [details, diff]
patch for the glib-utils-2.58.2.ebuild script fixing the issue
Comment 2 Necktwi Ozfguah 2019-01-05 10:05:38 UTC
I use FEATURES="noman nodoc noinfo" but still I encounter this.
but it is fixed when I've merged dev-libs/libxslt.
Comment 3 Mart Raudsepp gentoo-dev 2019-01-05 13:24:32 UTC
I assume your patch is reversed?
Anyhow, the ebuild should be correct. This is how it should be working:

xsltproc will consult /etc/xml/ contents for local copies of xsl, dtd and other files. It should find the following entry from /etc/xml/docbook, provided that app-text/docbook-xsl-stylesheets is installed (it's a DEPEND of glib-utils) and the docbook catalog in /etc/xml/docbook is up to date (docbook-xsl-stylesheets calls build-docbook-catalog for that in postinst):

  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current" rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets"/>

This will make it try file:///usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl instead automatically. This, as said, is shipped by app-text/docbook-xsl-stylesheets, which is in DEPEND of glib-utils, and everything should be fine and dandy.

Now I don't know why they aren't for you. Is something wrong with your /etc/xml/docbook?
Comment 4 Mart Raudsepp gentoo-dev 2019-01-18 21:54:25 UTC
As said, to my knowledge everything should be fine as-is and not sure what's wrong with your xml catalog and whatnot. Closing bug for now, feel free to add information and re-open (if you can), if that's appropriate.