Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32753 - Audacity WORKS with wxGTK compiled against GTK2
Summary: Audacity WORKS with wxGTK compiled against GTK2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 40300 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-04 16:20 UTC by Axel Gneiting
Modified: 2004-09-13 01:09 UTC (History)
5 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 Axel Gneiting 2003-11-04 16:20:52 UTC
There is a check in audacity-1.1.3.ebuild:

        if [ `use gtk2` ]; then
                eerror ""
                eerror "Audacity will not build with wxGTK compiled"
                eerror "against gtk2.  Make sure you have set"
                eerror "-gtk2 in use for this program to compile"
                eerror ""
                die "Make sure -gtk2 is in USE"
        fi

After removing it, it compiled without problems and it's working.

Reproducible: Always
Steps to Reproduce:
1. compiled wxGTK with USE="gtk2"
2. remove check from ebuild
3. emerge audacity-1.1.3.ebuild


Actual Results:  
Audacity works.

Expected Results:  
Audacity refuses to compile.
Comment 1 Bartosch Pixa (RETIRED) gentoo-dev 2003-11-04 20:38:38 UTC
that depends if wxGTK is compiled with or without unicode support, with unicode
emabled audacity WILL break
Comment 2 Axel Gneiting 2003-11-05 05:05:21 UTC
Hm, why don't you check for unicode and gtk2 then?
Comment 3 Bartosch Pixa (RETIRED) gentoo-dev 2003-11-05 11:28:53 UTC
because due to historical reasons there a a lot of ppl out there who dont
have unicode inUSE but still have wxGTK compiled with unicode enabled
Comment 4 Mart Raudsepp gentoo-dev 2003-11-09 07:27:52 UTC
Due we have any universal means of checking with what USE flags a installed
package is compiled? As in usually check the contents of /var/db/pkg/<package>/<app>/USE

In that case we could just replace
if [ `use gtk2` ];
with something similar to
if [ `depend-use wxGTK gtk2` ];

I wonder what happens if I wanted to install audacity when I have compiled
wxGTK with USE="gtk2 unicode". I bet I can't without manual interference
due to the odd if [ `use gtk2` ] workaround.
Comment 5 Stewart (RETIRED) gentoo-dev 2003-11-27 11:27:07 UTC
So is this problem with gtk2, unicode, or unicode+gtk2? If it's centred
around unicode, could we check instead for unicode support? IME, users are
migrating from gtk->gtk2, so to me it makes little sense to make gtk2 inhibit
the use of a (perfectly good) ebuild.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2003-12-11 13:34:29 UTC
unicode is a "sub option" of gtk2. so that means :

if you have wxGTK + gtk2 you can choose the unicode flavour, or non-unicode flavour. if you have wxGTK + gtk1, then unicode has no effect.

so it the audacity ebuild should check unicode rather than gtk2. basically check if 'wx-config --libs' has 'gtk2u'.

Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-07 02:18:21 UTC
*** Bug 40300 has been marked as a duplicate of this bug. ***
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-07 02:28:20 UTC
new 1.1.3 and 1.2.0_pre3 ebuilds are now in portage.  They correctly check for wxGTK compiling without UNICODE rather than relying on the use flag.
Comment 9 Aniruddha Shankar 2004-09-12 20:06:02 UTC
Check out bug # 62002 ... test, if you can.