This seems to be the same bug as described by the submitter of bug 30568. The discussion after that seems to be referring to something different. The bug occurs when the sandbox is has a directory share in it. This is wrongly changed to lib and hence the sandbox violation. The sandbox log is below -------------------------------- unlink: /downloads/nobkup/linux/gentoo/lib/tmp/portage/ncurses-5.3-r5/image/usr/share/terminfo symlink: /downloads/nobkup/linux/gentoo/lib/tmp/portage/ncurses-5.3-r5/image/usr/share/terminfo -------------------------------- Note the first lib should be share and the second share should be lib. The bug seems to be in ncurses-5.3-r5/misc/run_tic.in I will attach a small patch that seems to fix the problem. Reproducible: Always Steps to Reproduce: 1. set PORTAGE_TMPDIR in make.conf to a path with /share/ in it 2. emerge ncurses 3. Actual Results: sandbox access violation Expected Results: install
Created attachment 26035 [details, diff] patch to fix the bug
Good catch - fixed in CVS, thanks.
Thomas: think you could merge this old patch we've been using for quite a while now ?
yes, that looks ok