Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106071 - gmime-2.1.16 sandbox violation
Summary: gmime-2.1.16 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 67768
  Show dependency tree
 
Reported: 2005-09-15 07:07 UTC by David Raison
Modified: 2005-09-22 12:16 UTC (History)
2 users (show)

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


Attachments
patched to gmime-2.1.16.ebuild to fix sandbox issue (gmime-2.1.16.ebuild.patch,438 bytes, patch)
2005-09-16 20:52 UTC, Dave Shanker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Raison 2005-09-15 07:07:56 UTC
see also: http://bugs.gentoo.org/show_bug.cgi?id=105296
(they were posted at the wrong place)

creating imap-example
make[3]: Leaving directory
`/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16/examples'
make[2]: Leaving directory
`/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16/examples'
Making all in .
make[2]: Entering directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
sed -e 's?\@GMIME_LIBDIR\@?-L/usr/lib?g' \
    -e 's?\@GMIME_INCLUDEDIR\@?-I/usr/include/gmime-2.0?g' \
    -e 's?\@GMIME_LIBS\@?-lgmime-2.0 -lz -lnsl?g' \
    -e 's?\@VERSION\@?2.1.16?g' \
      < ./gmimeConf.sh.in > gmimeConf.tmp \
  && mv gmimeConf.tmp gmimeConf.sh
make[2]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
make[1]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-dev-libs_-_gmime-2.1.16-22422.log"

open_wr:   /root/.wapi/shared_data-stilgar-6-0
--------------------------------------------------------------------------------

Reproducible: Always
Steps to Reproduce:
1.emerge gmime 2.1.16
2.
3.

Actual Results:  
sandbox violation

Expected Results:  
emerge successfully

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1500MHz
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://ftp.easynet.nl/mirror/gentoo/
http://gentoo.mirror.icd.hu/ http://ftp.easynet.nl/mirror/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en"
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="x86 X a52 aac acpi alsa apache2 apm avi bitmap-fonts bzip2 cdr crypt cups
curl divx4linux dvd dvdr emboss encode fam flac foomaticdb fortran freetype gd
gif gimp gimpprint gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java
jpeg junit ldap libg++ libwww mad matroska mikmod mmx mmxext mono motif mozilla
mp3 mpeg msn mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oscar
pam pdflib perl php png ppds python quicktime readline real samba scanner sdl
session spell sqlite sse sse2 ssl svga tcltk tcpd theora tiff truetype
truetype-fonts type1-fonts unicode usb vcd vorbis wifi win32codecs wxwindows
xinerama xml xml2 xosd xprint xscreensaver xv xvid yahoo zlib linguas_en
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Josef Gottlander 2005-09-15 10:19:43 UTC
I'm havivg the same problem

Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gvivid i686)
=================================================================
System uname: 2.6.13-gvivid i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -falign-functions=64
-ftracer -funroll-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -falign-functions=64
-ftracer -funroll-loops -fvisibility-inlines-hidden -D_FILE_OFFSET_BITS=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo ftp://ftp.du.se/pub/os/gentoo
http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo
ftp://mirror.pudas.net/gentoo "
LANG="sv_SE"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="sv"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/bmg-main /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 alsa apm artworkextra avi bash-completion berkdb
bitmap-fonts bmp browserplugin bzip2 cairo cdparanoia cdr crypt cups dbus
dedicated divx4linux dvd dvdread eds emboss encode ffmpeg firefox flac
foomaticdb fortran ftp gdbm gif glitz gmail gnome gphoto2 gpm gstreamer gtk gtk2
hal howl imagemagick imap imlib java javascript joystick jpeg kerberos ldap
libg++ libwww lm_sensors mad mikmod mmx mmxext mono motif moznocompose moznoirc
moznomail mp3 mpeg nautilus ncurses network nls nptl nptlonly nsplugin nvidia
offensive ogg oggvorbis opengl oss pam pdf pdflib perl pic png pop3 python
quicktime readline real samba sdl spell sqlite sse ssl svg tcpd theora threads
tiff truetype truetype-fonts type1-fonts usb videos vorbis win32codecs xine xml2
xv xvid zlib linguas_sv userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL
Comment 2 Alex Kinnane 2005-09-16 07:36:16 UTC
I'm getting allmost the same thing here on amd64.



/bin/sh ../libtool --mode=link x86_64-pc-linux-gnu-gcc  -O2   -o imap-example 
imap-example.o ../util/libutil.la ../gmime/libgmime-2.0.la -Wl,--export-dynamic
-pthread -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0   -lz -lnsl
x86_64-pc-linux-gnu-gcc -O2 -o .libs/imap-example imap-example.o
-Wl,--export-dynamic -pthread  ../util/.libs/libutil.a
../gmime/.libs/libgmime-2.0.so /usr/lib64/libgobject-2.0.so
/usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libgthread-2.0.so -lpthread
/usr/lib64/libglib-2.0.so -lz -lnsl
creating imap-example
make[3]: Leaving directory
`/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16/examples'
make[2]: Leaving directory
`/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16/examples'
Making all in .
make[2]: Entering directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
sed -e 's?\@GMIME_LIBDIR\@?-L/usr/lib64?g' \
    -e 's?\@GMIME_INCLUDEDIR\@?-I/usr/include/gmime-2.0?g' \
    -e 's?\@GMIME_LIBS\@?-lgmime-2.0 -lz -lnsl?g' \
    -e 's?\@VERSION\@?2.1.16?g' \
      < ./gmimeConf.sh.in > gmimeConf.tmp \
  && mv gmimeConf.tmp gmimeConf.sh
make[2]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
make[1]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-dev-libs_-_gmime-2.1.16-22273.log"

