Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42371 - Opera sandbox violation
Summary: Opera sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-21 07:53 UTC by aent
Modified: 2004-06-07 13:25 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 aent 2004-02-21 07:53:42 UTC
>>> Install opera-7.23-r1 into /var/tmp/portage/opera-7.23-r1/image/ category net-www
 
System wide configuration files:
  /var/tmp/portage/opera-7.23-r1/image//etc/opera6rc
  /var/tmp/portage/opera-7.23-r1/image//etc/opera6rc.fixed
 cannot be prefixed
Do you want to install them [ y,n | yes,no ] ?
ACCESS DENIED  mkdir:     /opt/kde/share/icons
mkdir: cannot create directory `/opt/kde/share/icons': Permission denied
chmod: failed to get attributes of `/opt/kde/share/icons': No such file or directory
man:
prepallstrip:
strip:
strip:
   opt/opera/lib/opera/7.23-20031119.5/m2.so
   opt/opera/lib/opera/7.23-20031119.5/opera
   opt/opera/lib/opera/7.23-20031119.5/works
   opt/opera/lib/opera/7.23-20031119.5/missingsyms.so
   opt/opera/lib/opera/plugins/libnpp.so
   opt/opera/lib/opera/plugins/operaplugincleaner
   opt/opera/lib/opera/plugins/operamotifwrapper-3
   opt/opera/lib/opera/plugins/operamotifwrapper
>>> Completed installing into /var/tmp/portage/opera-7.23-r1/image/
 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-net-www_-_opera-7.23-r1-21422.log"
 
mkdir:     /opt/kde/share/icons
--------------------------------------------------------------------------------
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-21 17:33:15 UTC
does this only happen with 7.23-r1 or also with 7.23, please provide "emerge info"
Comment 2 aent 2004-02-21 19:43:08 UTC
It seems to be the fault of not having KDE 3.1 but rather KDE 3.2 (with KDE 3.1 actually unmerged) so I don't have /opt/kde let alone /opt/kde/share/icons... happens on all Opera ebuilds now, not just -r1, when I installed the last one I had KDE 3.1 still...

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/resin/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://gentoo.noved.org/ ftp://gentoo.mirrors.pair.com ftp://ftp.uesb.edu/pub/mirrors/linux/gentoo http://www.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="X aalib accessibility acl acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups curl dga directfb doc dvb dvd encode esd evo faad fbcon firebird flac flash foomaticdb freetds gd gdbm gif glut gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib informix innodb jack java jikes joystick jpeg kde ladcca lcms ldap libg++ libgda libwww lirc mad mcal mikmod mmx motif mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg mysql nas ncurses netcdf nls nvidia oggvorbis opengl optional-tasks oss pam pdflib perl plotutils png pnp postgres python qt quicktime readline regexp rhino ruby samba sasl scanner sdl slang spell sqlite sse ssl svga tcltk tcpd tetex tiff transcode truetype unicode usb wmf wxwindows x86 xine xinerama xml xml2 xmms xosd xv xvid zlib"
Comment 3 Kimmo Sundqvist 2004-02-22 02:23:40 UTC
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-net-www_-_opera-7.23-r1-10236.log"
 
mkdir:     /opt/gnome/share/pixmaps
open_wr:   /opt/gnome/share/pixmaps/opera.xpm
--------------------------------------------------------------------------------

I have Gnome 2.4 and KDE 3.2

USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 imlib jack java jpeg kde ladcca libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype wmf x86 xml2 xmms xv zlib"
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-22 14:46:42 UTC
do you have a /opt/gnome (/opt/kde) dir, and if to which package to they belong
Comment 5 aent 2004-02-22 17:19:29 UTC
I don't have /opt/gnome or /opt/kde... I had /opt/kde back when I was on KDE 3.1 but when I updated to 3.2 and removed the 3.1 packages, it took it out...

Don't know if I ever had /opt/gnome
Comment 6 aent 2004-02-29 08:35:33 UTC
Well, just tried it again, works properly now, marking this FIXED...
Comment 7 Kimmo Sundqvist 2004-03-02 05:46:46 UTC
etcat -b /opt/gnome returns nothing.  The directory exists.
/opt/kde doesn't exist

emerge opera (or emerge =opera-7.23-r1) still results in errors.  About the same happens with any Opera version now available.  Ask for "emerge info" or other version numbers if necessasy.

>>> Source unpacked.
 
>>> Install opera-7.23-r1 into /var/tmp/portage/opera-7.23-r1/image/ category net-www
 
System wide configuration files:
  /var/tmp/portage/opera-7.23-r1/image//etc/opera6rc
  /var/tmp/portage/opera-7.23-r1/image//etc/opera6rc.fixed
 cannot be prefixed
