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.
sandbox.d files arent shell scripts, so unless you have something straight forward, i would rather you add the needed paths to your profile.
Well, I'd call this quite straight forward: http://overlays.gentoo.org/proj/alt/changeset/47626
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
(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.
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