Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252636 - media-gfx/f-spot-0.5.0.3 sandbox violation
Summary: media-gfx/f-spot-0.5.0.3 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Denis Dupeyron (RETIRED)
URL: http://bugzilla.gnome.org/565733
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-26 20:46 UTC by Nicholas Doyle
Modified: 2009-02-01 16:25 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,256.18 KB, text/plain)
2009-01-02 17:09 UTC, Jason Switzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Doyle 2008-12-26 20:46:06 UTC
When I try to emerge media-gfx/f-spot-0.5.0.3 I get this sandbox violation:

make[5]: Entering directory `/var/tmp/portage/media-gfx/f-spot-0.5.0.3/work/f-spot-0.5.0.3/extensions/Exporters/FacebookExport'
rm -f /usr/lib64/f-spot/extensions/FacebookExport.addin.xml
ACCESS DENIED  unlinkat:  /usr/lib64/f-spot/extensions/FacebookExport.addin.xml
rm: cannot remove `/usr/lib64/f-spot/extensions/FacebookExport.addin.xml': Permission denied
make[5]: *** [install-data-hook] Error 1
make[5]: Leaving directory `/var/tmp/portage/media-gfx/f-spot-0.5.0.3/work/f-spot-0.5.0.3/extensions/Exporters/FacebookExport'
make[4]: *** [install-data-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/media-gfx/f-spot-0.5.0.3/work/f-spot-0.5.0.3/extensions/Exporters/FacebookExport'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/media-gfx/f-spot-0.5.0.3/work/f-spot-0.5.0.3/extensions/Exporters/FacebookExport'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/f-spot-0.5.0.3/work/f-spot-0.5.0.3/extensions/Exporters'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/f-spot-0.5.0.3/work/f-spot-0.5.0.3/extensions'
make: *** [install-recursive] Error 1
 * 
 * ERROR: media-gfx/f-spot-0.5.0.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2836:  Called gnome2_src_install
 *             environment, line 2236:  Called die
 * The specific snippet of code:
 *           emake DESTDIR="${D}" "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" install || die "install failed";
 *  The die message:
 *   install failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/f-spot-0.5.0.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/f-spot-0.5.0.3/temp/environment'.
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-18710.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: unlinkat
S: deny
P: /usr/lib64/f-spot/extensions/FacebookExport.addin.xml
A: /usr/lib64/f-spot/extensions/FacebookExport.addin.xml
R: /usr/lib64/f-spot/extensions/FacebookExport.addin.xml
C: rm -f /usr/lib64/f-spot/extensions/FacebookExport.addin.xml 
--------------------------------------------------------------------------------



emerge --info:

Portage 2.2_rc19 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.28-gentoo-njdoyle x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-njdoyle-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Fri, 26 Dec 2008 14:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-ident"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://cdot.senecac.on.ca/software/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en en_CA en_US"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/gnome /usr/local/portage/layman/java-overlay /usr/local/portage/njdoyle"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 applet avahi bash-completion beagle berkdb bidi bluetooth bonjour bzip2 cairo caps cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cups cvs daap dbus doc dri dvd dvdr eds emacs encode exif fam fbcon ffmpeg flac fluidsynth fontconfig fortran ftp fuse galago gcj gd gdbm gif git gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk hal iconv icu ieee1394 imagemagick ipod ipv6 isdnlog jabber java java6 joystick jpeg jpeg2k kpathsea latex lcms ldap libnotify libsamplerate mad maps midi mikmod mmx mmxext mng mono mp3 mpeg mudflap multilib musepack nautilus ncurses network networkmanager nls nntp nptl nptlonly nsplugin ntp ogg openal opengl openmp pam pcre pdf perl png policykit pppd python quicktime rar readline reflection resolvconf samba sdl session smp sound speex spell spl sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs t1lib tcl tcpd theora threads tiff timidity tk truetype unicode usb v4l v4l2 vim-syntax vorbis webkit wifi wxwindows x264 xattr xcb xinerama xinetd xml xorg xpm xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel usb-audio" 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" CAMERAS="canon directory fuji ricoh" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA en_US" USERLAND="GNU" VIDEO_CARDS="intel fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-12-26 22:24:39 UTC
Add this and it goes away
src_prepare() {
        sed -i -e '/rm \-f $(pl/d' \
                $(
                        grep -lr --include='Makefile.in' \
                        'rm -f \$(pl' "${S}"/extensions/Exporters
                ) || die "sed failed"
}

Comment 2 Jason Switzer 2009-01-02 17:09:54 UTC
Created attachment 177119 [details]
build.log

I have the same issue to report here, also ~amd64.
Comment 3 Juergen Rose 2009-01-11 10:23:13 UTC
The patch worked for me.
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-01-20 19:38:26 UTC
I just hit this too.  It appears to only happen on new installs of f-spot. All my upgrade installs worked fine.

The sed from comment #1 worked fine for me.
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-01 16:25:50 UTC
+*f-spot-0.5.0.3-r1 (01 Feb 2009)
+
+  01 Feb 2009; Peter Alfredsen <loki_val@gentoo.org>
+  -files/f-spot-0.1.3-mono-1.1.10.patch,
+  -files/f-spot-0.3.3-dont_eat_cpu.patch,
+  -files/f-spot-0.3.5-picasa_fix.patch,
+  -files/f-spot-0.4.2-color-adjust.patch,
+  +files/f-spot-0.5.0.3-icon-size-crash-fix.patch,
+  +files/f-spot-0.5.0.3-no-image-in-collection-crash-fix.patch,
+  metadata.xml, -f-spot-0.3.3.ebuild, -f-spot-0.3.4.ebuild,
+  -f-spot-0.3.5.ebuild, -f-spot-0.3.5-r1.ebuild, -f-spot-0.4.0.ebuild,
+  -f-spot-0.4.1.ebuild, -f-spot-0.4.2.ebuild, -f-spot-0.5.0.3.ebuild,
+  +f-spot-0.5.0.3-r1.ebuild:
+  Fix bugs 248630, 248633, 248634 and 252636. Respectively a QA warning, a
+  crasher, a crasher and a sandbox violation with new sandbox. Thanks to
+  Pacho Ramos <pacho@condmat1.ciencias.uniovi.es> for patches and QA report.
+  Remove old versions. Also add dotnet as herd.
+