Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91458 - wxGTK 2.6.0 does not properly build without either gtk2 or wxgtk1 as USE flags
Summary: wxGTK 2.6.0 does not properly build without either gtk2 or wxgtk1 as USE flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 10:17 UTC by Simon Raffeiner
Modified: 2005-05-11 12:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Corrected ebuild with warning messages (wxGTK-2.6.0.ebuild,1.78 KB, text/plain)
2005-05-04 10:34 UTC, Simon Raffeiner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Raffeiner 2005-05-04 10:17:36 UTC
If neither USE="gtk2" nor USE="wxgtk1" is set, the wxGTK 2.6.0 ebuild will not build anything but record itself as installed. There should at least be a warning shown.

Reproducible: Always
Steps to Reproduce:
1. Remove "gtk2" and "wxgtk1" from the USE Flags list
2. emerge =x11-libs/wxGTK-2.6.0 (You may have to unmask it before)
3. The ebuild gets recorded as installed, but 

Actual Results:  
The ebuild didn't compile anything.

Expected Results:  
Compile and install the software package.

ion sturmflut # emerge info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.12-rc2-mm3 x86_64)
=================================================================
System uname: 2.6.12-rc2-mm3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr  6 2005, 20:41:13)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 3dnowext X a52 aac acpi alsa apache2 arts artswrappersuid audiofile
avi bash-completion berkdb bzlib cdparanoia clearcase crypt cups dio dv dvd
dvdread encode faad fame ffmpeg flac flash ftp gd gif gimp gimpprint gnutls
gstreamer idea ieee1394 imap ipv6 jabber java jce jpeg jpeg2k kde kdeenablefinal
lm_sensors logitech-mouse lzo mad matroska mikmod mng monkey mp3 mpeg mpeg4
mysql ncurses net network nls nntp no_wxgtk1 nptl nvidia ogg oggvorbis openexr
opengl pam pda perl php pic png python qemu-fast qt quicktime rar readline real
rtc samba scanner sdl smime sndfile soap softmmu sounds spamassassin speex spell
sql ssl subversion svg sysvipc tcltk tcpd tga theora threads tiff transcode
truetype unicode usb userlocales v4l2 vidix visualization wifi wxwindows xine
xml xml2 xmms xprint xscreensaver xv xvid xvmc zeroconf zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Simon Raffeiner 2005-05-04 10:34:02 UTC
I also just realized that emerge -pvt =x11-libs/wxGTK-2.6.0 shows "unicode" asa an available USE-Flag, but ./configure outputs "Should wxWidgets be compiled in Unicode mode? no" even if USE="unicode" is set. The ebuild doesn't provide any code to handle --enable-unicode.

I tried to provide a corrected ebuild, please fix any remaining bugs in it 'cause I am not an ebuild specialist.
Comment 2 Simon Raffeiner 2005-05-04 10:34:56 UTC
Created attachment 58046 [details]
Corrected ebuild with warning messages
Comment 3 Rob Cakebread (RETIRED) gentoo-dev 2005-05-04 10:52:41 UTC
Thanks Simon. I'll fix it up. When you specify unicode, you will also get a  non-unicode lib (gtk2-ansi) version installed. This is because many apps haven't been ported upstream to work with unicode, so its always a good idea to have a non-unicode version (audacity, bochs etc don't work with unicode). 

If anyone runs into this problem before I get it in cvs today, if you want unicode be sure to add gtk2 to USE also. I'll move the check out of src_unpack to pkg_setup so it catches it before unpacking:

        if  use unicode; then
                ! use gtk2 && die "You must put gtk2 in your USE if you need unicode support"
        fi
        if ! use wxgtk1 && ! use gtk2; then
                die "You must have at least gtk2 or wxgtk1 in your USE"
        fi

Comment 4 Rob Cakebread (RETIRED) gentoo-dev 2005-05-05 15:50:01 UTC
Just a heads up on this: we're about to remove the wxbase ebuild and make wxGTK build wxbase by specifying -gtk -gtk2. So the check for unicode/gtk2 will be fixed in the wxGTK-2.6.0.0-r1 release.
Comment 5 Rob Cakebread (RETIRED) gentoo-dev 2005-05-11 12:25:29 UTC
Thanks Simon, fixed in CVS. wxbase has been removed from portage and you can now install it with USE='-gtk2 -wxgtk1', so that combo is actually valid now, but the unicode without gtk2 is checked for.