Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54574 - New ebuilds for allowing KDE without arts
Summary: New ebuilds for allowing KDE without arts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 40295 56028 58262 (view as bug list)
Depends on:
Blocks: 60048 60135
  Show dependency tree
 
Reported: 2004-06-20 16:35 UTC by Laurence Withers
Modified: 2004-09-19 20:29 UTC (History)
7 users (show)

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


Attachments
Make k3b listen to the "arts" use flag (k3b-arts-use.diff,787 bytes, patch)
2004-06-20 16:36 UTC, Laurence Withers
Details | Diff
Make kdeaddons listen to the "arts" use flag (kdeaddons-3.2.3-arts-use.diff,795 bytes, patch)
2004-06-20 16:36 UTC, Laurence Withers
Details | Diff
Make kdebase listen to the "arts" use flag (kdebase-3.2.3-arts-use.diff,988 bytes, patch)
2004-06-20 16:37 UTC, Laurence Withers
Details | Diff
Make kdegames listen to the "arts" use flag (kdegames-3.2.3-arts-use.diff,453 bytes, patch)
2004-06-20 16:39 UTC, Laurence Withers
Details | Diff
Make kdelibs listen to the "arts" use flag (kdelibs-3.2.3-arts-use.diff,1.25 KB, patch)
2004-06-20 16:40 UTC, Laurence Withers
Details | Diff
Make kdemultimedia listen to the "arts" use flag (kdemultimedia-3.2.3-arts-use.diff,962 bytes, patch)
2004-06-20 16:40 UTC, Laurence Withers
Details | Diff
Make koffice listen to the "arts" use flag (koffice-1.3.1-r1-arts-use.diff,609 bytes, patch)
2004-06-20 16:40 UTC, Laurence Withers
Details | Diff
Patch to add arts use flag to kde.eclass (kde.eclass-arts-use-flag.diff,592 bytes, patch)
2004-07-15 17:29 UTC, Laurence Withers
Details | Diff
Patch to add arts use flag to kdelibs ebuild. (kdelibs-3.3.0_beta1-arts-use-flag.diff,700 bytes, patch)
2004-07-15 17:34 UTC, Laurence Withers
Details | Diff
Patch to add arts use flag to krusader-1.40 (krusader-1.40-ebuild.patch,296 bytes, patch)
2004-07-24 11:40 UTC, Karol Wojtaszek (RETIRED)
Details | Diff
kdebluetooth with -arts flag (kdebluetooth-0.0.20040715-r1.ebuild,1.32 KB, text/plain)
2004-08-21 07:11 UTC, Douglas Russell (RETIRED)
Details
Make kiso listen to the "arts" use flag (kiso-0.4.2.ebuild,858 bytes, text/plain)
2004-08-21 11:24 UTC, Vince Castellano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurence Withers 2004-06-20 16:35:15 UTC
Puggy and I have been working on building a KDE system without arts. Why?
 - arts is very slow,
 - arts doesn't have anything to offer us,
 - ask Puggy :-)

The attached ebuilds allow you to build KDE (including koffice / k3b) without
arts, if the "arts" use flag is off. They are patches against the -3.2.3
ebuilds.

