Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327795 - dev-python/wxpython-2.6.4.0-r2 and 2.8.10.1 missing wxGTK[X] dependency
Summary: dev-python/wxpython-2.6.4.0-r2 and 2.8.10.1 missing wxGTK[X] dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-11 13:46 UTC by Arttu Valo
Modified: 2010-07-27 03:12 UTC (History)
2 users (show)

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 Arttu Valo 2010-07-11 13:46:12 UTC
Shouldn't portage figure out following dependency error situation on its own already before it hits this other check?

>>> Emerging (1 of 2) dev-python/wxpython-2.6.4.0-r2
 * wxPython-src-2.6.4.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                         [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                  [ ok ]
 * CPV:  dev-python/wxpython-2.6.4.0-r2
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib opengl unicode userland_GNU
>>> Unpacking source...
>>> Unpacking wxPython-src-2.6.4.0.tar.bz2 to /var/tmp/portage/dev-python/wxpython-2.6.4.0-r2/work
>>> Source unpacked in /var/tmp/portage/dev-python/wxpython-2.6.4.0-r2/work
>>> Preparing source in /var/tmp/portage/dev-python/wxpython-2.6.4.0-r2/work/wxPython-src-2.6.4.0/wxPython ...
 * Applying scripts-multiver-2.6.1.0.diff ...                                                                                                                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/wxpython-2.6.4.0-r2/work/wxPython-src-2.6.4.0/wxPython ...
 * Checking wxGTK-2.6 for X support ...                                                                                                                                  [ !! ]

 * check_wxuse - You have requested functionality that requires X support to
 * have been built into x11-libs/wxGTK.
 * 
 * Please re-merge =x11-libs/wxGTK-2.6* with the X USE flag enabled.
 * ERROR: dev-python/wxpython-2.6.4.0-r2 failed:
 *   Missing USE flags.

Now, if we change the dependency

>=x11-libs/wxGTK-${PV}:2.6[opengl?]

into

>=x11-libs/wxGTK-${PV}:2.6[X,opengl?]

portage is smart enough to figure that out before it bangs its head against that (pre-USE-deps era?) check while emerging stuff. And while we're at it, at least 2.8.10.1 from 2.8 series suffers from the same issue. I didn't try with the latest ~arch one.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-07-12 23:14:27 UTC
Can you please paste an emerge -pv wxpython output?
Comment 2 Arttu Valo 2010-07-26 09:10:01 UTC
Sorry for the slow response. The USE flags for the problem situation were following:

[ebuild  N    ] x11-libs/wxGTK-2.6.4.0-r6  USE="odbc opengl unicode -X -debug -doc -gnome -pch -sdl" 18,617 kB
[ebuild  N    ] x11-libs/wxGTK-2.8.10.1-r5  USE="gstreamer odbc opengl -X -debug -doc -gnome -pch -sdl" 29,074 kB

I think it was about the stupid combination of USE="-X opengl", which I sorted out later by simply disabling also the opengl flag.

I'm closing this as INVALID. There is an inconvenient situation, but I don't think it is fixable with current USE flag and dependency system. I don't know of any way to say that these two USE flags must be enabled in tandem (short of the "depending on itself"-trick mentioned on the dev list the other day, but it is such a hack that it will likely backfire badly).
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2010-07-26 13:24:51 UTC
I'm pretty sure wxpython does require wxGTK built with X, so this is valid.
Comment 4 Arttu Valo 2010-07-26 13:47:45 UTC
Since this got reopened I'm fixing my mistake in comment #2. I just realized that I only copy-pasted the wxGTK flags, not the actual wxpython flags asked for in comment #1:

[ebuild   R   ] dev-python/wxpython-2.6.4.0-r2  USE="opengl unicode" 0 kB
[ebuild  NS   ] dev-python/wxpython-2.8.10.1 [2.6.4.0-r2] USE="opengl -cairo -doc -examples" 0 kB
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2010-07-27 00:30:42 UTC
it looks like i already fixed this in 2.8.11.0, i just forgot the stable versions.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2010-07-27 03:12:37 UTC
Fixed.