<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>146756</bug_id>
          
          <creation_ts>2006-09-07 14:42 0000</creation_ts>
          <short_desc>media-video/mkvtoolnix-1.7.0: Wrong message reg. gtk USE flag of x11-libs/wxGTK</short_desc>
          <delta_ts>2006-09-07 15:55:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Eclasses and Profiles</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>askwar@digitalprojects.com</reporter>
          <assigned_to>bug-wranglers@gentoo.org</assigned_to>
          <cc>leio@gentoo.org</cc>
    
    <cc>media-video@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2006-09-07 14:42:11 0000</bug_when>
            <thetext>When I tried to emerge mkvtoolnix with the following flags:

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

I got the following message:

 * checking mkvtoolnix-1.7.0.tar.bz2 ;-) ...                                                [ ok ]!!! set-wxconfig: Error:  Can&apos;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=&quot;-X -debug -doc gnome -joystick -odbc -opengl -sdl unicode&quot; 0 kB

As you can see, there&apos;s no &quot;gtk2&quot; USE flag in wxGTK (anymore).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-09-07 14:51:19 0000</bug_when>
            <thetext>Not ebuild fault, wxwidgets eclass spits this out.


*** This bug has been marked as a duplicate of 138940 ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beandog@gentoo.org</who>
            <bug_when>2006-09-07 15:06:49 0000</bug_when>
            <thetext>I went ahead and fixed the ebuild anyway to use built_with_use instead.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leio@gentoo.org</who>
            <bug_when>2006-09-07 15:27:54 0000</bug_when>
            <thetext>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&apos;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 &quot;unicode&quot; 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&apos;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).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beandog@gentoo.org</who>
            <bug_when>2006-09-07 15:50:24 0000</bug_when>
            <thetext>All rolled back, thanks leio</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leio@gentoo.org</who>
            <bug_when>2006-09-07 15:55:31 0000</bug_when>
            <thetext>Otherwise it&apos;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 ***</thetext>
          </long_desc>
      
    </bug>

</bugzilla>