Bug 146756 - media-video/mkvtoolnix-1.7.0: Wrong message reg. gtk USE flag of x11-libs/wxGTK
Bug#: 146756 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: DUPLICATE Assigned To: bug-wranglers@gentoo.org Reported By: askwar@digitalprojects.com
Component: Eclasses and Profiles
URL: 
Summary: media-video/mkvtoolnix-1.7.0: Wrong message reg. gtk USE flag of x11-libs/wxGTK
Keywords:  
Status Whiteboard: 
Opened: 2006-09-07 14:42 0000
Description:   Opened: 2006-09-07 14:42 0000
When I tried to emerge mkvtoolnix with the following flags:

[ebuild     U ] media-video/mkvtoolnix-1.7.0 [1.6.5] USE="bzip2 -debug% -flac
lzo wxwindows" 0 kB

I got the following message:

 * checking mkvtoolnix-1.7.0.tar.bz2 ;-) ...                                   
            [ ok ]!!! set-wxconfig: Error:  Can't find normal or debug version:
!!! set-wxconfig:         /usr/lib/wx/config/gtk2-ansi-release-2.6 not found
!!! set-wxconfig:         /usr/lib/wx/config/gtk2-ansi-debug-2.6 not found
!!! You need to emerge wxGTK with gtk2 in your USE

I had emerged wxGTK with the following flags:

[ebuild   R   ] x11-libs/wxGTK-2.6.3.2  USE="-X -debug -doc gnome -joystick
-odbc -opengl -sdl unicode" 0 kB

As you can see, there's no "gtk2" USE flag in wxGTK (anymore).

------- Comment #1 From Jakub Moc (RETIRED) 2006-09-07 14:51:19 0000 -------
Not ebuild fault, wxwidgets eclass spits this out.


*** This bug has been marked as a duplicate of 138940 ***

------- Comment #2 From Steve Dibb 2006-09-07 15:06:49 0000 -------
I went ahead and fixed the ebuild anyway to use built_with_use instead.

------- Comment #3 From Mart Raudsepp 2006-09-07 15:27:54 0000 -------
Please revert the changes.
Now it will not work at all on half of the systems.
I will fix the eclass text that it spits out, but otherwise the eclass works
right.

As you changed it to:
a) It will not pick the correct wxGTK SLOT if 2.4 and 2.6 are installed
b) It will likely not find the proper wx-config to get any necessary CXXFLAGS
to pass if the system had at one time both SLOTs installed but now has 2.4
unmerged (there will be only a wx-config-2.6 and no wx-config and eclass
doesn't pass it to that). However, if 2.4 is still installed, it will hit
problem a)

Please see media-video/vlc for an example how to use the eclass properly - see
wxwidgets.eclass for a list of argument that can be passed to need-wxwidgets. I
would prefer if "unicode" is used if that works - I want to get rid of
non-unicode wxGTK in the long run.

The strings are wrong in the eclass, the checks themselves are correct and
working to the best of my knowledge. I will fix the strings soon.


PS: Why is the ebuild stripping --as-needed LDFLAGS? If wxWidgets was built
with --as-needed, you will get --as-needed to LDFLAGS no matter what (wxWidgets
configure doesn't separate user passed LDFLAGS from the necessary ones in the
LDFLAGS wx-config --libs outputs). If this package breaks with --as-needed then
this should be filed and made block bug #129413. If the users whole system is
--as-needed, the filtering will not help anyways - wx-config --libs will give
it to the build anyhow, no matter what the user LDFLAGS are (a bug in wx
upstream I need to tackle).

------- Comment #4 From Steve Dibb 2006-09-07 15:50:24 0000 -------
All rolled back, thanks leio

------- Comment #5 From Mart Raudsepp 2006-09-07 15:55:31 0000 -------
Otherwise it's about me fixing the strings in the eclass. Marking as dup of
138940 again

*** This bug has been marked as a duplicate of 138940 ***