When I emerge libvisual with the command: emerge /usr/portage/media-libs/libvisual/libvisual-0.1.6.ebuild it configures ok; compiles ok; but whe it goes to install libvisual it gives me this error: make[2]: Entering directory `/var/tmp/portage/libvisual-0.1.6/work/libvisual-0.1.6' mkdir -p -- . /usr/include/libvisual ACCESS DENIED mkdir: /usr/include/libvisual mkdir: cannot create directory `/usr/include/libvisual': Permission denied make[2]: *** [install-exec-local] Error 1 make[2]: Leaving directory `/var/tmp/portage/libvisual-0.1.6/work/libvisual-0.1.6' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/libvisual-0.1.6/work/libvisual-0.1.6' make: *** [install-recursive] Error 1 !!! ERROR: media-libs/libvisual-0.1.6 failed. !!! Function src_install, Line 38, Exitcode 2 !!! (no error message) --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-libs_-_libvisual-0.1.6-9211.log" mkdir: /usr/include/libvisual -------------------------------------------------------------------------------- Reproducible: Always Steps to Reproduce: 1. emerge /usr/portage/media-libs/libvisual/libvisual-0.1.6.ebuild 2. 3. Actual Results: libvisual is not installed Expected Results: libvisual installed! Log file: --------- mkdir: /usr/include/libvisual emerge info: ------------ Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr cryptcscope cups dga directfb dvd encode esd fbcon flash foomaticdb gd gdbm gif gpm gtk gtk2 imlib java javascript jpeg kde ldap libg++ libwww mad mikmod mmx motif mpeg ncurses nls nptl oggvorbis ooo-kde opengl oss pam pdflib perl png postgres ppds python qt quicktime readline sdl slang spell sse ssl tcpd tetex threads tiff truetype usb videos wmf x86 xine xml xml2 xmms xprint xv zlib"
I confirm the error. To workaround it I disabled these 3 features when emerging: FEATURES="-distcc -sandbox -ccache" emerge libvisual
After that you can do a normal "emerge libvisual"
*** Bug 64226 has been marked as a duplicate of this bug. ***
Sorry I posted the patch in the duplicated bug. This was the attachment: http://bugs.gentoo.org/attachment.cgi?id=39689 libvisual-0.1.6.ebuild patch to avoid sandbox violation. The problem is that in src_install() you are calling "make" passing only DESTDIR and not "prefix" and other settings. Using directly the einstall function provided by ebuild.sh fixes this. Let me know if you think that it's right.
fixed in portage.
Fix confirmed