<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>216009</bug_id>
          
          <creation_ts>2008-04-03 09:22 0000</creation_ts>
          <short_desc>media-libs/swfdec-0.6.2: Sandbox violations</short_desc>
          <delta_ts>2008-04-07 02:12:42 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GNOME</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>TEST-REQUEST</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>214260</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>askwar@digitalprojects.com</reporter>
          <assigned_to>gnome@gentoo.org</assigned_to>
          <cc>ed@catmur.co.uk</cc>
    
    <cc>graham@gmurray.org.uk</cc>
    
    <cc>ian@abbott.org</cc>
    
    <cc>njdoyle+bugs@gmail.com</cc>
    
    <cc>pclouds@gentoo.org</cc>
    
    <cc>pocmatos@gmail.com</cc>
    
    <cc>portage@bigmichi1.dyndns.org</cc>

      

      
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2008-04-03 09:22:32 0000</bug_when>
            <thetext>[ebuild  N    ] media-libs/swfdec-0.6.2  USE=&quot;alsa doc -ffmpeg gstreamer gtk mad -oss -pulseaudio&quot; 0 kB 


--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = &quot;/var/log/sandbox/sandbox-11138.log&quot;

open_wr:   /root/.gconf/.testing.writeability
unlink:    /root/.gconf/.testing.writeability
open_wr:   /root/.gconfd/saved_state
open_wr:   /root/.gconfd/saved_state
open_wr:   /root/.gstreamer-0.10/registry.i686.xml.tmpJ3238T
open_wr:   /root/.gstreamer-0.10/registry.i686.xml.tmpXD338T
open_wr:   /root/.gconfd/saved_state
open_wr:   /root/.gconfd/saved_state
open_wr:   /root/.gconfd/saved_state
open_wr:   /root/.gconfd/saved_state
open_wr:   /root/.gconfd/saved_state.tmp
--------------------------------------------------------------------------------

--($:~)-- emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.24-tuxonice-r3.r08.mit-ide-mod_2 i686)
=================================================================
System uname: 2.6.24-tuxonice-r3.r08.mit-ide-mod_2 i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Timestamp of tree: Thu, 03 Apr 2008 06:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium-m -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /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/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-march=pentium-m -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/Gentoo/Portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--alphabetical&quot;
FEATURES=&quot;buildpkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot; 	http://ftp.heanet.ie/pub/gentoo/ 	http://ftp.gentoo.or.kr/ 	http://distfiles.gentoo.org/ 	http://www.ibiblio.org/pub/Linux/distributions/gentoo &quot;
LANG=&quot;de_CH.UTF-8&quot;
LINGUAS=&quot;de&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/Gentoo/Portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/Gentoo/Portage/build&quot;
PORTDIR=&quot;/Gentoo/Portage/tree&quot;
PORTDIR_OVERLAY=&quot;/Gentoo/Portage/local-tree/misc&quot;
SYNC=&quot;rsync://winds06:10873/gentoo-portage&quot;
USE=&quot;X acpi alsa berkdb bluetooth cairo cdr cli cracklib crypt cups dbus dmi doc dri dvd dvdr dvdread encode fam firefox fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility keyring ldap libnotify mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype unicode vorbis wifi win32codecs x86 xine xinerama xml xorg xv zlib&quot; ALSA_CARDS=&quot;hda-intel intel8x0 intel8x0m usb-audio usb-usx3y&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; APACHE2_MODULES=&quot;actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias&quot; APACHE2_MPMS=&quot;worker&quot; CAMERAS=&quot;ptp2 directory&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse synaptics&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;de&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nv nvidia vga none&quot;
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2008-04-03 09:26:57 0000</bug_when>
            <thetext>Compiling swfdec with USE=-gstreamer &quot;fixes&quot; the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ian@abbott.org</who>
            <bug_when>2008-04-03 14:01:27 0000</bug_when>
            <thetext>Compiling swfdec with USE=&quot;-doc&quot; also &quot;fixes&quot; the problem!

Here&apos;s a snippet of build output on my system:

