Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332779 - media-sound/exaile-0.3.2.0: sandbox fails on "mkdir: /root/.local" with "make manpage"
Summary: media-sound/exaile-0.3.2.0: sandbox fails on "mkdir: /root/.local" with "make...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-15 00:25 UTC by Maxim Penzin
Modified: 2010-08-16 13:58 UTC (History)
3 users (show)

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


Attachments
emerge build.log (build.log,10.29 KB, text/plain)
2010-08-15 00:27 UTC, Maxim Penzin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Penzin 2010-08-15 00:25:48 UTC
sudo emerge exaile failed due to 

ACCESS DENIED  mkdir:        /root/.local


Reproducible: Always

Steps to Reproduce:
1. sudo emerge exaile

Actual Results:  
Failed to emerge media-sound/exaile-0.3.2.0

Expected Results:  
successful emerge
Comment 1 Maxim Penzin 2010-08-15 00:27:12 UTC
Created attachment 242995 [details]
emerge build.log
Comment 2 Jouni Rinne 2010-08-15 18:09:37 UTC
Originally, I got the same sandbox violation error. Works with FEATURES="userpriv", though.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2010-08-15 20:40:14 UTC
emerge --info please
Comment 4 Maxim Penzin 2010-08-16 05:18:05 UTC
(In reply to comment #3)

> emerge --info please

Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.12.1-r0, 2.6.35-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.35-gentoo-r1-i686-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 15 Aug 2010 11:00:19 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 a52 aac acl acpi alsa arts berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac gdbm gif glib gnome gpm gtk gtk2 hal icecast iconv id3 ipv6 java jpeg kde lcms ldap libnotify lzma mad mikmod mmx mng modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds pppd python qt3support qt4 readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff treutype truetype udev unicode usb vorbis win32codecs x264 x86 xcb xml xorg xulrunner xv xvid 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 cgi cgid 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 5 Joost Ruis 2010-08-16 06:46:33 UTC
Confirm here on x86 and amd64.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-13226.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: mkdir
S: deny
P: /root/.local/share/exaile
A: /root/.local/share/exaile
R: /root/.local/share/exaile
C: python2.6 -O ./exaile.py --startgui ./exaile --help 
--------------------------------------------------------------------------------
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-08-16 09:35:57 UTC
Paste the output of "export | grep XDG"
Comment 7 Ivan Iraci 2010-08-16 10:36:23 UTC
(In reply to comment #6)

Same here.

> Paste the output of "export | grep XDG"

# export | grep XDG
declare -x XDG_CONFIG_DIRS="/etc/xdg"
declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"


Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-08-16 11:04:32 UTC
I can't figure out way to reproduce this, so can someone try adding:

export XDG_CONFIG_HOME="${T}"

as the first line in src_compile(), before the emake command and tell me if that fixes it
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-08-16 11:10:58 UTC
Err, make that:

export XDG_DATA_HOME="${T}"

if XDG_CONFIG_HOME doesn't work...
Comment 10 Don O 2010-08-16 13:19:14 UTC
I had a copy of my last good ebuild and did this

cp exaile-0.3.1.1.ebuild exaile-0.3.2.0.ebuild

and it built fine.
Comment 11 Don O 2010-08-16 13:26:47 UTC
Additional to my last post

I had the same original problem as others with the sandbox violation.

I did change a line in the copied ebuild 

< SRC_URI="http://launchpad.net/exaile/0.3.2/${PV}/+download/${P}.tar.gz"
---
> SRC_URI="http://launchpad.net/${PN}/0.3.2/${PV}/+download/${P}.tar.gz"

and I had already updated to pygtk-2.17

But it built, and seems to be working
So I assume something in the "new" ebuild wasn't right
Comment 12 Don O 2010-08-16 13:28:02 UTC
Must be monday, lol

Change should have been
< SRC_URI="http://launchpad.net/exaile/0.3.1/${PV}/+download/${P}.tar.gz"
---
> SRC_URI="http://launchpad.net/${PN}/0.3.2/${PV}/+download/${P}.tar.gz"
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2010-08-16 13:42:39 UTC
the "emake manpage" was added in purpose for 0.3.2.0. you still didnt answer my question Comment #8 and Comment #9...
Comment 15 Don O 2010-08-16 13:48:04 UTC
I tried both
export XDG_CONFIG_HOME="${T}"
export XDG_DATA_HOME="${T}"

and still the same access violation (using the portage supplied ebuild)

I did manually create /root/.local/share/exaile
then it complained about /root/.config/exaile
which I manually added then it complained
about /root/.cache/exaile and at that point I stopped
and copied over my old ebuild to see if it would
compile which it did. So something is wrong with some
component of the portage supplied 3.2.0 ebuild
Comment 16 Don O 2010-08-16 13:55:40 UTC
This is a diff between 3.1.1 and 3.2.0 
where renaming the 3.1.1 ebuild to 3.2.0 seemed to work

3c3
< # $Header: /var/cvsroot/gentoo-x86/media-sound/exaile/exaile-0.3.1.1.ebuild,v 1.1 2010/04/16 11:37:14 ssuominen Exp $
---
> # $Header: /var/cvsroot/gentoo-x86/media-sound/exaile/exaile-0.3.2.0.ebuild,v 1.1 2010/08/14 17:33:32 ssuominen Exp $
14c14
< SRC_URI="http://launchpad.net/exaile/0.3.1/${PV}/+download/${P}.tar.gz"
---
> SRC_URI="http://launchpad.net/${PN}/0.3.2/${PV}/+download/${P}.tar.gz"
23c23
< 	>=dev-python/pygtk-2.14
---
> 	>=dev-python/pygtk-2.17
30c30,31
< DEPEND="nls? ( dev-util/intltool
---
> DEPEND="sys-apps/help2man
> 	nls? ( dev-util/intltool
33,34c34
< # Required python 'mox' module missing wrt #315589
< RESTRICT="test"
---
> RESTRICT="test" #315589
37a38
> 	python_pkg_setup
47,49c48
< 	if use nls; then
< 		emake locale || die
< 	fi
---
> 	emake manpage $(use nls && echo locale) || die
53,62c52,63
< 	local _no_locale
< 	use nls || _no_locale=_no_locale
< 
< 	emake PREFIX="/usr" LIBINSTALLDIR="/$(get_libdir)" DESTDIR="${D}" \
< 		install${_no_locale} || die
< 
< 	dodoc README
< 
< 	insinto /usr/share/exaile/data
< 	doins -r data/migrations || die
---
> 	emake \
> 		PREFIX=/usr \
> 		LIBINSTALLDIR=/$(get_libdir) \
> 		DESTDIR="${D}" \
> 		install$(use nls || echo _no_locale) || die
> 
> 	dodoc FUTURE README || die
> 
> 	if has_version "<media-sound/exaile-0.3"; then
> 		insinto /usr/share/exaile/data
> 		doins -r data/migrations || die
> 	fi
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2010-08-16 13:58:44 UTC
  16 Aug 2010; Samuli Suominen <ssuominen@gentoo.org> exaile-0.3.2.0.ebuild:
  Don't generate manpage to avoid sandbox issues with XDG directories wrt
  #332779.