Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509172 - gnome-base/libglade should REQUIRED_USE for PYTHON_SINGLE_TARGET
Summary: gnome-base/libglade should REQUIRED_USE for PYTHON_SINGLE_TARGET
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-30 12:34 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2014-04-30 14:20 UTC (History)
0 users

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


Attachments
emerge --info =gnome-base/libglade-2.6.4-r1 (einfo,5.32 KB, text/plain)
2014-04-30 12:34 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-04-30 12:34:14 UTC
Created attachment 376072 [details]
emerge --info =gnome-base/libglade-2.6.4-r1

The misconfiguration of portage useflags should trigger during dependency resolution, not during package setup.

I believe using the eclass variable PYTHON_REQUIRED_USE is appropriate here.

--
[ebuild     U  ]   gnome-base/libglade-2.6.4-r1:2.0 [2.6.4:2.0] 
   USE="-doc -static-libs {-test}" 
   PYTHON_SINGLE_TARGET="-pypy% -python2_7%" 
   PYTHON_TARGETS="python2_7%* -pypy%" 0 kB

--
 * Messages for package gnome-base/libglade-2.6.4-r1:

 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
 * 
 * python2_7 pypy
 * ERROR: gnome-base/libglade-2.6.4-r1::gentoo failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET.
 * 
 * Call stack:
 *                  ebuild.sh, line  93:  Called pkg_setup
 *   libglade-2.6.4-r1.ebuild, line  37:  Called python-single-r1_pkg_setup
 *    python-single-r1.eclass, line 261:  Called python_setup
 *    python-single-r1.eclass, line 251:  Called die
 * The specific snippet of code:
 *              die "No supported Python implementation in PYTHON_SINGLE_TARGET."
--
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-04-30 14:20:01 UTC
+  30 Apr 2014; Alexandre Rostovtsev <tetromino@gentoo.org>
+  libglade-2.6.4-r1.ebuild:
+  Add PYTHON_REQUIRED_USE to REQUIRED_USE, bug #509172, thanks to Kent Fredric.