Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146756 - media-video/mkvtoolnix-1.7.0: Wrong message reg. gtk USE flag of x11-libs/wxGTK
Summary: media-video/mkvtoolnix-1.7.0: Wrong message reg. gtk USE flag of x11-libs/wxGTK
Status: RESOLVED DUPLICATE of bug 138940
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 14:42 UTC by Alexander Skwar
Modified: 2006-09-07 15:55 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 Alexander Skwar 2006-09-07 14:42:11 UTC
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 Jakub Moc (RETIRED) gentoo-dev 2006-09-07 14:51:19 UTC
Not ebuild fault, wxwidgets eclass spits this out.


*** This bug has been marked as a duplicate of 138940 ***
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2006-09-07 15:06:49 UTC
I went ahead and fixed the ebuild anyway to use built_with_use instead.
Comment 3 Mart Raudsepp gentoo-dev 2006-09-07 15:27:54 UTC
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 Steve Dibb (RETIRED) gentoo-dev 2006-09-07 15:50:24 UTC
All rolled back, thanks leio
Comment 5 Mart Raudsepp gentoo-dev 2006-09-07 15:55:31 UTC
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 ***