Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44034 - emerge dox doesn't work for sandbox access denied
Summary: emerge dox doesn't work for sandbox access denied
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-08 06:57 UTC by Enrico Morelli
Modified: 2004-09-04 07:41 UTC (History)
1 user (show)

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


Attachments
dox-1.1.ebuild (corrects sandbox access violation) (dox-1.1.ebuild,1.65 KB, text/plain)
2004-09-01 08:10 UTC, robertc96
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Morelli 2004-03-08 06:57:38 UTC
When I try to emerge dox-1.1 I have a lot of the following errors:
-----------------------------------------------------------
ACCESS DENIED
open_wr:   /usr/qt/3/etc/settings/qt_plugins_3.3rc.tmp
open_wr:   /usr/qt/3/etc/settings/.qt_plugins_3.3rc.lock
open_wr:   /usr/qt/3/etc/settings/qt_plugins_3.3rc.tmp
open_wr:   /usr/qt/3/etc/settings/.qt_plugins_3.3rc.lock
open_wr:   /usr/qt/3/etc/settings/qt_plugins_3.3rc.tmp
open_wr:   /usr/qt/3/etc/settings/.qt_plugins_3.3rc.lock
open_wr:   /usr/qt/3/etc/settings/qt_plugins_3.3rc.tmp
-------------------------------------------------------------

I tried to add the following line in dox-1.1.ebuild:
src_compile() {
addpredict ${QTDIR}/etc/settings
.
.
}
without good results.

At the end to install dox I executed:

FEATURES="-sandbox" emerge dox

Reproducible: Always
Steps to Reproduce:
1. emerge dox
2.
3.

Actual Results:  
I have the sandbox errors:
ACCESS DENIED:
open_wr:   /usr/qt/3/etc/settings/.qt_plugins_3.3rc.lock
open_wr:   /usr/qt/3/etc/settings/qt_plugins_3.3rc.tmp

Expected Results:  
Install dox.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-rc1)
=================================================================
System uname: 2.6.4-rc1 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe -fomit-frame-pointer -fPIC"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/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="-O3 -mcpu=i686 -funroll-loops -pipe -fomit-frame-pointer -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.linux.no/ http://ftp.caliu.info/pub/gentoo/
http://ds.thn.htu.se/linux/gentoo
http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm
gif gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang
spell ssl svga tcltk tcpd tetex truetype video_cards_radeon x86 xml2 xmms xv zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-08 18:05:07 UTC
seeing this sort of thing a lot on qt bug reports
Comment 2 Dominik Stadler (RETIRED) gentoo-dev 2004-03-10 15:19:25 UTC
I happens if the install-target of the Makefile tries to write directly to /usr/qt/... instead of using the provided DESTDIR inside the temp portage-build-directory. The source should be fixed, we can only workaround this in the ebuilds.

Strange but I could emerge dox without problems?!
Comment 3 Manfred Knick 2004-08-16 03:42:22 UTC
Dominik,

some time ago there were problems when using 
# PORTDIR="..."
# PORTAGE_TMPDIR="..."
other than the default values, esp. when using sanbox. Sorry, I don't remember exactly ... Perhaps this relates to your wondering why for some people it works, and not for others?

Kind regards, Manfred
Comment 4 robertc96 2004-09-01 08:10:28 UTC
Created attachment 38685 [details]
dox-1.1.ebuild (corrects sandbox access violation)

Can confirm that I had the same sandbox access violation problem referred to
above when building but the attached ebuild corrects this problem.
Comment 5 Bryan Østergaard (RETIRED) gentoo-dev 2004-09-04 07:41:59 UTC
Patch confirmed working and added to the tree.