Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278258 - =dev-lang/R-2.8.1: Sandbox violation
Summary: =dev-lang/R-2.8.1: Sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-18 11:11 UTC by Guenther Brunthaler
Modified: 2009-08-07 17:35 UTC (History)
1 user (show)

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


Attachments
emerge log (dev-lang:R-2.8.1:20090718-104803.log.lzma,14.96 KB, application/octet-stream)
2009-07-18 11:18 UTC, Guenther Brunthaler
Details
Output of emerge --info (emerge_info.txt,5.19 KB, text/plain)
2009-07-18 11:19 UTC, Guenther Brunthaler
Details
Sandbox log (sandbox-7715.log,318 bytes, text/plain)
2009-07-18 11:19 UTC, Guenther Brunthaler
Details
./configure log (config.log.lzma,26.97 KB, application/octet-stream)
2009-07-18 11:26 UTC, Guenther Brunthaler
Details
An updated ebuild fixing the build problem (R-2.9.1-r1.ebuild,4.14 KB, text/plain)
2009-08-01 23:32 UTC, Guenther Brunthaler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guenther Brunthaler 2009-07-18 11:11:36 UTC
Any attempt to emerge dev-lang/R-2.8.1 fails with a sandbox violation. The sandbox log states the origin of the problem to be the shell command

$ mv /boot /var/tmp/portage/dev-lang/R-2.8.1/work/R-2.8.1/library/boot

which indeed looks as if the sandbox has done its job right.

Reproducible: Always

Steps to Reproduce:
1. emerge R

Actual Results:  
Bails out with a sandbox violation error

Expected Results:  
Should build without an error
Comment 1 Guenther Brunthaler 2009-07-18 11:18:05 UTC
Created attachment 198408 [details]
emerge log

LZMA-compressed due to its size.

Use

$ unlzma <file>

to uncompress.
Comment 2 Guenther Brunthaler 2009-07-18 11:19:14 UTC
Created attachment 198410 [details]
Output of emerge --info
Comment 3 Guenther Brunthaler 2009-07-18 11:19:55 UTC
Created attachment 198412 [details]
Sandbox log
Comment 4 Guenther Brunthaler 2009-07-18 11:23:51 UTC
It gets even funnier: A file or directory /var/tmp/portage/dev-lang/R-2.8.1/work/R-2.8.1/library/boot does not even exist!

$ ls /var/tmp/portage/dev-lang/R-2.8.1/work/R-2.8.1/library
base      graphics   grid     R.css    stats   tcltk  utils
datasets  grDevices  methods  splines  stats4  tools

Which means the "mv"-operation would have failed even without the sandbox problem.
Comment 5 Guenther Brunthaler 2009-07-18 11:26:32 UTC
Created attachment 198414 [details]
./configure log

LZMA-compressed due to its size.
Comment 6 Guenther Brunthaler 2009-08-01 23:26:53 UTC
I tried the newest version in the Portage tree R-2.9.1 and found out that this version has the same issue.
Comment 7 Guenther Brunthaler 2009-08-01 23:31:05 UTC
I finally was able to track down the actual origin of the problem!

The sandbox violation is only a follow-up error. The primary source of the problem is that a Perl module isn't found during the build, which seems to take part in determining the actual path names used by the build.

Because this Perl module was not found, invalid path names were generating, leading to the sandbox violation.

The fix was easy as the "missing" module was actually part of the source tree: Just add the path to $PERL5LIB within the build environment, and everything worked out fine!
Comment 8 Guenther Brunthaler 2009-08-01 23:32:12 UTC
Created attachment 199863 [details]
An updated ebuild fixing the build problem
Comment 9 Guenther Brunthaler 2009-08-01 23:37:12 UTC
In order to make installation and testing even more comfortable, I have created a publicly accessible layman overlay for the proposed new ebuild.

That way, everyone can easily install the ebuild with layman without a need to manually set up a local overlay.

Here are the instructions how to do it:

$ emerge -u layman '>=bzr-1.14' # Make sure dependencies are installed.
$ layman -o http://rpo.xw.ath.cx/gentoo/portage/overlays/hosted.xml -fa \
            xworld_hotfixes
$ emerge -av =dev-lang/R-2.9.1-r1
Comment 10 Sébastien Fabbro (RETIRED) gentoo-dev 2009-08-07 17:35:05 UTC
Fixed. Thanks!