Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443858 - dev-python/pywavelets-0.2.2 USE=doc - !!! dohtml: doc/build/html/* does not exist
Summary: dev-python/pywavelets-0.2.2 USE=doc - !!! dohtml: doc/build/html/* does not e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-11-18 23:15 UTC by thrantastic
Modified: 2013-01-16 20:01 UTC (History)
1 user (show)

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


Attachments
pywavelets-0.2.2-r1.ebuild (pywavelets-0.2.2-r1.ebuild,1.36 KB, text/plain)
2012-11-18 23:15 UTC, thrantastic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thrantastic 2012-11-18 23:15:44 UTC
Created attachment 329926 [details]
pywavelets-0.2.2-r1.ebuild

Emerging dev-python/pywavelets-0.2.2 with USE=doc causes the following error:

!!! dohtml: doc/build/html/* does not exist
 * ERROR: dev-python/pywavelets-0.2.2 failed (install phase):
 *   dohtml failed
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pywavelets-0.2.2'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pywavelets-0.2.2'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pywavelets-0.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pywavelets-0.2.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pywavelets-0.2.2/work/PyWavelets-0.2.2'
 * S: '/var/tmp/portage/dev-python/pywavelets-0.2.2/work/PyWavelets-0.2.2'
 * QA Notice: file does not exist:
 * 
 *      dohtml: doc/build/html/* does not exist

I'm not sure how previous version of the package worked, but now the documentation is not getting built before it attempts to install. I've never written an ebuild before, but my attached attempt builds the docs and fixes the problem.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-19 10:39:50 UTC
Comment on attachment 329926 [details]
pywavelets-0.2.2-r1.ebuild

--- pywavelets-0.2.2.ebuild     2012-10-17 16:43:20.063382132 +0200
+++ -   2012-11-19 11:39:42.508154607 +0100
@@ -23,7 +23,8 @@
 
 DEPEND="app-arch/unzip
        dev-python/cython
-       test? ( dev-python/numpy )"
+       test? ( dev-python/numpy )
+       doc? ( dev-python/sphinx )"
 RDEPEND="dev-python/numpy"
 
 S="${WORKDIR}/${MY_P}"
@@ -39,6 +40,15 @@
        python_execute_function testing
 }
 
+src_compile() {
+       distutils_src_compile
+
+       if use doc; then
+               cd doc
+               emake html || die "emake html failed"
+       fi
+}
+
 src_install () {
        distutils_src_install
        use doc && dohtml -r doc/build/html/*
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-11-27 11:32:41 UTC
Jeroen;

yes, exactly.  well, variation on a theme. Fixed in portage
Comment 3 arjan 2013-01-16 19:49:18 UTC
The fix for this bug introduces a new problem with USE=-doc:

 * ERROR: dev-python/pywavelets-0.2.2 failed (compile phase):
 *   emake html failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 3667:  Called die
 * The specific snippet of code:
 *       use doc && emake -C doc html || die "emake html failed"


The following patch fixes it for me:

@@ -42,7 +42,7 @@
 
 src_compile() {
 	distutils_src_compile
-	use doc && emake -C doc html || die "emake html failed"
+	use doc && { emake -C doc html || die "emake html failed"; }
 }

The patch originally proposed by Jeroen Roovers should work as well.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2013-01-16 20:01:42 UTC
> The patch originally proposed by Jeroen Roovers should work as well.

+  16 Jan 2013; Justin Lecher <jlec@gentoo.org> pywavelets-0.2.2.ebuild,
+  metadata.xml:
+  Drop unnecessary die, #443858
+

@Ian

use doc && emake -C doc html || die "emake html failed"

that does not work