Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64204 - libvisual do not install becouse it do not have permition to create files or directories.
Summary: libvisual do not install becouse it do not have permition to create files or ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 64226 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-15 19:17 UTC by Thiago dos Santos Alves
Modified: 2004-09-16 19:29 UTC (History)
4 users (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 Thiago dos Santos Alves 2004-09-15 19:17:37 UTC
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"
Comment 1 Edmondo Tommasina 2004-09-15 22:19:32 UTC
I confirm the error.

To workaround it I disabled these 3 features when emerging:

FEATURES="-distcc -sandbox -ccache" emerge libvisual
Comment 2 Philipp Hoffmeister 2004-09-16 02:23:09 UTC
After that you can do a normal "emerge libvisual"
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-16 08:50:27 UTC
*** Bug 64226 has been marked as a duplicate of this bug. ***
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-16 08:51:08 UTC
*** Bug 64226 has been marked as a duplicate of this bug. ***
Comment 5 Simone Gotti (RETIRED) gentoo-dev 2004-09-16 09:02:25 UTC
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.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-16 09:35:01 UTC
fixed in portage.
Comment 7 Thiago dos Santos Alves 2004-09-16 19:29:04 UTC
Fix confirmed