Note that there is a bug in kdemultimedia-3.2.3 which won't allow you to build
it if you don't have arts installed (http://bugs.kde.org/show_bug.cgi?id=83723).
This has already been fixed so it should be in the next release.
Comment 1 Laurence Withers 2004-06-20 16:36:11 UTC
Created attachment 33706 [details, diff]
Make k3b listen to the "arts" use flag
Comment 2 Laurence Withers 2004-06-20 16:36:39 UTC
Created attachment 33707 [details, diff]
Make kdeaddons listen to the "arts" use flag
Comment 3 Laurence Withers 2004-06-20 16:37:10 UTC
Created attachment 33708 [details, diff]
Make kdebase listen to the "arts" use flag
Comment 4 Laurence Withers 2004-06-20 16:39:53 UTC
Created attachment 33709 [details, diff]
Make kdegames listen to the "arts" use flag
Comment 5 Laurence Withers 2004-06-20 16:40:12 UTC
Created attachment 33710 [details, diff]
Make kdelibs listen to the "arts" use flag
Comment 6 Laurence Withers 2004-06-20 16:40:31 UTC
Created attachment 33711 [details, diff]
Make kdemultimedia listen to the "arts" use flag
Comment 7 Laurence Withers 2004-06-20 16:40:55 UTC
Created attachment 33712 [details, diff]
Make koffice listen to the "arts" use flag
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2004-07-01 07:07:30 UTC
*** Bug 40295 has been marked as a duplicate of this bug. ***
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2004-07-04 03:28:29 UTC
*** Bug 56028 has been marked as a duplicate of this bug. ***
Comment 10 Krzysztof Pawlik (RETIRED) gentoo-dev 2004-07-04 03:39:35 UTC
K3b makes use of 'arts' flag since 0.11.12 (see bug #53724)
Comment 11 Laurence Withers 2004-07-15 17:29:08 UTC
Created attachment 35516 [details, diff]
Patch to add arts use flag to kde.eclass

The attached patch is against the kde eclass, and adds an "arts" USE flag to
the KDE eclass. If arts isn't selected, then it specifies '--without-arts' to
the configure script. The actual dependency on kde-base/arts is given in the
kde-base/kdelibs ebuild...
Comment 12 Laurence Withers 2004-07-15 17:34:03 UTC
Created attachment 35517 [details, diff]
Patch to add arts use flag to kdelibs ebuild.

... which is patched here.

This effectively allows compilation of KDE 3.3.0 beta 1 without arts, but with
the following issues:
 - kdepim won't compile (fixed in KDE CVS, see
   http://bugs.kde.org/show_bug.cgi?id=84815 )
 - kdemultimedia won't compile (patch available, not yet in CVS, see 
   http://bugs.kde.org/show_bug.cgi?id=83723 )
 - kdeartwork won't compile (only just reported, see
   http://bugs.kde.org/show_bug.cgi?id=85307 )

Hopefully, these issues will be resolved by the time 3.3.0 is released proper.
Comment 13 Laurence Withers 2004-07-18 08:49:12 UTC
The kdemultimedia bug (http://bugs.kde.org/show_bug.cgi?id=83723) has been
fixed (not sure if it made it into the beta release, but definitely is in CVS).
This only leaves a single outstanding issue.
Comment 14 Caleb Tennis (RETIRED) gentoo-dev 2004-07-22 17:54:13 UTC
I was thinking about this last night, but I'm a little worried.  Won't this disable arts by default unless a user has the flag set?  I'm concerned that a lot of users won't know to set the arts use flag, and end up with a non-arts based KDE and complain about not having all of the multimedia...
Comment 15 Sascha Silbe 2004-07-22 17:57:37 UTC
sascha@cube:~$ grep arts /etc/make.profile/make.defaults 
USE="x86 oss apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk gtk2 imlib

The arts USE flag is already set by default so KDE will be built with arts support unless you explicitly turn it off.

Comment 16 Caleb Tennis (RETIRED) gentoo-dev 2004-07-22 18:16:13 UTC
ahh, just checked.  ok, i'm going to work on integrating these with beta2.  I believe they will have to go in the ebuild has if they're in the eclass it could break compilation for previous versions (especially if packages didnt' support the flag), so we'll just stick with the ebuilds for now.
Comment 17 Laurence Withers 2004-07-23 01:10:54 UTC
Well, I just compiled kdelibs from 3.3.0_beta2 without a problem by using the
same ebuild from beta1, with a version number change. So I guess that works
OK. I have yet to test any other packages.

Not sure whether ebuild or eclass is the best solution. Presumably, as long as 
we test the stable KDE version (3.2.3?) with the use flag, then it won't break
anything for anybody -- since everyone with an up-to-date eclass will also have
an up-to-date KDE.

Eclass is definitely better in terms of how much work we do. Also, since the
eclass only adds a configure flag, it should not break compilation of anything
anyway, right?
Comment 18 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-24 11:40:09 UTC
Created attachment 36084 [details, diff]
Patch to add arts use flag to krusader-1.40
Comment 19 Robert Wohlrab 2004-07-26 15:58:48 UTC
*** Bug 58262 has been marked as a duplicate of this bug. ***
Comment 20 Robert Wohlrab 2004-07-26 16:04:59 UTC
kdeartwork 3.2.92 (aka 3.3 beta2) will not compile if kdelibs is not compiled with arts. See also:

http://bugs.gentoo.org/show_bug.cgi?id=58262
http://bugs.kde.org/show_bug.cgi?id=85307
Comment 21 Krzysztof Pawlik (RETIRED) gentoo-dev 2004-08-06 07:49:53 UTC
K3b doesn't compile:

------------------------------------------------------------
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: app-cdr/k3b-0.11.13 failed.
!!! Function kde_src_compile, Line 119, Exitcode 1
!!! died running ./configure, kde_src_compile:configure
------------------------------------------------------------

K3b requires --without-arts, and kde.eclass sets --with-arts when 'arts' flag is on, but does nothing when it's not set. I would suggest changing the kde.class to set one of --with-arts or --without-arts.
Comment 22 Krzysztof Pawlik (RETIRED) gentoo-dev 2004-08-08 09:49:58 UTC
emerge sync'ed today, and it compiled, but 'emerge -uav k3b' shows two 'arts' flags for k3b
Comment 23 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-17 12:47:34 UTC
>emerge sync'ed today, and it compiled, but 'emerge -uav k3b' shows two 'arts' flags for k3b

it's a sign of the upcoming portage .51, but no problem
Comment 24 Krzysztof Pawlik (RETIRED) gentoo-dev 2004-08-17 13:56:36 UTC
Thx for info.
Comment 25 Carsten Schiemann 2004-08-20 04:59:05 UTC
kdevelop has the same problem. it does not even check for arts and ./configure fails without.
Comment 26 Douglas Russell (RETIRED) gentoo-dev 2004-08-21 07:09:56 UTC
kdebluetooth also has a problem.
Comment 27 Douglas Russell (RETIRED) gentoo-dev 2004-08-21 07:11:08 UTC
Created attachment 37865 [details]
kdebluetooth with -arts flag

This ebuild takes the first step of asking it _not_ to use arts but there are
some hard coded deps. Naughty naughty.
Comment 28 Laurence Withers 2004-08-21 09:48:08 UTC
kdebluetooth: revised ebuild available:
http://bugs.gentoo.org/show_bug.cgi?id=61170
Comment 29 Vince Castellano 2004-08-21 11:24:52 UTC
Created attachment 37882 [details]
Make kiso listen to the "arts" use flag
Comment 30 Caleb Tennis (RETIRED) gentoo-dev 2004-08-25 12:02:53 UTC
Please note that the kde.eclass now supports the arts use flag.

There seems to be a problem in portage that doesn't allow this to work right, but seems to be fixed in portage-2.0.50-r10.  Try ugprading portage, and seeing if any ebuilds are still not turning off arts compilation.
Comment 31 Mike 2004-09-01 09:28:43 UTC
kmuddy also wont compile without arts, tried to edit the ebuild the same was as the others but, the ebuild is very empty, i dont use kde so im not familiar with the inherit kde line
Comment 32 Sascha Silbe 2004-09-12 12:30:54 UTC
kdenetwork-3.3.0 won't compile with USE=-arts, too:

make[3]: Entering directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0/wifi'
/usr/qt/3/bin/moc ./interface_wireless.h -o interface_wireless.moc
/usr/qt/3/bin/moc ./interface_wireless_wirelessextensions.h -o interface_wireless_wirelessextensions.moc
/usr/qt/3/bin/moc ./kwifimanager.h -o kwifimanager.moc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -march=athlon-xp -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o locator.o locator.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -march=athlon-xp -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o main.o main.cpp
In file included from locator.cpp:20:
interface_wireless.h:24:28: arts/iomanager.h: No such file or directory
interface_wireless.h:25:29: arts/dispatcher.h: No such file or directory
In file included from locator.cpp:20:
interface_wireless.h:98: error: `Arts' is not a class or namespace
interface_wireless.h:99: error: `TimeNotify' is not a class or namespace
interface_wireless.h:99: error: invalid base-class specification
interface_wireless.h:101: error: syntax error before `::' token
interface_wireless.h:102: error: parse error before `::' token
interface_wireless.h:107: error: parse error before `}' token
make[3]: *** [locator.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from kwifimanager.h:43,
                 from main.cpp:25:
interface_wireless.h:24:28: arts/iomanager.h: No such file or directory
interface_wireless.h:25:29: arts/dispatcher.h: No such file or directory
In file included from kwifimanager.h:43,
                 from main.cpp:25:
interface_wireless.h:98: error: `Arts' is not a class or namespace
interface_wireless.h:99: error: `TimeNotify' is not a class or namespace
interface_wireless.h:99: error: invalid base-class specification
interface_wireless.h:101: error: syntax error before `::' token
interface_wireless.h:102: error: parse error before `::' token
interface_wireless.h:107: error: parse error before `}' token
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0/wifi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0/wifi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0'
make: *** [all] Error 2

!!! ERROR: kde-base/kdenetwork-3.3.0 failed.
!!! Function kde_src_compile, Line 135, Exitcode 2
!!! died running emake, kde_src_compile:make

root@caravan:~# 

Comment 33 Sascha Silbe 2004-09-12 12:34:52 UTC
BTW: Why does it attempt to compile the wifi stuff at all? I don't have the "wifi" local USE flag set (though I should set it on that host, but that's another story):

root@caravan:~# emerge -pv kdenetwork

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

Calculating dependencies ...done!
[ebuild  N    ] kde-base/kdenetwork-3.3.0  -arts -debug +samba -slp +ssl -wifi  0 kB 

Total size of downloads: 0 kB


Comment 34 Caleb Tennis (RETIRED) gentoo-dev 2004-09-19 20:29:03 UTC
Wifi bug: Bug #61186

Otherwise, this can be closed as it should "just work" for most ebuilds.  Any that don't, please open new reports.