Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126367 - sandbox violation emerging app-portage/g-cpan
Summary: sandbox violation emerging app-portage/g-cpan
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard: g-cpan
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 17:05 UTC by David Pyke
Modified: 2006-04-17 05:45 UTC (History)
0 users

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 David Pyke 2006-03-15 17:05:04 UTC
Portage 2.1_pre6-r2 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.16-rc6 x86_64)
=================================================================
System uname: 2.6.16-rc6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.6.14
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,-Bdirect"
MAKEOPTS="-j3"
PKGDIR="/mnt/windows/pkgdir"
PORTAGE_TMPDIR="/mnt/windows/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa apache2 audiofile avi berkdb bidi binfilter bitmap-fonts blas bzip2 cairo ccache cdparanoia cdr crosscompile crypt cups curl dbus dlloader dri dts dvd dvdr dvdread emboss emul-linux-x86 encode esd expat fbcon ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm gif gimpprint glibc-omitfp glut gnome gnome-print gpm gstreamer gtk gtk2 gtkhtml guile hal hpn icq idn ieee1394 imagemagick imlib java jpeg lapack lcms live lm_sensors logrotate lzo lzw mad maildir matroska mbox mdb mime mng motif mp3 mpeg mpm-worker msn mysql nas ncurses network nforce2 nls nptl nptlonly nsplugin nvidia offensive ogg opengl oscar pam pdf perl php plotutils png ppds python qt quicktime readline real rtc samba sdl smp sndfile snmp soap sockets sou sox speex spell ssl svg swat tcltk tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts usb v4l vcd videos vorbis wifi wxwindows xanim xine xml xml2 xmms xpm xprint xv xvid xvmc zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard kernel_linux userland_GNU video_cards_nv video_cards_vesa video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS

>>> Completed installing g-cpan-0.13.02 into /mnt/windows/tmp/portage/g-cpan-0.13.02/image/

man:
gzipping man page: g-cpan.pl.1
fixing man page symlink: g-cpan.1.gz
symlink:   /mnt/windows/tmp/portage/g-cpan-0.13.02/image/usr/share/man/man1/g-cpan.1.gz
ln: creating symbolic link `/mnt/windows/tmp/portage/g-cpan-0.13.02/image/usr/share/man/man1/g-cpan.1.gz' to `/usr/share/man/man1/g-cpan.pl.1.gz': Permission denied
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------


symlink:   /mnt/windows/tmp/portage/g-cpan-0.13.02/image/usr/share/man/man1/g-cpan.1.gz (symlink to /usr/share/man/man1/g-cpan.pl.1.gz)
--------------------------------------------------------------------------------
Comment 1 Christian Hartmann (RETIRED) gentoo-dev 2006-04-11 12:58:32 UTC
You are using a FAT32/NTFS formatted partition as PORTAGE_TMPDIR? It's likely that this will cause you a lot of problems. Every ebuild that tries to create symlinks will fail in this case. Use some other partition (native linux partition such as ext3, xfs..) and try again.

I'm marking this bug as invalid. Feel free to reopen it if this happens again using a native linux filesystem.
Comment 2 David Pyke 2006-04-11 14:22:31 UTC
I'mnot using a FAt or NTFS file system anywhere on my system.  I have ext3 fs for all partitions.

the mountpoint name is a holdover from a long ago removed ntfs partition.  I can change it if you like but it points to an ext3 partition.

As proof:

loftwyr@www ~ $ di
Filesystem         Mount               Megs     Used    Avail %Used fs Type
/dev/sda4          /               108890.1  86625.7  16733.0  85%  ext3
/dev/sda2          /boot               38.0     19.3     16.7  56%  ext2
udev               /dev              1005.4      0.3   1005.1   0%  tmpfs
/dev/sda1          /mnt/windows     39369.1   9402.0  27967.2  29%  ext3
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2006-04-12 03:04:13 UTC
we're using the standard dosym in the ebuild, so it *should* be sandbox safe (ie, it should be substituting ${D}/${ROOT} as appropriate). I can say in the next version of g-cpan we will be dropping the whole .pl extension (so this symlink will never be created). The offending line is line 28 in the ebuild (though why line 27 doesn't generate the same errror I'm not sure). If you want, until we have a chance to finish up the next release, you can comment out this line (or overlay it and comment it out) and be able to proceed as is. All you will be missing is the ability to "man g-cpan.pl".
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2006-04-17 05:45:28 UTC
Fixed and committed in place (no sense in bumping in for this). Emerge sync in a few hours to get the updated ebuild.