Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112626 - trying to emerge amule with wxGTK built with USE="-X" fails with an error that is not useful
Summary: trying to emerge amule with wxGTK built with USE="-X" fails with an error tha...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
: 113194 149933 167969 (view as bug list)
Depends on: 178824
Blocks: 106380
  Show dependency tree
 
Reported: 2005-11-15 11:56 UTC by Petteri Räty (RETIRED)
Modified: 2007-10-14 02:54 UTC (History)
6 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 Petteri Räty (RETIRED) gentoo-dev 2005-11-15 11:56:17 UTC
>>> md5 src_uri ;-) aMule-2.0.3.tar.bz2
!!! set-wxconfig: Error:  Can't find normal or debug version:
!!! set-wxconfig:         /usr/lib/wx/config/gtk2-unicode-release-2.6 not found
!!! set-wxconfig:         /usr/lib/wx/config/gtk2-unicode-debug-2.6 not found
!!! You need to emerge wxGTK with unicode in your USE
pena jzlib # emerge -pv wxGTK amule

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-libs/wxGTK-2.6.2  -X -debug -doc -gnome -joystick -odbc
+opengl -sdl +unicode 0 kB
[ebuild  N    ] net-p2p/amule-2.0.3-r4  -amuled -debug +gtk -nls -remote -stats
+unicode 0 kB

Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.0_pre10
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/gconf /etc/init.d
/etc/java-config/vms/ /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/src/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks
fixpackages sandbox sfperms sign strict"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo 
http://lame.lut.fi/linux/gentoo "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="fi"
MAKEOPTS="-j2 -s"
PKGDIR="/home/pkg/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/betelgeuse"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 aac acl acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts
bluetooth browserplugin bzip2 bzlib cdb cddb cdparanoia cdr crypt cups dbus
divx4linux dts dvd dvdr dvdread emboss esd expat fam ffmpeg firefox foomaticdb
freetype gif glut gstreamer gtk2 hal idn java jpeg kde kdeenablefinal lcms
libg++ libwww logitech-mouse mad makecheck mikmod mjpeg mmx mmx2 mng mp3 mpeg
ncurses network nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl pam
pcre pdflib png qt quicktime readline real rtc ruby samba spell sse sse2 ssl
subversion svg symlink tcpd theora tiff truetype truetype-fonts type1-fonts udev
unicode usb userlocales vorbis win32codecs xine xml xml2 xv xvid zlib
video_cards_nvidia linguas_fi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-21 12:21:12 UTC
*** Bug 113194 has been marked as a duplicate of this bug. ***
Comment 2 Karol Wojtaszek (RETIRED) gentoo-dev 2006-01-04 13:42:14 UTC
you mast recompile wxGTK with unicode USE flag enabled and then compile amule.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2006-01-04 13:46:51 UTC
(In reply to comment #2)
> you mast recompile wxGTK with unicode USE flag enabled and then compile amule.
> 

Check the original report:
Calculating dependencies ...done!
[ebuild   R   ] x11-libs/wxGTK-2.6.2  -X -debug -doc -gnome -joystick -odbc
+opengl -sdl +unicode 0 kB
[ebuild  N    ] net-p2p/amule-2.0.3-r4  -amuled -debug +gtk -nls -remote -stats
+unicode 0 kB

I did have wxGTK compiled with unicode on.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-01-15 03:36:45 UTC

*** This bug has been marked as a duplicate of 112073 ***
Comment 5 Rodrigo Severo 2006-09-27 04:03:07 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > you mast recompile wxGTK with unicode USE flag enabled and then compile amule.
> > 
> 
> Check the original report:
> Calculating dependencies ...done!
> [ebuild   R   ] x11-libs/wxGTK-2.6.2  -X -debug -doc -gnome -joystick -odbc
> +opengl -sdl +unicode 0 kB
> [ebuild  N    ] net-p2p/amule-2.0.3-r4  -amuled -debug +gtk -nls -remote -stats
> +unicode 0 kB
> 
> I did have wxGTK compiled with unicode on.

The problem is that you don't have the X USE flag on. So you don't get:

# ls /usr/lib/wx/config/
gtk2-ansi-release-2.6  gtk2-unicode-release-2.6

You only get:

# ls /usr/lib/wx/config/
base-ansi-release-2.6  base-unicode-release-2.6

I am not sure this is really a duplicate of bug #112073 as I believe the solution for this bug is just to change the error message (and the check that triggers it) from:

You need to emerge wxGTK with unicode in your USE

to:

You need to emerge wxGTK with unicode and X in your USE
Comment 6 Mart Raudsepp gentoo-dev 2006-09-27 04:55:28 UTC
It seems like an issue in the eclass that wxwidgets app ebuilds use to select version. Perhaps just wording needs fixing as you propose, or instead of the eclass changes, wxGTK ebuild could assume the need for GUI stuff in the presence of gtk USE flag.
Talking of which, I'm not sure anymore why the X USE flag is needed now that there is only one gtk USE flag.
In the past the X USE flag decided if GUI libs are built or not, and if they are gtk and gtk2 USE flags decided if it's going to use gtk1 and gtk2. Now that there's only one gtk USE flag, gtk2 is always assumed, but X USE flag is still there.
So I need to either remove one of the two USE flags, or fulfill my plans of separating wxBase into an ebuild of its own.
Comment 7 Rodrigo Severo 2006-09-27 06:24:20 UTC
I think my suggestion is simple and could be implemented quickly as a temporary fix.

After you implement any of the definitive solutions (if you decide to) my suggestion would became unnecessary.

I let it to your better judgement.
Comment 8 Mart Raudsepp gentoo-dev 2006-10-03 05:24:49 UTC
*** Bug 149933 has been marked as a duplicate of this bug. ***
Comment 9 Carles Pagès 2006-11-20 16:10:41 UTC
The problem is also that amule looks for different files based on whether the gtk use flag is enabled or not, so you end up with 4 possibilities:
wxGTK(X) + amule(gtk) -> works
wxGTK(-X) + amule(-gtk) -> guess it works but haven't tried
wxGTK(X) + amule(-gtk) -> fails to find base-* files
wxGTK(-X) + amule(gtk) -> fails to find gtk2-* files
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2007-01-26 15:37:04 UTC
Any news on this?

leio, what do you think? I can fix the amule ebuild to reflect that -X and gtk thingies...
Comment 11 Mart Raudsepp gentoo-dev 2007-01-26 17:41:43 UTC
Seems like we need to modify wxwidgets.eclass need-wxwidgets a bit for this combination. I'll have a closer look at the long logic in amule pkg_config too - perhaps it can/should be simpler with further mods to eclass
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-02-22 08:37:19 UTC
*** Bug 167969 has been marked as a duplicate of this bug. ***
Comment 13 Peter `MathFox' Roozemaal 2007-02-22 08:49:08 UTC
Could someone please edit the error message near the end of wxwidgets.eclass as suggested by Rodrigo in comment #5?
Comment 14 Ryan Hill (RETIRED) gentoo-dev 2007-10-14 02:54:36 UTC
fixed by the eclass rewrite.