Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275064 - sys-apps/sandbox: need to addwrite paths like EPREFIX/usr/lib/cf
Summary: sys-apps/sandbox: need to addwrite paths like EPREFIX/usr/lib/cf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-22 15:31 UTC by Michael Haubenwallner (RETIRED)
Modified: 2009-06-24 12:54 UTC (History)
1 user (show)

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 Michael Haubenwallner (RETIRED) gentoo-dev 2009-06-22 15:31:46 UTC
Emerging sed-4.2 fex doesn't work unless etc/sandbox.d/00default is eprefixified. It does fail with sandbox violation during src_compile:

make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/tools/haubi/gentoo/sapc154/var/tmp/portage/sys-apps/sed-4.2/work/sed-4.2'
make[1]: Leaving directory `/tools/haubi/gentoo/sapc154/var/tmp/portage/sys-apps/sed-4.2/work/sed-4.2'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-26805.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: /tools/haubi/gentoo/sapc154/usr/lib/cf26856
A: /tools/haubi/gentoo/sapc154/usr/lib/cf26856
R: /tools/haubi/gentoo/sapc154/usr/lib/cf26856
C: mkdir /tools/haubi/gentoo/sapc154/usr/lib/cf26856
--------------------------------------------------------------------------------

Ohw, this is LOG FILE "/var/log/sandbox/sandbox-26805.log": I do have write access there as it is a gentoo host and I'm in the portage group.

Unsure if patching & eprefixify is the right fix here, or leave it to upstream completely.
Comment 1 SpanKY gentoo-dev 2009-06-22 16:36:50 UTC
sandbox.d files arent shell scripts, so unless you have something straight forward, i would rather you add the needed paths to your profile.
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2009-06-23 07:16:39 UTC
Well, I'd call this quite straight forward:
http://overlays.gentoo.org/proj/alt/changeset/47626
Comment 3 SpanKY gentoo-dev 2009-06-23 19:59:23 UTC
i wouldnt -- that requires the files to be "processed" by external forces before they can be installed.  sandbox as is right now requires nothing in the ebuild in order to be installed with configure && make && make install.

what do you use for --prefix= ?  the default file could be processed by the configure script to insert @prefix@.

sed 's:/usr:@prefix@:g' 00default > 00default.in

and then configure will make the 00default file from 00default.in
Comment 4 Michael Haubenwallner (RETIRED) gentoo-dev 2009-06-24 06:53:21 UTC
(In reply to comment #3)
> what do you use for --prefix= ?

In Prefix econf uses --prefix=${EPREFIX}/usr

> sed 's:/usr:@prefix@:g' 00default > 00default.in
> and then configure will make the 00default file from 00default.in

Yep, I'd prefer this too.

Same for the (default?) logfile location, but econf doesn't pass anything containing '/var/log' like "${EPREFIX}/var/log" - this might require some --with-logdir argument fex.
Comment 5 SpanKY gentoo-dev 2009-06-24 12:54:02 UTC
should be fixed in git now

http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=9153b76b81b92adf9427bab6861af920e9cf29cc

feel free to send a patch for the --with-logdir thing :p