creating swfdec-scan
gtk-doc: Running scanner swfdec-scan
ACCESS DENIED  open_wr:   /root/.gstreamer-0.10/registry.x86_64.xml.tmp3PKV8T
ACCESS DENIED  open_wr:   /root/.gstreamer-0.10/registry.x86_64.xml.tmp1JIV8T
touch scan-build.stamp
make[2]: vfork: Invalid argument
make[2]: Leaving directory `/var/tmp/portage/media-libs/swfdec-0.6.2/work/swfdec-0.6.2/doc&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/swfdec-0.6.2/work/swfdec-0.6.2&apos;
make: *** [all] Error 2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ian@abbott.org</who>
            <bug_when>2008-04-03 14:34:04 0000</bug_when>
            <thetext>I re-emerged gtk-doc (dev-util/gtk-doc-1.10-r1) and that allowed swfdec to build successfully with both the &apos;doc&apos; and &apos;gstreamer&apos; use flags.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graham@gmurray.org.uk</who>
            <bug_when>2008-04-03 18:50:44 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; I re-emerged gtk-doc (dev-util/gtk-doc-1.10-r1) and that allowed swfdec to
&gt; build successfully with both the &apos;doc&apos; and &apos;gstreamer&apos; use flags.
&gt; 

re emerging gtk-doc had no effect for me. It still shows the same sandbox violations.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ian@abbott.org</who>
            <bug_when>2008-04-04 22:12:19 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; I re-emerged gtk-doc (dev-util/gtk-doc-1.10-r1) and that allowed swfdec to
&gt; &gt; build successfully with both the &apos;doc&apos; and &apos;gstreamer&apos; use flags.
&gt; &gt; 
&gt; 
&gt; re emerging gtk-doc had no effect for me. It still shows the same sandbox
&gt; violations.

Sorry, re-emerging gtk-doc tuned out to be a red herring! What actually allowed me to emerge swfdec successfully was running the following commands after it failed:

  cd /var/tmp/portage/media-libs/swfdec-0.6.2/work/swfdec-0.6.2/doc
  make clean
  make

and then emerging swfdec again. This is not a valid fix as it leaves mess behind in the /root directory, and besides, it&apos;s easier to emerge with FEATURES=&quot;-sandbox&quot; (also not a valid fix of course).
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pclouds@gentoo.org</who>
            <bug_when>2008-04-05 16:40:01 0000</bug_when>
            <thetext>swfdec-scan is linked to libgstreamer and libgconf. As a result, when these libraries are intialized, they try to access /root.

Setting GST_REGISTRY (for example to /tmp/registry.xml) will avoid gstreamer access violation. gconf violation is more difficult though. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pclouds@gentoo.org</who>
            <bug_when>2008-04-05 17:05:33 0000</bug_when>
            <thetext>Created an attachment (id=148760)
swfdec-0.6.2.ebuild

Please try the attached ebuild. The diff is

diff --git a/media-libs/swfdec/swfdec-0.6.2.ebuild b/media-libs/swfdec/swfdec-0.6.2.ebuild
index 54b3aaf..f5c028b 100644
--- a/media-libs/swfdec/swfdec-0.6.2.ebuild
+++ b/media-libs/swfdec/swfdec-0.6.2.ebuild
@@ -59,6 +59,12 @@ src_compile() {
 	use alsa &amp;&amp; myaudio=&quot;alsa&quot;
 	myconf=&quot; --with-audio=$myaudio&quot;
 
+	# bug #216009
+	# avoid writing to /root/.gstreamer-0.10/registry.xml
+	export GST_REGISTRY=&quot;${T}&quot;/registry.xml
+	# also avoid loading gconf plugins, which may write to /root/.gconfd
+	export GST_PLUGIN_SYSTEM_PATH=&quot;${T}&quot;
+
 	econf \
 		$(use_enable doc gtk-doc) \
 		$(use_enable gstreamer) \
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ian@abbott.org</who>
            <bug_when>2008-04-05 20:17:45 0000</bug_when>
            <thetext>I cleaned out the the files left behind in the /root directory from my earlier experiments (to start with a clean slate) and tried Nguyen Thai Ngoc Duy&apos;s patched ebuild. It worked for me!

FTR, here are my USE flags for the ebuild:

[ebuild   R   ] media-libs/swfdec-0.6.2  USE=&quot;alsa doc gstreamer gtk mad -ffmpeg -oss -pulseaudio&quot; 0 kB

Thanks for the fix!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2008-04-06 12:47:38 0000</bug_when>
            <thetext>Please mark as blocking bug 214260.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pclouds@gentoo.org</who>
            <bug_when>2008-04-06 13:00:08 0000</bug_when>
            <thetext>I&apos;m waiting for at least one more user confirming this bug is fixed before I commit it. So please test.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2008-04-06 13:59:55 0000</bug_when>
            <thetext>Confirm ebuild fixes bug here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pclouds@gentoo.org</who>
            <bug_when>2008-04-06 18:45:53 0000</bug_when>
            <thetext>InCVS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pclouds@gentoo.org</who>
            <bug_when>2008-04-07 02:12:42 0000</bug_when>
            <thetext>*** Bug 216575 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>148760</attachid>
            <date>2008-04-05 17:05 0000</date>
            <desc>swfdec-0.6.2.ebuild</desc>
            <filename>swfdec-0.6.2.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA4IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L21lZGlhLWxpYnMvc3dmZGVjL3N3ZmRlYy0wLjYu
Mi5lYnVpbGQsdiAxLjEgMjAwOC8wMy8zMSAxMToyMzo1MSBsZWlvIEV4cCAkCgpFQVBJPTEKCmlu
aGVyaXQgZXV0aWxzIHZlcnNpb25hdG9yIGNvbmZ1dGlscwoKTVlfUFY9JChnZXRfdmVyc2lvbl9j
b21wb25lbnRfcmFuZ2UgMS0yKQpERVNDUklQVElPTj0iTWFjcm9tZWRpYSB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