Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415631 - =media-sound/ario-1.5.1[python] failes to build w/ python3 as default
Summary: =media-sound/ario-1.5.1[python] failes to build w/ python3 as default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 415635
  Show dependency tree
 
Reported: 2012-05-12 21:44 UTC by Michael Weber (RETIRED)
Modified: 2012-05-27 16:55 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 2012-05-12 21:44:31 UTC
This is just a reminder,

current stage3 tarballs ship python3 as default interpreter and I saw this package failing on a system rebuild.

Build logs follow.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2012-05-15 07:31:57 UTC
the call to AM_PATH_PYTHON([2.7]) in configure.ac reports the newest python version, ignoring slots etc. 

But configure accepts an hint to the python interpreter, so this works over here:

--- ario-1.5.1.ebuild   2012-05-05 10:31:19.000000000 +0200
+++ ario-1.5.1-r1.ebuild        2012-05-15 09:23:49.299446148 +0200
@@ -5,7 +5,7 @@
 EAPI=4
 GNOME2_LA_PUNT=yes
 
-inherit gnome2
+inherit gnome2 python
 
 DESCRIPTION="a GTK2 MPD (Music Player Daemon) client inspired by Rythmbox"
 HOMEPAGE="http://ario-player.sourceforge.net"
@@ -57,5 +57,6 @@
                $(use_enable nls) \
                $(use_enable python) \
                $(use_enable taglib) \
-               $(use_enable zeroconf avahi)
+               $(use_enable zeroconf avahi) \
+               PYTHON=$(PYTHON -2 -a)
 }
Comment 2 Christoph Mende (RETIRED) gentoo-dev 2012-05-27 09:13:16 UTC
shouldn't this be fixed by using python_set_active_version?
Comment 3 Michael Weber (RETIRED) gentoo-dev 2012-05-27 14:49:24 UTC
(In reply to comment #2)
> shouldn't this be fixed by using python_set_active_version?

Holy crap. Didn't expect that to work, too.

Index: ario-1.5.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-sound/ario/ario-1.5.1.ebuild,v
retrieving revision 1.5
diff -u -B -r1.5 ario-1.5.1.ebuild
--- ario-1.5.1.ebuild	21 May 2012 09:51:17 -0000	1.5
+++ ario-1.5.1.ebuild	27 May 2012 14:49:07 -0000
@@ -5,7 +5,7 @@
 EAPI=4
 GNOME2_LA_PUNT=yes
 
-inherit gnome2
+inherit gnome2 python
 
 DESCRIPTION="a GTK2 MPD (Music Player Daemon) client inspired by Rythmbox"
 HOMEPAGE="http://ario-player.sourceforge.net"
@@ -37,6 +37,10 @@
 
 DOCS=( AUTHORS )
 
+pkg_setup() {
+	python_set_active_version 2
+}
+
 src_prepare() {
 	epatch "${FILESDIR}"/${P}-single-includes.patch
 }
Comment 4 Christoph Mende (RETIRED) gentoo-dev 2012-05-27 16:55:50 UTC
fixed then