Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91638 - rrdtool does not handle no perl USE flag properly
Summary: rrdtool does not handle no perl USE flag properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-05 19:21 UTC by Keith Dart
Modified: 2005-05-07 05:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Dart 2005-05-05 19:21:22 UTC
When I emerge rrdtool with the USE flag of "-perl" (which means I don't want no stinkin' perl on my system), the emerge fails with a sandbox violation. It tries to mkdir /usr/lib/perl5.8.6. I fixed it myself like this:

src_compile() {
	filter-mfpmath sse
	filter-flags -ffast-math

	local myconf
	myconf="${myconf} --datadir=/usr/share --enable-shared"

	use tcltk \
		&& myconf="${myconf} --with-tcllib=/usr/lib" \
		|| myconf="${myconf} --without-tcllib"

	if use perl; then
		econf ${myconf} --with-perl-options='PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D}' || die "econf failed"
	else
		econf ${myconf} --disable-perl || die "econf failed"
	fi

	make || die "make failed"
}

The "--disable-perl" was added. 


Reproducible: Always
Steps to Reproduce:
1.USE="-perl" emerge rrdtool
2.
3.

Actual Results:  
sandbox violation.

Expected Results:  
rrdtool installes.
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-05-07 05:28:04 UTC
In CVS.  Thanks.