Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475534 - gnome-extra/nautilus-dropbox-1.6.0 - fails to build when active python version isn't in PYTHON_TARGETS - configure: error: couldn't find pygtk
Summary: gnome-extra/nautilus-dropbox-1.6.0 - fails to build when active python versio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-02 16:06 UTC by Ben Kohler
Modified: 2013-07-03 06:27 UTC (History)
2 users (show)

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


Attachments
patch for nautilus-dropbox-1.6.0.ebuild (nautilus-dropbox_python_single_r1.patch,1.24 KB, patch)
2013-07-02 16:06 UTC, Ben Kohler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2013-07-02 16:06:58 UTC
Created attachment 352460 [details, diff]
patch for nautilus-dropbox-1.6.0.ebuild

The build system of nautlius-dropbox just uses 'python' in several places so it fails when the active python isn't a 2.x with wxgtk and pygobject available.  I talked to some gentoo python dudes and I think this should be converted to python-single-r1 eclass which can force the active version for the whole build process, and convert the shebang to the required minor version.

I've attached a patch which seems to take care of the issue here, but could use some fresh eyes on it.
Comment 1 Ben Kohler gentoo-dev 2013-07-02 16:25:34 UTC
This may be an even better approach, less modifications and allowing 2.6 & 2.7 implementations installed--


--- nautilus-dropbox-1.6.0.ebuild	2013-07-02 11:25:09.878619080 -0500
+++ nautilus-dropbox-1.6.0.ebuild.new	2013-07-02 11:24:41.713787419 -0500
@@ -42,6 +42,7 @@
 	DOC_CONTENTS="Add any users who wish to have access to the dropbox nautilus
 		plugin to the group 'dropbox'. You need to setup a drobox account
 		before using this plugin. Visit ${HOMEPAGE} for more information."
+	python_export_best
 }
 
 src_prepare() {
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2013-07-03 06:27:45 UTC
+  03 Jul 2013; Justin Lecher <jlec@gentoo.org> nautilus-dropbox-1.6.0.ebuild:
+  Fix python version during build to the best supported, #475534
+