Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59538 - k3b 0.11.13 fails to compile without arts installed.
Summary: k3b 0.11.13 fails to compile without arts installed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-05 10:26 UTC by Jay Settle
Modified: 2004-08-06 15:50 UTC (History)
2 users (show)

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


Attachments
Simple patch to check for arts use flag (arts.patch,338 bytes, patch)
2004-08-05 10:45 UTC, Jay Settle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Settle 2004-08-05 10:26:25 UTC
k3b 0.11.13 fails to compile when arts isn't installed and -arts is set.  If +arts is set in USE, arts will be pulled in and there isn't a problem.  



Reproducible: Always
Steps to Reproduce:
1. Set -arts in make.conf and make sure arts is not installed
2. emerge k3b
3. Error occurs during ./configure

Actual Results:  
<-snip->
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).

Expected Results:  
It should have set --without-arts during the ./configure section from the -arts
USE flag and compiled and built the k3b version.  

From the ./configure --help of K3b:

--without-arts          build without aRts default=no

So by default this version of k3b, turns aRts on whether it is installed or not.
 It must be explictly told to --without-arts should -arts be set.  I have a
patch to the ebuild that will do this (I think) that I will attach in a second.
 Testing to make sure it works first :).
Comment 1 Jay Settle 2004-08-05 10:45:19 UTC
Created attachment 36829 [details, diff]
Simple patch to check for arts use flag

This is a simple one line patch that checks for the arts use flag, and then
adds to $myconf either --with-arts or --with-arts depending.  After doing this,
the ebuild built for me without issue.
Comment 2 UncleOwen 2004-08-05 14:14:20 UTC
k3b-0.11.12-r1 has

	use debug && myconf="${myconf} --enable-debugging --enable-profiling" \
		|| myconf="${myconf} --disable-debugging --disable-profiling"
	use kde || myconf="${myconf} --without-k3bsetup"
	use arts || myconf="${myconf} --without-arts"

Why were those lines removed?
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-05 14:22:29 UTC
The arts configure flag is determined by kde.eclass now, the proposed patch should be irrelevant. Did anyone test 0.11.12 w/o arts?
Comment 4 UncleOwen 2004-08-05 14:34:13 UTC
k3b-0.11.12-r1 seems to be fine. At least it's not bailing out at ./configure. Compiling now.
Comment 5 Giacomo Perale 2004-08-05 15:07:06 UTC
------- Additional Comment #3 From Carsten Lohrke 2004-08-05 14:22 PST -------

The arts configure flag is determined by kde.eclass now, the proposed patch should be irrelevant. Did anyone test 0.11.12 w/o arts?



the problem is that k3b inherit kde.eclass but kde.eclass, as far as I can understand from the file, requires KDEMINORVER >= 3 to enable "--without-arts"

[ "$KDEMINORVER" -ge 3 ] && myconf="$myconf `use_with arts`"

and kdeminorver is overrided by 

need-kde 3.1

in k3b-0.11.13.ebuild.

moreover, kde 3.3 is still masked and most people have just emerged kdelibs 3.2 to build k3b, so IMHO until 3.3 become stable it would be better to mantain the old workaround insted of inheriting all from the eclass.
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-05 15:12:29 UTC
Yes, my fault. Already fixed. Thanks for the report. :)
Comment 7 Butters 2004-08-06 06:35:51 UTC
In particular, the kde USE flag compile option is important.  Without K3BSetup, users will have to set cdrecord and cdrdoa sticky suid root manually at the command line.  This ebuild should also include a script for -kde users to accomplish this without touching the terminal, as XCDRoast has done for some time.  Perhaps change to:

use kde || {myconf="$(myconf) --without-k3bsetup"; \
            chmod 4710 /usr/bin/cdrecord; \
            chmod 4710 /usr/bin/cdrdao;}

I am no python wizard, so please correct this for obvious syntax errors and/or any env variables that I should be using instead of absolute paths.

According to the cdrecord man page, using these permissions is not a big security risk *anymore*
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-06 15:50:41 UTC
Unnecessary suid by default is always a security risc. Helpful post install information is possible; Or you may have a look at Bug 38122.

Please don't add comments to resolved bug reports. They're easily overlooked. Rather open a new one.