Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237540 - dev-python/numpy-1.1.1 - sandbox violation mkdir: /root/.sunstudio
Summary: dev-python/numpy-1.1.1 - sandbox violation mkdir: /root/.sunstudio
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 06:57 UTC by Matyukevich Sergey
Modified: 2008-11-24 17:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete output of "emerge -vu numpy" (emerge_numpy.out,49.24 KB, text/plain)
2008-09-13 07:02 UTC, Matyukevich Sergey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matyukevich Sergey 2008-09-13 06:57:26 UTC
Emerge of numpy fails with sandbox access violation report. When customizing build environment, emerge process found sun fortran compilers installed on my system in /opt/sun/sunstudio12. I doesn't look that those fortran compilers 
were used to build numpy. But according to sandbox complaint, after sources were compiled there was an attempt to write to sunstudio config directory owned by root.

access violation summary


--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-21115.log"

mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
mkdir:     /root/.sunstudio
mkdir:     /root/.sunstudio/user_info
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
creat:     /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
open_wr:   /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux
unlink:    /root/.sunstudio/user_info/activity_sun_studio_12_intel-Linux.lck
-------------------------------------------------------------------------------



Reproducible: Always

Steps to Reproduce:
1. emerge -pvu numpy
2.
3.

Actual Results:  
emerge of numpy fails with access violation complaint by sandbox


# emerge --info 

Portage 2.2_rc8 (default-linux/x86/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo i686)
=================================================================
System uname: Linux-2.6.24-gentoo-i686-Intel-R-_Core-TM-2_CPU_4400_@_2.00GHz-with-glibc2.0
Timestamp of tree: Fri, 12 Sep 2008 19:00:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb cli cracklib crypt cups doc dri fortran gdbm gpm iconv ipv6 isdnlog kde midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python qt3 qt4 readline reflection session spl ssl tcpd unicode vim-syntax x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1       emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m         maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt         mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage        siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware   voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Matyukevich Sergey 2008-09-13 07:02:34 UTC
Created attachment 165318 [details]
complete output of "emerge -vu numpy"

just in case I attached the complete log of emerge -vu numpy
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2008-09-25 08:49:48 UTC
Hi,

numpy does not do anything about sunstudio, it is probably sunstudio itself trying to write down some user config options. We won't make a special case for sunstudio in the numpy ebuild.
numpy distutils looks for a fortran compiler, and the first one to find on your path is f77 from sunstudio. We are not (yet) supporting sunstudio in the tree, so the fortran eclass cannot guess it.
I would suggest to try something like F77=gfortran emerge numpy and see whether you can avoid sunstudio to be the first fortran compiler choice.

Comment 3 Matyukevich Sergey 2008-11-22 09:42:36 UTC
Hi,
So the problem was in my workaround - no proper value for the fortran environment variables. I tried the solution suggested by Sebastian, but also added F90:
      F77=gfortran F90=gfortran emerge -vu numpy
The result was fine: numpy was succesfully installed. Besides - I checked - it was operational :)

My suggestion would be to close/reject this bug. If it is necessary to indicate the reason, that would be "user configuration issue".
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2008-11-24 17:03:22 UTC
Thanks for checking. Closing then.

>       F77=gfortran F90=gfortran emerge -vu numpy

NB: f90 variable is usually FC, not F90.