Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322629 - [gnome-overlay] x11-libs/libwnck-2.30.0[introspection] doesn't compile against python 3
Summary: [gnome-overlay] x11-libs/libwnck-2.30.0[introspection] doesn't compile agains...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 313471
  Show dependency tree
 
Reported: 2010-06-03 16:00 UTC by Michael Weber (RETIRED)
Modified: 2010-06-05 23:47 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 Michael Weber (RETIRED) gentoo-dev 2010-06-03 16:00:04 UTC
This code does not compile with python3.1 enabled as systems default python version. There's a failing pint statement w/o ().

Quick fix, feel free to solve this on a bigger scale.

--- libwnck-2.30.0.ebuild.old	2010-06-03 17:17:51.000000000 +0000
+++ libwnck-2.30.0.ebuild	2010-06-03 17:19:59.000000000 +0000
@@ -2,10 +2,11 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI="2"
+EAPI=2
 GCONF_DEBUG="no"
+PYTHON_DEPEND="2"
 
-inherit autotools gnome2 eutils
+inherit autotools gnome2 eutils python
 
 DESCRIPTION="A window navigation construction kit"
 HOMEPAGE="http://www.gnome.org/"
@@ -16,19 +17,19 @@
 IUSE="doc introspection startup-notification"
 
 RDEPEND=">=x11-libs/gtk+-2.19.7
-	>=dev-libs/glib-2.16.0
+	dev-libs/glib:2
 	x11-libs/libX11
 	x11-libs/libXres
 	x11-libs/libXext
-	startup-notification? ( >=x11-libs/startup-notification-0.4 )
+	startup-notification? ( x11-libs/startup-notification )
 	introspection? ( dev-libs/gobject-introspection )"
 DEPEND="${RDEPEND}
 	sys-devel/gettext
-	>=dev-util/pkgconfig-0.9
-	>=dev-util/intltool-0.40
+	dev-util/pkgconfig
+	dev-util/intltool
 	dev-util/gtk-doc-am
 	gnome-base/gnome-common
-	doc? ( >=dev-util/gtk-doc-1.9 )
+	doc? ( dev-util/gtk-doc )
 	x86-interix? (
 		sys-libs/itx-bind
 	)"
@@ -40,6 +41,7 @@
 		--disable-static
 		$(use_enable startup-notification)
 		$(use_enable introspection)"
+	python_set_active_version 2
 }
 
 src_prepare() {
Comment 1 David Abbott (RETIRED) gentoo-dev 2010-06-05 18:01:42 UTC
Must have been updated, installs fine here;

eselect python list && emerge -pv x11-libs/libwnck
Available Python interpreters:
  [1]   python2.6
  [2]   python3.1 *

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/libwnck-2.30.0  USE="doc startup-notification (-introspection)" 0 kB [1]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/gnome
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-06-05 18:49:24 UTC
David, thanks for the report, you're right with USE -introspection (works here, too). 
I've +introspection which is needed to get gnome-shell > 2.29 working, and reproduced the error. 
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-06-05 23:47:38 UTC
can be resolved by a correct shebang in g-ir-scanner ( http://bugs.gentoo.org/show_bug.cgi?id=312183#c4 ).