Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

wx-config symlink with wxGTK 2.4 AND 2.6

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
tempest
n00b
n00b
User avatar
Posts: 44
Joined: Fri Jun 18, 2004 7:56 pm

wx-config symlink with wxGTK 2.4 AND 2.6

  • Quote

Post by tempest » Sun Dec 11, 2005 11:51 pm

This one has been puzzling me today: I had wxGTK 2.4 already installed, and went to install 2.6 too. Once emerged, I discovered that I couldn't compile applications that required the very same wxGTK 2.6 that I had just installed (one of these was the Catapult frontend from http://openmsx.sourceforge.net/, which is not in portage).

After some research, I discovered that the problem was that the symlink wx-config was still pointing to the 2.4 config script, and that the one for 2.6 was called wx-config-2.6. OK, I could change the symlink making it point to wx-config-2.6, but this seemed a bit hackish for me; actually I thought that something was wrong in the ebuilds.

So I downloaded both source tarballs for wxGTK 2.4 and 2.6, and compiled them in order in my home directory, making them "overlap" on purpose. At the end of this process, it turns out that wx-config is pointing to 2.6 script (as I expected).

Unemerging both 2.4 and 2.6 and reemerging only 2.6 makes wx-config pointing to 2.6 script too (obviously, since there is no 2.4 installed).

Could this be a bug in the ebuild, or somewhere on gentoo's side? Moreover, am I the only one suffering of this problem?
For every problem there is a solution that is simple, neat, and wrong.
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Mon Dec 12, 2005 1:24 am

Pass --with-wx-config=wx-config-2.6 --with-wx-config-path=/usr/bin to configure -- or see how e.g. the vlc ebuild does it.
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Mon Dec 12, 2005 1:25 am

btw: portage does not tolerate overlaps between packages, which is why the 2.6 wx-config is renamed.
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Top
yamakawa
Guru
Guru
User avatar
Posts: 340
Joined: Mon Jul 28, 2003 3:58 pm

  • Quote

Post by yamakawa » Mon Dec 12, 2005 10:47 am

ecatmur wrote:Pass --with-wx-config=wx-config-2.6 --with-wx-config-path=/usr/bin to configure -- or see how e.g. the vlc ebuild does it.
As for vlc, I have trouble now with 0.8.4-r1 ebuild.

Code: Select all

# emerge -upv media-video/vlc

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

Calculating dependencies ...done!
[ebuild     U ] media-video/vlc-0.8.4-r1 [0.8.2-r2] -3dfx +X -a52 -aac +aalib +alsa (-altivec) +arts -avahi -bidi -cdda -corba -daap -debug +dts -dvb +dvd +esd +fbcon +ffmpeg* +flac -freetype -ggi -gnutls -hal -httpd -joystick +libcaca* -lirc -live +matroska* -mod +mp3 +mpeg +ncurses +nls +nsplugin* +ogg +opengl +oss +png +real +samba* -screen +sdl -shout -skins +speex -stream +svg* +svga -theora -v4l -vcd -vlm +vorbis +win32codecs* +wxwindows +xml2 -xosd +xv 0 kB 

Total size of downloads: 0 kB

Code: Select all

# emerge -u media-video/vlc
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/vlc-0.8.4-r1 to /
>>> md5 files   ;-) vlc-0.8.2-r1.ebuild
>>> md5 files   ;-) vlc-0.8.4.ebuild
>>> md5 files   ;-) vlc-0.8.1-r1.ebuild
>>> md5 files   ;-) vlc-0.8.4-r1.ebuild
>>> md5 files   ;-) vlc-0.8.2-r2.ebuild
>>> md5 files   ;-) files/digest-vlc-0.8.1-r1
>>> md5 files   ;-) files/digest-vlc-0.8.2-r1
>>> md5 files   ;-) files/digest-vlc-0.8.2-r2
>>> md5 files   ;-) files/digest-vlc-0.8.4-r1
>>> md5 files   ;-) files/digest-vlc-0.8.4
>>> md5 src_uri ;-) vlc-0.8.4.tar.bz2
>>> md5 src_uri ;-) vlc-patches-10.tar.bz2
!!! set-wxconfig: Error:  Can't find normal or debug version:
Here is the content of /var/tmp/portage/vlc-0.8.4-r1/temp/eclass-debug.log

