When the -arts USE flag is set kdevelop still fails on configure because it can't find arts components. Reproducible: Always Steps to Reproduce: 1. USE="-arts" emerge =kdevelop-3.1.0_rc2 2. Crash on configure Actual Results: checking if Qt needs -ljpeg... no checking for rpath... yes checking for KDE... libraries /usr/kde/3.3/lib, headers /usr/kde/3.3/include checking if UIC has KDE plugins available... yes checking for KDE paths... defaults checking for dcopidl... /usr/kde/3.3/bin/dcopidl checking for dcopidl2cpp... /usr/kde/3.3/bin/dcopidl2cpp checking for mcopidl... not found configure: error: The important program mcopidl was not found! Please check whether you installed aRts correctly or use --without-arts to compile without aRts support (this will remove functionality). !!! ERROR: dev-util/kdevelop-3.1.0_rc2 failed. !!! Function kde_src_compile, Line 119, Exitcode 1 !!! died running ./configure, kde_src_compile:configure Expected Results: Should pass --without-arts to configure and compile successfully without arts support Using XFree86, KDE 3.3.0 emerged with -arts Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.5.3 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="ftp://gentoo.agsn.ca/ ftp://sunsite.ualberta.ca/pub/Linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/overlay" SYNC="rsync://gentoo.bigfiber.net/gentoo-portage" USE="3dnow X aalib alsa apm audiofile avi berkdb bonobo cdparanoia cdr crypt cups curl dba directfb divx4linux dvb dvd dvdread encode esd ethereal evo fbcon flash fltk fluidsynth foomaticdb freetds gb gdbm ggi gif gnome gphoto2 gpm gps gtk gtk2 gtkhtml guile imap imlib informix ipv6 java javascript joystick jpeg kde lcms libcaca libg++ libwww live mad maildir mikmod mmx motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mysql nas ncurses net network nvidia oav odbc offensive oggvorbis opengl oss pam pda pdflib perl php png ppds python qt quicktime readline rtc ruby samba scanner sdl slang snmp spell sse ssl svg svga tcltk tcpd tetex tiff truetype usb v4l v4l2 vim-with-x x86 xfs xine xinerama xml xml2 xmms xosd xv xvid zlib"
Created attachment 37905 [details, diff] Ebuild patch to make configure respect -arts USE flag Not sure if this is the best way to do this but it does work
Created attachment 37907 [details, diff] Same patch again but for kdevelop-3.1.0 I just noticed there's a 3.1.0 final in portage now so here is the patch for that version which exibits the same problem.
I believe this is a portage problem - please try upgrading to 2.0.50-r10 and emerging.
*** Bug 60135 has been marked as a duplicate of this bug. ***
I'm using portage 2.0.51_pre20 and gcc 3.4.1-r2 to emerge kdevelop-3.1.0 and the problem persists. Portage 2.0.51_pre20 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8-rc4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz) ================================================================= System uname: 2.6.8-rc4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.5.3 distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs digest fixpackages sandbox sign userpriv usersandbox" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" USE="X alsa apache2 avi bonobo cdr crypt cscope dedicated dga dvd encode ethereal fastcgi fbcon freetds gd gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 jikes jpeg libwww mad mcal memlimit mikmod mmx motif mozilla mpeg mpi mysql ncurses nls nocd oggvorbis opengl pam pdflib perl plotutils png pnp qt quicktime readline samba sdl slang snmp sse ssl svga tcltk tcpd tiff truetype trusted usb wmf wxwindows x86 xml xml2 xmms xosd xv zlib"
The use flag gets applied in kde.eclass - search for "arts" and you'll see. Can you try doing some debugging output around that flag being set to see why it wouldn't be getting picked up?
There seem to be actually 2 problems here. The first is this line in src_compile in kdevelop-3.1.0.ebuild: $(use_enable arts)" That should be use_with instead. The other problem is that KDEMINORVER is set to 2 on my machine. emerge -pC kdelibs shows (not sure if the order has anything to do with this): kde-base/kdelibs selected: 3.1.4 3.3.0 3.2.3 I'm not sure what the KDEMINORVER check is for though. Why would the option to disable arts support be dependent on anything but the application (in this case kdevelop) version?
the kdeminorver check is simply to not allow the optional arts compilation for kde 3.2, as it's not supported in that version. I've committed the following change to the eclass which I believe will fix the problem: @@ -88,7 +88,8 @@ kde_src_compile() { else myconf="$myconf --disable-debug --without-debug" fi - [ "$KDEMINORVER" -ne 2 ] && myconf="$myconf `use_with arts`" + [ -z "$KDEBASE" ] && myconf="$myconf $(use_with arts)" + [ -n "$KDEBASE" -a "$KDEMINORVER" -ge 3 ] && myconf="$myconf $(use_with arts)"
That fixes the problem with the eclass, yes. So now only the kdevelop ebuild problem is left.
fixed in the ebuild.