Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87306 - Unable to emerge vlc-0.8.1-r1 when wxwindows is not wanted
Summary: Unable to emerge vlc-0.8.1-r1 when wxwindows is not wanted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 10:05 UTC by Hugues Lismonde
Modified: 2005-03-31 10:38 UTC (History)
0 users

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 Hugues Lismonde 2005-03-30 10:05:12 UTC
When emerging vlc 0.8.1-r1 with these (relevant) USE flags: -gtk2 -wxwindows, it complains about not having wxGTK.

Reproducible: Always
Steps to Reproduce:
1. set USE flags to "-wxwindows -gtk2"
2. emerge =vlc-0.8.1-r1
Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/vlc-0.8.1-r1 to /
>>> md5 src_uri ;-) vlc-0.8.1.tar.bz2
!!! set-wxconfig: Error:  Can't find normal or debug version:
!!! set-wxconfig:         /usr/bin/wxgtk-2.4-config not found
!!! set-wxconfig:         /usr/bin/wxgtkd-2.4-config not found
!!! You need to emerge wxGTK with -no_wxgtk1 in your USE

Expected Results:  
Compile flawlessly without wxwindows

This simple patch allows VLC to compile without wxwindows:

--- vlc-0.8.1-r1.ebuild.old     2005-03-28 05:04:25.000000000 +0200
+++ vlc-0.8.1-r1.ebuild 2005-03-30 19:48:45.000000000 +0200
@@ -62,14 +62,16 @@
 
 pkg_setup() {
        WX_GTK_VER="2.4"
-       if use gtk2; then
-               if use unicode; then
-                       need-wxwidgets unicode || die "You need to install wxGTK with unicode support."
+       if use wxwindows; then
+               if use gtk2; then
+                       if use unicode; then
+                               need-wxwidgets unicode || die "You need to install wxGTK with unicode support."
+                       else
+                               need-wxwidgets gtk2 || die "You need to install wxGTK with gtk2 support."
+                       fi
                else
-                       need-wxwidgets gtk2 || die "You need to install wxGTK with gtk2 support."
+                       need-wxwidgets gtk || die "You need to install wxGTK with gtk support."
                fi
-       else
-               need-wxwidgets gtk || die "You need to install wxGTK with gtk support."
        fi
 }
Comment 1 Chris White (RETIRED) gentoo-dev 2005-03-31 10:38:13 UTC
Ahh, this is already in -r1 and -r2 (upcoming) versions.