Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61212 - Kdevelop-3.1.0_rc2 - respect -arts USE flag
Summary: Kdevelop-3.1.0_rc2 - respect -arts USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 60135 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-21 19:11 UTC by Travis Morgan
Modified: 2004-09-03 07:11 UTC (History)
1 user (show)

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


Attachments
Ebuild patch to make configure respect -arts USE flag (kdevelop-3.1.0_rc2.ebuild.patch,769 bytes, patch)
2004-08-21 19:13 UTC, Travis Morgan
Details | Diff
Same patch again but for kdevelop-3.1.0 (kdevelop-3.1.0.ebuild.patch,759 bytes, patch)
2004-08-21 19:41 UTC, Travis Morgan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Travis Morgan 2004-08-21 19:11:59 UTC
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"
Comment 1 Travis Morgan 2004-08-21 19:13:38 UTC
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
Comment 2 Travis Morgan 2004-08-21 19:41:41 UTC
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.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-08-25 11:48:51 UTC
I believe this is a portage problem - please try upgrading to 2.0.50-r10 and emerging.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2004-08-25 11:50:56 UTC
*** Bug 60135 has been marked as a duplicate of this bug. ***
Comment 5 Maurice van der Pot (RETIRED) gentoo-dev 2004-08-25 13:47:45 UTC
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"
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-08-25 13:51:49 UTC
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?

Comment 7 Maurice van der Pot (RETIRED) gentoo-dev 2004-08-25 15:38:04 UTC
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?
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2004-08-26 08:59:06 UTC
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)"


Comment 9 Maurice van der Pot (RETIRED) gentoo-dev 2004-08-26 09:24:21 UTC
That fixes the problem with the eclass, yes. 
So now only the kdevelop ebuild problem is left.
Comment 10 Caleb Tennis (RETIRED) gentoo-dev 2004-09-03 07:11:03 UTC
fixed in the ebuild.