emerge bails out with a sandbox violation: --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-419461.log" open_wr: /var/cache/edb/dep/usr/portage.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/java-overlay.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/java-gcj-overlay.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite open_wr: /var/cache/edb/dep/usr/local/portage.sqlite -------------------------------------------------------------------------------- I use the /etc/portage/modules to change the cache module to sqlite: portdbapi.auxdbmodule = cache.sqlite.database Actually, the sandbox access violation errors occur quite often recently. :(
Created attachment 150384 [details] emerge --info
btw, compiling sandbox with plain CFLAGS (-march=athlon64 -O2) doesn't help anythign at all
actually, it fails during src_unpack() already * Checking for at least 512MBytes RAM ... [ ok ] * Checking for at least 5120MBytes disk space at ${T} ... [ ok ] * Using: sun-jdk-1.6 * Found db version 4.5 >>> Unpacking source... >>> Unpacking ooo-build-2.4.0.7.tar.gz to /home/tmp/portage/app-office/openoffice-2.4.0/work * Applying gentoo-2.4.0.diff ... [ ok ] * Applying ooo-env_log.diff ... [ ok ] ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/local/portage.sqlite * Running eautoreconf in '/home/tmp/portage/app-office/openoffice-2.4.0/work/ooo' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running automake --add-missing --copy ... [ ok ] >>> Source unpacked.
This seems to be triggered by the ebuild calling java-config which uses the portage api. We should be able to fix the portage api to detect potential sandbox violations like this and avoid them.
Created attachment 150459 [details, diff] add write access to /var/cache/edb/dep when appropriate If this patch is saved as /tmp/sandbox.patch, then it can be applied as follows: patch /usr/lib/portage/pym/portage.py /tmp/sandbox.patch
the patch seems to have fixed this problem, openoffice unpack and, i tested pdfbox, where i remeber the error occured too the problem doesn't occur anymore. another thing still keeps popping up (i forgot to mention beforehand), when installing portage (most recent ~ version): * Generating api docs ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/java-gcj-overlay.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/portage/local/layman/java-overlay.sqlite ACCESS DENIED open_wr: /var/cache/edb/dep/usr/local/portage.sqlite >>> Source compiled. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-1599517.log" open_wr: /var/cache/edb/dep/usr/portage.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/java-gcj-overlay.sqlite open_wr: /var/cache/edb/dep/usr/portage/local/layman/java-overlay.sqlite open_wr: /var/cache/edb/dep/usr/local/portage.sqlite --------------------------------------------------------------------------------
(In reply to comment #6) > another thing still keeps popping up (i forgot to mention beforehand), when > installing portage (most recent ~ version): This is to be expected since none of the current ebuilds have this patch. If you copy the ebuild to overlay apply the patch to portage.py inside src_unpack(), it will solve the problem.
ok, yes, the patched ebuild fixes this one too thanks
Thanks for testing. This is fixed in 2.1.5_rc6.