Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523842 - media-gfx/hugin-2014.0.0_rc4 fails with "Build target (python3_3) not in PYTHON_TARGETS" under USE=-python
Summary: media-gfx/hugin-2014.0.0_rc4 fails with "Build target (python3_3) not in PYTH...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-27 08:34 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2014-09-27 11:34 UTC (History)
0 users

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


Attachments
emerge --info hugin (einfo,5.94 KB, text/plain)
2014-09-27 08:34 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
hugin-2014.0.0_rc4.ebuild (hugin-2014.0.0_rc4.ebuild,1.97 KB, text/plain)
2014-09-27 09:21 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-09-27 08:34:40 UTC
Created attachment 385586 [details]
emerge --info hugin

Looking at the source suggests this is an issue with calling:

  python-single-r1_pkg_setup

Regardless of the value of USE=python

My PYTHON_* flags are indeed a bit nonsense, but I'm weeding out some things and this problem should ideally fail at dependency resolution, or not fail at all:

[ebuild   R    ] media-gfx/hugin-2014.0.0_rc4  

USE="-debug -lapack -python -sift" 
LINGUAS="en_GB -cs -da -de -es -eu -fi -fr -hu -it -ja -nl -pl -pt_BR -ro -ru -sk -sv -zh_CN -zh_TW" 
PYTHON_SINGLE_TARGET="python3_3 -python2_7 (-python3_2)" 
PYTHON_TARGETS="-python2_7* (-python3_2) -python3_3*" 0 KiB


Looking at the REQUIRED_USE looks like its doing the right thing:

> /usr/portage/metadata/md5-cache/media-gfx/hugin-2014.0.0_rc4  

REQUIRED_USE=python? ( 
   python_single_target_python2_7? ( python_targets_python2_7 )    
   python_single_target_python3_2? ( python_targets_python3_2 ) 
   python_single_target_python3_3? ( python_targets_python3_3 )
   ^^ ( python_single_target_python2_7 python_single_target_python3_2 python_single_target_python3_3 )
 )

So had USE=python been set, it would have failed correctly.

So it just looks like it needs:

- python-single-r1_pkg_setup
+ use python && python-single-r1_pkg_setup

Applying that made it work for me.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-09-27 08:55:45 UTC
Well, "work". Seems I spoke too soon.

 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 3627:  Called python_optimize
 *   environment, line 3361:  Called die
 * The specific snippet of code:
 *       [[ -n ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).';


Seems to need:

-	python_optimize
+	use python && python_optimize

Too.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-09-27 09:21:19 UTC
Created attachment 385592 [details]
hugin-2014.0.0_rc4.ebuild

Modified ebuild that completed to installation.
Comment 3 Markus Meier gentoo-dev 2014-09-27 11:34:18 UTC
Fixed in cvs, thanks for the report and ebuild!

  27 Sep 2014; Markus Meier <maekke@gentoo.org> hugin-2014.0.0_rc4.ebuild:
  call python eclass functions depending on USE=python, by Kent Fredric in bug
  #523842