Summary: | trying to emerge amule with wxGTK built with USE="-X" fails with an error that is not useful | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
Component: | [OLD] Library | Assignee: | Gentoo wxWidgets project <wxwidgets> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fadamo, juantxorena, mathfox, net-p2p, rodrigo, rose |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 178824 | ||
Bug Blocks: | 106380 |
Description
Petteri Räty (RETIRED)
![]() *** Bug 113194 has been marked as a duplicate of this bug. *** you mast recompile wxGTK with unicode USE flag enabled and then compile amule. (In reply to comment #2) > you mast recompile wxGTK with unicode USE flag enabled and then compile amule. > Check the original report: Calculating dependencies ...done! [ebuild R ] x11-libs/wxGTK-2.6.2 -X -debug -doc -gnome -joystick -odbc +opengl -sdl +unicode 0 kB [ebuild N ] net-p2p/amule-2.0.3-r4 -amuled -debug +gtk -nls -remote -stats +unicode 0 kB I did have wxGTK compiled with unicode on. *** This bug has been marked as a duplicate of 112073 *** (In reply to comment #3) > (In reply to comment #2) > > you mast recompile wxGTK with unicode USE flag enabled and then compile amule. > > > > Check the original report: > Calculating dependencies ...done! > [ebuild R ] x11-libs/wxGTK-2.6.2 -X -debug -doc -gnome -joystick -odbc > +opengl -sdl +unicode 0 kB > [ebuild N ] net-p2p/amule-2.0.3-r4 -amuled -debug +gtk -nls -remote -stats > +unicode 0 kB > > I did have wxGTK compiled with unicode on. The problem is that you don't have the X USE flag on. So you don't get: # ls /usr/lib/wx/config/ gtk2-ansi-release-2.6 gtk2-unicode-release-2.6 You only get: # ls /usr/lib/wx/config/ base-ansi-release-2.6 base-unicode-release-2.6 I am not sure this is really a duplicate of bug #112073 as I believe the solution for this bug is just to change the error message (and the check that triggers it) from: You need to emerge wxGTK with unicode in your USE to: You need to emerge wxGTK with unicode and X in your USE It seems like an issue in the eclass that wxwidgets app ebuilds use to select version. Perhaps just wording needs fixing as you propose, or instead of the eclass changes, wxGTK ebuild could assume the need for GUI stuff in the presence of gtk USE flag. Talking of which, I'm not sure anymore why the X USE flag is needed now that there is only one gtk USE flag. In the past the X USE flag decided if GUI libs are built or not, and if they are gtk and gtk2 USE flags decided if it's going to use gtk1 and gtk2. Now that there's only one gtk USE flag, gtk2 is always assumed, but X USE flag is still there. So I need to either remove one of the two USE flags, or fulfill my plans of separating wxBase into an ebuild of its own. I think my suggestion is simple and could be implemented quickly as a temporary fix. After you implement any of the definitive solutions (if you decide to) my suggestion would became unnecessary. I let it to your better judgement. *** Bug 149933 has been marked as a duplicate of this bug. *** The problem is also that amule looks for different files based on whether the gtk use flag is enabled or not, so you end up with 4 possibilities: wxGTK(X) + amule(gtk) -> works wxGTK(-X) + amule(-gtk) -> guess it works but haven't tried wxGTK(X) + amule(-gtk) -> fails to find base-* files wxGTK(-X) + amule(gtk) -> fails to find gtk2-* files Any news on this? leio, what do you think? I can fix the amule ebuild to reflect that -X and gtk thingies... Seems like we need to modify wxwidgets.eclass need-wxwidgets a bit for this combination. I'll have a closer look at the long logic in amule pkg_config too - perhaps it can/should be simpler with further mods to eclass *** Bug 167969 has been marked as a duplicate of this bug. *** Could someone please edit the error message near the end of wxwidgets.eclass as suggested by Rodrigo in comment #5? fixed by the eclass rewrite. |