Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310123 - dev-util/gtk-doc-1.13-r2 fails to configure on OS X - needs to be eprefixified
Summary: dev-util/gtk-doc-1.13-r2 fails to configure on OS X - needs to be eprefixified
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 18:44 UTC by Stuart Shelton
Modified: 2010-03-22 19:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2010-03-18 18:44:34 UTC
checking for dblatex... no
checking for fop... no
configure: WARNING: neither dblatex nor fop found, so no pdf output from xml
checking for XML catalog (/etc/xml/catalog)... not found
checking for xmlcatalog... /opt/gentoo/usr/bin/xmlcatalog
checking for DocBook XML DTD V4.3 in XML catalog... not found
configure: error: could not find DocBook XML DTD V4.3 in XML catalog

The problem is that the prefix xmlcatalog binary is being run against a system location: /etc/xml/catalog (which doesn't exist).

$EPREFIX/etc/xml/catalog, however, does.
Comment 1 Stuart Shelton 2010-03-22 17:44:10 UTC
I've just noticed that this is basically Bug 306149 over again, but no-one's noticed that src_configure() is now a separate step, rather than part of src_compile.  This means that by the time G2CONF is set in src_compile, the package has already failed because /etc/xml/catalog isn't valid under prefix.

How about?:

--- gtk-doc-1.13-r2.ebuild
+++ gtk-doc-1.13-r2.ebuild
@@ -55,8 +55,12 @@ src_prepare() {
        epatch "${FILESDIR}/${P}-fixxref-vim-u-NONE.patch"
 }
 
-src_compile() {
+src_configure() {
        G2CONF="--with-xml-catalog=${EPREFIX}/etc/xml/catalog"
+       gnome2_src_configure
+}
+
+src_compile() {
        gnome2_src_compile
 
        use emacs && elisp-compile tools/gtk-doc.el
Comment 2 Fabian Groffen gentoo-dev 2010-03-22 19:03:02 UTC
fixed, thanks