Code: Select all

inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 2)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: wxwidgets -> /usr/portage/eclass/wxwidgets.eclass
*** Multiple Inheritence (Level: 2)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: flag-o-matic -> /usr/portage/eclass/flag-o-matic.eclass
*** Multiple Inheritence (Level: 2)
inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 3)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: toolchain-funcs -> /usr/portage/eclass/toolchain-funcs.eclass
*** Multiple Inheritence (Level: 3)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: nsplugins -> /usr/portage/eclass/nsplugins.eclass
*** Multiple Inheritence (Level: 2)
inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 3)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: autotools -> /usr/portage/eclass/autotools.eclass
*** Multiple Inheritence (Level: 2)
inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 3)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: gnuconfig -> /usr/portage/eclass/gnuconfig.eclass
inherit: toolchain-funcs -> /usr/portage/eclass/toolchain-funcs.eclass
*** Multiple Inheritence (Level: 2)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
need-wxwidgets: entering function, parameters: unicode
set-wxconfig: entering function, parameters: gtk2-unicode
As you can see, I have installed two versions of wxGTK.

Code: Select all

# emerge -Cp x11-libs/wxGTK

>>> These are the packages that I would unmerge:

 x11-libs/wxGTK
    selected: 2.4.2-r3 2.6.2-r1
   protected: none
     omitted: none
The relevant parts inside the ebuild are...

Code: Select all

pkg_setup() {
    if use wxwindows; then
        WX_GTK_VER="2.6"
        need-wxwidgets unicode || die "You need to install wxGTK with unicode support."
    fi
and....

Code: Select all

src_compile () {
    use nsplugin && myconf="${myconf} --with-mozilla-sdk-path=/usr/$(get_libdir)/gecko-sdk"

    use wxwindows && \
        myconf="${myconf} --with-wx-config=$(basename ${WX_CONFIG}) --with-wx-config-path=$(dirname ${WX_CONFIG})"
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Mon Dec 12, 2005 11:06 am

Yes, but then it says:
!!! $FUNCNAME: /usr/lib/wx/config/gtk2-unicode-release-2.6 not found
!!! $FUNCNAME: /usr/lib/wx/config/gtk2-unicoded-release-2.6 not found
!!! You need to emerge wxGTK with unicode in your USE
(or it should, anyway). Emerge wxGTK-2.6 with unicode in USE and try again.
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Mon Dec 12, 2005 11:19 am

btw, when you're writing your ebuild you may or may not need unicode; if not use need-wxwidgets gtk2 rather than need-wxwidgets unicode.
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Mon Dec 12, 2005 11:21 am

Or, if it really doesn't matter, set WX_CONFIG=/usr/bin/wx-config-2.6 and it will use whatever is installed.
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Top
yamakawa
Guru
Guru
User avatar
Posts: 340
Joined: Mon Jul 28, 2003 3:58 pm

  • Quote

Post by yamakawa » Mon Dec 12, 2005 3:54 pm

ecatmur wrote:Yes, but then it says:
!!! $FUNCNAME: /usr/lib/wx/config/gtk2-unicode-release-2.6 not found
!!! $FUNCNAME: /usr/lib/wx/config/gtk2-unicoded-release-2.6 not found
!!! You need to emerge wxGTK with unicode in your USE
(or it should, anyway). Emerge wxGTK-2.6 with unicode in USE and try again.
I tried reemerge wxGTK with unicode useflag for the first time after that.
That fixed the problem! (mixing 2.4 and 2.6 versions do not seem to trouble to me.)
Thanks! :D
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy