Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397427 - sci-geosciences/mapnik-2.0.0 fails to emerge with USE="doc" and Python 3
Summary: sci-geosciences/mapnik-2.0.0 fails to emerge with USE="doc" and Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 17:41 UTC by Chris Mayo
Modified: 2012-05-26 09:44 UTC (History)
1 user (show)

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 Chris Mayo 2012-01-02 17:41:36 UTC
If Python 3 is the default interpreter and USE="doc":


scons: done building targets.
chmod: cannot access `/var/tmp/portage/sci-geosciences/mapnik-2.0.0/image//usr/lib64/python3.2/site-packages/mapnik2/paths.py': No such file or directory
fperms failed
+--------------------------------------------------------------------------
| In mapnik2:
| No documentation available!
|     Error: Import failed:
|            ImportError: No module named mapnik2
|   
  Error: Nothing left to document!
!!! dohtml: docs/api_docs/python/* does not exist
dohtml failed
 * ERROR: sci-geosciences/mapnik-2.0.0 failed (install phase):
 *   API doc install failed
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_install
 *   environment, line 4862:  Called die
 * The specific snippet of code:
 *           dohtml -r docs/api_docs/python/* || die "API doc install failed";
 * 
 * If you need support, post the output of 'emerge --info =sci-geosciences/mapnik-2.0.0',
 * the complete build log and the output of 'emerge -pqv =sci-geosciences/mapnik-2.0.0'.
 * The complete build log is located at '/var/tmp/portage/sci-geosciences/mapnik-2.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/mapnik-2.0.0/temp/environment'.
 * S: '/var/tmp/portage/sci-geosciences/mapnik-2.0.0/work/mapnik-2.0.0'
 * QA Notice: file does not exist:
 * 
 * 	dohtml: docs/api_docs/python/* does not exist



Fixed for me by adding:

pkg_setup() {
	if use python ; then
		python_set_active_version 2
		python_pkg_setup
	fi
}
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2012-05-26 09:44:49 UTC
This is for sure fixed in mapnik 2.0.1