Do you want to install them [ y,n | yes,no ] ?
ACCESS DENIED  open_wr:   /opt/gnome/share/pixmaps/opera.xpm
cp: cannot create regular file `/opt/gnome/share/pixmaps/opera.xpm': Permission denied
man:
prepallstrip:
strip:
strip:
   opt/opera/lib/opera/7.23-20031119.5/m2.so
   opt/opera/lib/opera/7.23-20031119.5/opera
   opt/opera/lib/opera/7.23-20031119.5/works
   opt/opera/lib/opera/7.23-20031119.5/missingsyms.so
   opt/opera/lib/opera/plugins/libnpp.so
   opt/opera/lib/opera/plugins/operaplugincleaner
   opt/opera/lib/opera/plugins/operamotifwrapper-3
   opt/opera/lib/opera/plugins/operamotifwrapper
>>> Completed installing into /var/tmp/portage/opera-7.23-r1/image/
 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-net-www_-_opera-7.23-r1-19780.log"
 
open_wr:   /opt/gnome/share/pixmaps/opera.xpm
--------------------------------------------------------------------------------
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-02 05:49:14 UTC
what does qpkg -f /opt/gnome say? is there any content in /opt/gnome ?
Comment 9 Kimmo Sundqvist 2004-03-05 09:48:37 UTC
"qpkg -f /opt/gnome" says nothing

/opt/gnome # ls -l
total 2
drwxr-xr-x    2 root     root          136 Feb 13 17:29 bin/
drwxr-xr-x    3 root     root          760 Feb 13 17:29 lib/
drwxr-xr-x    5 root     root          128 Mar  2 15:33 share/
/opt/gnome # du * -cxks
9513    bin
12721   lib
15474   share
37707   total
/opt/gnome #
Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-05 11:08:03 UTC
what about

ls -lR /opt/gnome
Comment 11 Kimmo Sundqvist 2004-03-08 04:17:39 UTC
/ # ls -lR /opt/gnome
/opt/gnome:
total 2
drwxr-xr-x  2 root root  48 Mar  8 13:59 bin/
drwxr-xr-x  2 root root  48 Mar  8 13:59 lib/
drwxr-xr-x  4 root root 104 Mar  8 13:59 share/
 
/opt/gnome/bin:
total 0
 
/opt/gnome/lib:
total 0
 
/opt/gnome/share:
total 2
drwxr-xr-x   2 root root  48 Mar  8 13:59 applications/
drwxr-xr-x  38 root root 912 Feb 13 17:29 locale/
 
/opt/gnome/share/applications:
total 0
 
/opt/gnome/share/locale:
total 18
drwxr-xr-x  3 root root 80 Feb 13 17:29 ca/
drwxr-xr-x  3 root root 80 Feb 13 17:29 cs/
drwxr-xr-x  3 root root 80 Feb 13 17:29 da/
drwxr-xr-x  3 root root 80 Feb 13 17:29 de/
drwxr-xr-x  3 root root 80 Feb 13 17:29 el/
drwxr-xr-x  3 root root 80 Feb 13 17:29 en_GB/
drwxr-xr-x  3 root root 80 Feb 13 17:29 es/
drwxr-xr-x  3 root root 80 Feb 13 17:29 fi/
drwxr-xr-x  3 root root 80 Feb 13 17:29 fr/
drwxr-xr-x  3 root root 80 Feb 13 17:29 ga/
drwxr-xr-x  3 root root 80 Feb 13 17:29 gl/
drwxr-xr-x  3 root root 80 Feb 13 17:29 he/
drwxr-xr-x  3 root root 80 Feb 13 17:29 hr/
drwxr-xr-x  3 root root 80 Feb 13 17:29 hu/
drwxr-xr-x  3 root root 80 Feb 13 17:29 id/
drwxr-xr-x  3 root root 80 Feb 13 17:29 it/
drwxr-xr-x  3 root root 80 Feb 13 17:29 ja/
drwxr-xr-x  3 root root 80 Feb 13 17:29 ko/
drwxr-xr-x  3 root root 80 Feb 13 17:29 ms/
drwxr-xr-x  3 root root 80 Feb 13 17:29 nl/
drwxr-xr-x  3 root root 80 Feb 13 17:29 no/
drwxr-xr-x  3 root root 80 Feb 13 17:29 pl/
drwxr-xr-x  3 root root 80 Feb 13 17:29 pt/
drwxr-xr-x  3 root root 80 Feb 13 17:29 pt_BR/
drwxr-xr-x  3 root root 80 Feb 13 17:29 ro/
drwxr-xr-x  3 root root 80 Feb 13 17:29 ru/
drwxr-xr-x  3 root root 80 Feb 13 17:29 sk/
drwxr-xr-x  3 root root 80 Feb 13 17:29 sr/
drwxr-xr-x  3 root root 80 Feb 13 17:29 sr@Latn/
drwxr-xr-x  3 root root 80 Feb 13 17:29 sv/
drwxr-xr-x  3 root root 80 Feb 13 17:29 tr/
drwxr-xr-x  3 root root 80 Feb 13 17:29 uk/
drwxr-xr-x  3 root root 80 Feb 13 17:29 vi/
drwxr-xr-x  3 root root 80 Feb 13 17:29 yi/
drwxr-xr-x  3 root root 80 Feb 13 17:29 zh_CN/
drwxr-xr-x  3 root root 80 Feb 13 17:29 zh_TW/
 
AND every one of these directories contained a directory called LC_MESSAGES

The problem was caused by having gimp2-2.0pre3-100.SuSE.ulb.2.i586.rpm installed.  The hierarchy was full of gimp2's stuff, and after using "rpm -e gimp2" the directories were all empty.  Opera still failed to emerge.  But, doing "rm -r /opt/gnome" helped, and Opera emerged successfully.  I can't understand it, because opera didn't recreate (and so really didn't need) /opt/gnome.
Comment 12 MAL 2004-06-07 13:25:35 UTC
I'm still seeing this, the last 3 opera upgrades have needed FEATURES="-*" to emerge them.

Can we un-resolve this bug?

I'm willing to provide more info if anyone knows what the cause is likely to be.