mkdir:     /root/.wapi
open_wr:   /root/.wapi/shared_data-tsunami-6-0
--------------------------------------------------------------------------------
Comment 3 Michele Mattioni 2005-09-16 09:53:55 UTC
Also here same problem
I'm on a x86..
The emerge response
<code> make[3]: Leaving directory
`/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16/examples'
make[2]: Leaving directory
`/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16/examples'
Making all in .
make[2]: Entering directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
sed -e 's?\@GMIME_LIBDIR\@?-L/usr/lib?g' \
    -e 's?\@GMIME_INCLUDEDIR\@?-I/usr/include/gmime-2.0?g' \
    -e 's?\@GMIME_LIBS\@?-lgmime-2.0 -lz -lnsl?g' \
    -e 's?\@VERSION\@?2.1.16?g' \
      < ./gmimeConf.sh.in > gmimeConf.tmp \
  && mv gmimeConf.tmp gmimeConf.sh
make[2]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
make[1]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-dev-libs_-_gmime-2.1.16-459.log"

open_wr:   /root/.wapi/shared_data-the-tux-6-0
--------------------------------------------------------------------------------
</code>

my emerge info
<code> Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4,
glibc-2.3.5-r1, 2.6.12-suspend2-r4 i686)
=================================================================
System uname: 2.6.12-suspend2-r4 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.12.0_pre8
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe
-fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64"
CHOST="i686-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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe
-fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo/
http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/
ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch
http://gentoo.prz.rzeszow.pl"
LANG="it_IT@euro"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/portage /usr/local/overlay/gentopia
/usr/local/overlay/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 avi bash-completion bitmap-fonts bmp cdr
crypt cups curl dbus dedicated dga directfb doc dvd dvdr dvi eds emboss encode
esd fbcon firefox flac foomaticdb fortran freetds gaim gb gd gdbm gimpprint
gnome gphoto2 gpm gstreamer gtk gtk2 guile hal hddtemp howl imagemagick imap
imlib innodb ipv6 jack java jpeg junit lcms libg++ libwww mad mikmod mime mmx
motif mozcompose mozilla mp3 mpeg mpi mysql ncurses nfs nls nntp offensive ogg
oggvorbis opengl oss pam pdflib perl pic plotutils plugin png pnp pop3 ppds
python quicktime readline samba sasl scanner sdl slp snmp socks5 spell sqlite
sse ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts trusted
type1-fonts unicode usb vorbis win32codecs xine xinerama xml xml2 xmms xprint xv
zlib linguas_it userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
</code>
Comment 4 Dave Shanker 2005-09-16 20:52:04 UTC
Created attachment 68638 [details, diff]
patched to gmime-2.1.16.ebuild to fix sandbox issue

Sanbox violation is due to Mono attempting to write shared info. By default, it
uses the home directory of the user running the command, or this instance
/root. Patch Modifies src_install section to export MONO_SHARED_DIR=/tmp during
make install command.
Comment 5 miolinux 2005-09-17 14:22:31 UTC
sorry but the patch doesn't works al least for me. The ebuild still exit with
sandbox error. But your fix is right, since if i export the var before emerging
gmime it works!

emerge -av gime ---> fail
---------------------------
export MONO_SHARED_DIR="/tmp"
emerge -av gime ---> success

bye
Comment 6 Peter Johanson (RETIRED) gentoo-dev 2005-09-18 23:22:32 UTC
The correct fix for this is to use the mono eclass, which will handle all this
nastiness for you. Not sure why this was removed for the 2.1.16 ebuild, it's
present in the 2.1.15 stuff.
Comment 7 Mark D. 2005-09-21 15:06:38 UTC
Problem still exists on my amd64 box:

      < ./gmimeConf.sh.in > gmimeConf.tmp \
  && mv gmimeConf.tmp gmimeConf.sh
make[2]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
make[1]: Leaving directory `/var/tmp/portage/gmime-2.1.16/work/gmime-2.1.16'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-dev-libs_-_gmime-2.1.16-22859.log"

mkdir:     /root/.wapi
open_wr:   /root/.wapi/shared_data-stealth-7-0
--------------------------------------------------------------------------------
Comment 8 Michael Knight 2005-09-21 23:52:53 UTC
(In reply to comment #6)
> The correct fix for this is to use the mono eclass, which will handle all this
> nastiness for you. Not sure why this was removed for the 2.1.16 ebuild, it's
> present in the 2.1.15 stuff.

Just to clarify for others (as I'm a bit new to this and managed to guess
correctly) this means change:

"inherit gnome2 eutils"

to

"inherit gnome2 eutils mono"

in the gmime-2.1.16 ebuild. You will then need to

"ebuild gmime-2.1.16.ebuild digest"

unless you were smart enough to use a Portage overlay.
Comment 9 Andrej Kacian (RETIRED) gentoo-dev 2005-09-22 03:32:59 UTC
@latexer, comment #6: mono support has been removed from gmime-2.1.16, because
it needs >=gtk-sharp-1.9.5, while ebuilds for this depend were masked at the
time when gmime-2.1.6 was being added.
Looks like gmime autodetects mono packages if neither --enable-mono nor
--disable-mono is passed to configure, thus using mono if it was installed.
Without the mono eclass to handle them, these access violations occured.
I've added mono support back to gmime-2.1.16. This got rid of access violations
for me, could you guys please test 2.1.16 as well? Thanks.
Comment 10 Mark D. 2005-09-22 11:24:42 UTC
emerge =gmime-2.1.16 -1va

Works now, thanks!
Comment 11 Andrej Kacian (RETIRED) gentoo-dev 2005-09-22 12:16:26 UTC
Marking as FIXED, so guys at bug #67768 can move onward. Reopen if the problem
persists.