Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263585 - www-client/epiphany-2.24.3-r10 sandbox violation
Summary: www-client/epiphany-2.24.3-r10 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 271250 275258 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-24 10:17 UTC by Simone
Modified: 2009-07-02 07:16 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,782.15 KB, text/plain)
2009-03-24 10:21 UTC, Simone
Details
This patched ebuild makes epiphany-2.26.2 work with xulrunner-1.9.1 (epiphany-2.26.2-r1.ebuild,2.62 KB, text/plain)
2009-05-26 01:03 UTC, Brian Johnson
Details
epiphany-2.26.2-sandbox.diff (epiphany-2.26.2-sandbox.diff,505 bytes, text/plain)
2009-06-29 05:06 UTC, Jory A. Pratt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simone 2009-03-24 10:17:14 UTC
I know there are other bugs for this, but they are marked as resolved. The reason why I'm not reopening one of the old ones is that they refer to older epiphany version.

[...]
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/tmp/portage/www-client/epiphany-2.24.3-r10/work/epiphany-2.24.3'
make[1]: Leaving directory `/var/tmp/portage/www-client/epiphany-2.24.3-r10/work/epiphany-2.24.3'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-15013.log"

open_wr:   /usr/lib64/mozilla-firefox/components/xpti.dat.tmp
open_wr:   /usr/lib64/mozilla-firefox/components/xpti.dat.tmp
open_wr:   /usr/lib64/mozilla-firefox/components/compreg.dat.tmp
open_wr:   /usr/lib64/mozilla-firefox/components/compreg.dat.tmp
--------------------------------------------------------------------------------


Reproducible: Always

Steps to Reproduce:
1. emerge epiphany




emerge --info output:

Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Turion-tm-_64_Mobile_Technology_ML-34-with-glibc2.2.5
Timestamp of tree: Mon, 23 Mar 2009 15:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/crs4"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dga dri dvd dvdr dvdread eds emacs emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gs gstreamer gtk gtk2 hal iconv imagemagick ipv6 isdnlog jpeg ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcl tcpd tetex tiff tk truetype unicode usb vorbis wmf xml xml2 xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Simone 2009-03-24 10:21:14 UTC
Created attachment 186088 [details]
build.log
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-25 09:21:03 UTC
which firefox do you have installed ? (bin/non-bin/xulrunner/...)
Comment 3 Simone 2009-03-25 09:24:53 UTC
(In reply to comment #2)
> which firefox do you have installed ? (bin/non-bin/xulrunner/...)
> 

www-client/mozilla-firefox-bin-3.0.7  USE="restrict-javascript" LINGUAS=<all disabled>
Comment 4 Simone 2009-04-14 16:28:59 UTC
I switched to non-bin firefox (3.0.8) but that didn't fix the problem.
Comment 5 Simone 2009-04-24 10:56:52 UTC
I had multiple xulrunner installations (1.8, 1.9, bin). After unmerging all of them as well as Firefox, epiphany finally merged. I don't know if this counts as a fix.
Comment 6 Mateusz Kozak 2009-05-19 15:08:57 UTC
(In reply to comment #2)
> which firefox do you have installed ? (bin/non-bin/xulrunner/...)
> 

I have also the same bug. xulrunner-1.9.1_beta4-r1, xulrunner-bin-1.8.1.19, mozilla-firefox-3.5_beta4-r1 & mozilla-firefox-bin-3.0.10
Comment 7 Brian Johnson 2009-05-22 20:05:43 UTC
This also happens with epiphany-2.26.2 as well. Adding mozilla@gentoo.org as I believe bug #265700 is a duplicate.
Comment 8 Brian Johnson 2009-05-26 01:03:23 UTC
Created attachment 192454 [details]
This patched ebuild makes epiphany-2.26.2 work with xulrunner-1.9.1

This should only be used if you have xulrunner-1.9.1 merged prior to emerging epiphany.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-26 06:30:46 UTC
*** Bug 271250 has been marked as a duplicate of this bug. ***
Comment 10 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-05-30 12:34:11 UTC
This bug needs to be fixed rather than worked around by adding add_predicts
Comment 11 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-05-30 12:49:43 UTC
Here's a shot in the dark, but does it error out with FEATURES=usersandbox ?
Comment 12 Sander Sweers 2009-05-31 18:24:35 UTC
(In reply to comment #11)
> Here's a shot in the dark, but does it error out with FEATURES=usersandbox ?

It does for me.
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-27 23:31:13 UTC
*** Bug 275258 has been marked as a duplicate of this bug. ***
Comment 14 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-06-28 13:00:15 UTC
This cause of this problem is identical to bug 247040. Remove xpti.dat and compreg.dat from firefox/xulrunner components directory, and the problem will go away. Newer xulrunner won't install it on it's own unless it's already there.
Comment 15 Jory A. Pratt gentoo-dev 2009-06-29 05:06:52 UTC
Created attachment 196033 [details]
epiphany-2.26.2-sandbox.diff

We can either patch it out here, or I can patch it out of the gecko.m4. Gnome herd let me know which way you all want to go, either way this will be a fix for all versions of epiphany. If you decide to use this we can use a simple sed to remove it.
Comment 16 Jory A. Pratt gentoo-dev 2009-06-29 05:10:50 UTC
As I said this can be easily done via sed :

--- /usr/portage/www-client/epiphany/epiphany-2.26.2.ebuild	2009-05-18 16:40:47.000000000 -0500
+++ ../gentoo/www-client/epiphany/epiphany-2.26.2.ebuild	2009-06-29 00:10:25.815645342 -0500
@@ -68,6 +68,10 @@
 	# Fix libcanberra automagic support, bug #266232
 	epatch "${FILESDIR}/${PN}-2.26.1-automagic-libcanberra.patch"
 
+	# Fix sandbox violations
+	sed -i -e "s/GECKO_XPCOM_PROGRAM_CHECK//g" "${S}"/configure.ac
+
+
 	# Make it libtool-1 compatible
 	rm -v m4/lt* m4/libtool.m4 || die "removing libtool macros failed"
 
@@ -76,14 +80,6 @@
 }
 
 src_configure() {
-	addpredict /usr/$(get_libdir)/xulrunner-1.9/components/xpti.dat
-	addpredict /usr/$(get_libdir)/xulrunner-1.9/components/xpti.dat.tmp
-	addpredict /usr/$(get_libdir)/xulrunner-1.9/components/compreg.dat.tmp
-
-	# Why are these write-opened per bug #228589 and bug #253043
-	addpredict /usr/$(get_libdir)/mozilla/components/xpti.dat
-	addpredict /usr/$(get_libdir)/mozilla/components/xpti.dat.tmp
-	addpredict /usr/$(get_libdir)/mozilla/components/compreg.dat.tmp
 
 	gnome2_src_configure
 }

This will allow for all them addpredicts to be removed once and for all.
Comment 17 Mart Raudsepp gentoo-dev 2009-06-29 08:04:06 UTC
Is it something that epiphany upstream maybe shouldn't call?

Sed'ing it out always and having to eautoreconf or patch configure too will get bothersome real quick, at least once we are able to get rid of other patches that make us eautoreconf right now.
gecko.m4 modification doesn't help for that, as upstream tarballs will have their gecko.m4 stuff in aclocal.m4, and to get ours used we need to eautoreconf too.
Comment 18 Jory A. Pratt gentoo-dev 2009-06-29 11:58:43 UTC
(In reply to comment #17)
> Is it something that epiphany upstream maybe shouldn't call?
> 
> Sed'ing it out always and having to eautoreconf or patch configure too will get
> bothersome real quick, at least once we are able to get rid of other patches
> that make us eautoreconf right now.
> gecko.m4 modification doesn't help for that, as upstream tarballs will have
> their gecko.m4 stuff in aclocal.m4, and to get ours used we need to eautoreconf
> too.
> 

This is really irrelevant. Upstream has already said the next major release will depend on webkit only, xulrunner is going on away.
Comment 19 Balazs Nemeth 2009-07-01 08:46:40 UTC
(In reply to comment #16)
> As I said this can be easily done via sed :
> 
> --- /usr/portage/www-client/epiphany/epiphany-2.26.2.ebuild     2009-05-18
> 16:40:47.000000000 -0500
> +++ ../gentoo/www-client/epiphany/epiphany-2.26.2.ebuild        2009-06-29
> 00:10:25.815645342 -0500
> @@ -68,6 +68,10 @@
>         # Fix libcanberra automagic support, bug #266232
>         epatch "${FILESDIR}/${PN}-2.26.1-automagic-libcanberra.patch"
> 
> +       # Fix sandbox violations
> +       sed -i -e "s/GECKO_XPCOM_PROGRAM_CHECK//g" "${S}"/configure.ac
> +
> +
>         # Make it libtool-1 compatible
>         rm -v m4/lt* m4/libtool.m4 || die "removing libtool macros failed"
> 
> @@ -76,14 +80,6 @@
>  }
> 
>  src_configure() {
> -       addpredict /usr/$(get_libdir)/xulrunner-1.9/components/xpti.dat
> -       addpredict /usr/$(get_libdir)/xulrunner-1.9/components/xpti.dat.tmp
> -       addpredict /usr/$(get_libdir)/xulrunner-1.9/components/compreg.dat.tmp
> -
> -       # Why are these write-opened per bug #228589 and bug #253043
> -       addpredict /usr/$(get_libdir)/mozilla/components/xpti.dat
> -       addpredict /usr/$(get_libdir)/mozilla/components/xpti.dat.tmp
> -       addpredict /usr/$(get_libdir)/mozilla/components/compreg.dat.tmp
> 
>         gnome2_src_configure
>  }
> 
> This will allow for all them addpredicts to be removed once and for all.
> 

It works for me. Thank you!
Comment 20 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-02 07:16:11 UTC
This has been fixed for 2.26.*, I don't think it makes much sense to touch 2.24.3-r10 (stable).