Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374413 - www-client/firefox-5.0-r2: build fails due to /root/.gconf/.testing.writeability sandbox violation
Summary: www-client/firefox-5.0-r2: build fails due to /root/.gconf/.testing.writeabil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 375537 380033 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-08 07:41 UTC by Johan Pretorius
Modified: 2011-08-21 18:44 UTC (History)
5 users (show)

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


Attachments
firefox-5.0-r2_gconf-sandbox-fix.diff (firefox-5.0-r2_gconf-sandbox-fix.diff,424 bytes, text/plain)
2011-07-11 01:00 UTC, Rick Harris
Details
Build log file (build.log.gz,730.59 KB, application/gzip)
2011-07-11 18:46 UTC, Johan Pretorius
Details
firefox-5.0-r2_gconf-sandbox-fix.diff (firefox-5.0-r2_gconf-sandbox-fix.diff,449 bytes, patch)
2011-07-11 22:30 UTC, Rick Harris
Details | Diff
updated diff between broken official ebuild and working ebuild (updated_sandbox.diff,963 bytes, patch)
2011-08-13 10:25 UTC, Marc Arens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Pretorius 2011-07-08 07:41:21 UTC
Emerge firefox-5.0-r2. Emerge fails with 

if test -d ./dist/bin ; then touch ./dist/bin/.purgecaches ; fi
make[2]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu'
make[1]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-19976.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: open_wr
S: deny
P: /root/.gconf/.testing.writeability
A: /root/.gconf/.testing.writeability
R: /root/.gconf/.testing.writeability
C: /usr/libexec/gconfd-2 

Reproducible: Always

Steps to Reproduce:
jumper log # emerge -vauDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] www-client/firefox-5.0-r2 [5.0-r1] USE="alsa dbus ipc libnotify methodjit%* pgo startup-notification webm -bindist -custom-cflags% -custom-optimization -debug -system-sqlite -wifi (-gconf%*) (-hardened%)" LINGUAS="-af -ak -ar -ast -be -bg -bn -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en -en_GB% -en_US% -en_ZA% -eo -es -es_AR% -es_CL% -es_ES -es_MX% -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gd -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -hy -hy_AM -id -is -it -ja -kk -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb -nb_NO -nl -nn -nn_NO -nso -or -pa -pa_IN -pl -pt -pt_BR% -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh% -zh_CN% -zh_TW% -zu" 0 kB [0]
[ebuild     UD~] net-libs/xulrunner-2.0.1-r1 [5.0_beta5] USE="alsa crashreporter dbus ipc libnotify startup-notification webm -custom-cflags% -custom-optimization -debug -gconf -system-sqlite -wifi" 0 kB [1=>0]
[ebuild   R    ] mail-client/thunderbird-3.1.10  USE="alsa crypt custom-optimization dbus gnome ldap libnotify startup-notification -bindist -custom-cflags% -debug -lightning -mozdom -system-sqlite -wifi" LINGUAS="-af -ar -be -bg -bn -bn_BD -ca -cs -da -de -el -en -en_GB -en_US -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -he -hu -id -is -it -ja -ko -lt -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB [0]
[ebuild   R    ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus libnotify startup-notification -custom-cflags% -custom-optimization -debug -system-sqlite -wifi" 0 kB [1]

Total: 4 packages (1 upgrade, 1 downgrade, 2 reinstalls), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /var/lib/layman/mozilla

Would you like to merge these packages? [Yes/No] 



Portage 2.1.10.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.2, glibc-2.12.2-r0, 2.6.38-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.06GHz-with-gentoo-2.0.2
Timestamp of tree: Fri, 08 Jul 2011 01:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo mozilla my_local_overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -march=native -pipe -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/"
LANG="en_ZA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/var/lib/layman/mozilla /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/"
USE="X a52 aac acl acpi alsa bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt css cups cxx dbus dri dts dv dvd dvdr eds encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk iconv jack jpeg jpeg2k lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python qt3support raw readline sdl session spell sse sse2 ssl startup-notification svg svga sysfs tcpd theora tiff truetype udev unicode usb v4l v4l2 vcd vim-syntax vorbis wavpack win32codecs wmf x264 x86 xcb xml xmp xorg xv xvid xvmc zlib" ALSA_CARDS="ca0106" 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rick Harris 2011-07-11 01:00:58 UTC
Created attachment 279693 [details]
firefox-5.0-r2_gconf-sandbox-fix.diff

Patch on firefox-5.0-r2.ebuild to insert an addpredict before issuing make, please test.
Comment 2 Johan Pretorius 2011-07-11 18:46:28 UTC
Created attachment 279793 [details]
Build log file

I applied the patch to the build file.
emerge -vauDN firefox

Same result.

Added attachment of the build log file.

if test -d ./dist/bin ; then touch ./dist/bin/.purgecaches ; fi
make[2]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu'
make[1]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-20553.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: open_wr
S: deny
P: /etc/gconf/gconf.xml.mandatory/.testing.writeability
A: /etc/gconf/gconf.xml.mandatory/.testing.writeability
R: /etc/gconf/gconf.xml.mandatory/.testing.writeability
C: /usr/libexec/gconfd-2 

F: unlink
S: deny
P: /etc/gconf/gconf.xml.mandatory/.testing.writeability
A: /etc/gconf/gconf.xml.mandatory/.testing.writeability
R: /etc/gconf/gconf.xml.mandatory/.testing.writeability
C: /usr/libexec/gconfd-2 

F: open_wr
S: deny
P: /etc/gconf/gconf.xml.system/.testing.writeability
A: /etc/gconf/gconf.xml.system/.testing.writeability
R: /etc/gconf/gconf.xml.system/.testing.writeability
C: /usr/libexec/gconfd-2 

F: unlink
S: deny
P: /etc/gconf/gconf.xml.system/.testing.writeability
A: /etc/gconf/gconf.xml.system/.testing.writeability
R: /etc/gconf/gconf.xml.system/.testing.writeability
C: /usr/libexec/gconfd-2 

F: open_wr
S: deny
P: /etc/gconf/gconf.xml.defaults/.testing.writeability
A: /etc/gconf/gconf.xml.defaults/.testing.writeability
R: /etc/gconf/gconf.xml.defaults/.testing.writeability
C: /usr/libexec/gconfd-2 

F: unlink
S: deny
P: /etc/gconf/gconf.xml.defaults/.testing.writeability
A: /etc/gconf/gconf.xml.defaults/.testing.writeability
R: /etc/gconf/gconf.xml.defaults/.testing.writeability
C: /usr/libexec/gconfd-2 
--------------------------------------------------------------------------------

>>> Failed to emerge www-client/firefox-5.0-r2, Log file:

>>>  '/var/tmp/portage/www-client/firefox-5.0-r2/temp/build.log'
Comment 3 Rick Harris 2011-07-11 22:26:28 UTC
(In reply to comment #2)
<snip>
> F: open_wr
> S: deny
> P: /etc/gconf/gconf.xml.mandatory/.testing.writeability
> A: /etc/gconf/gconf.xml.mandatory/.testing.writeability
> R: /etc/gconf/gconf.xml.mandatory/.testing.writeability
> C: /usr/libexec/gconfd-2 
</snip>

Some progress, the /root/.gconf violation is fixed, now need the same addpredict for /etc/gconf.
Comment 4 Rick Harris 2011-07-11 22:30:06 UTC
Created attachment 279805 [details, diff]
firefox-5.0-r2_gconf-sandbox-fix.diff

Addpredict patch to firefox-5.0-r2.ebuild to fix violations in /root and /etc/gconf
Comment 5 Johan Pretorius 2011-07-12 15:27:55 UTC
Applied patch.

Result:
i686-pc-linux-gnu-g++ -o pickle.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXCLUDE_SKIA_DEPENDENCIES -DCHROMIUM_MOZILLA_BUILD  -DOS_LINUX=1 -DOS_POSIX=1  -I../../dist -I/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/ipc/chromium/src -I/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/ipc/glue -I../../ipc/ipdl/_ipdlheaders  -I/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/ipc/chromium -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -march=native -pipe -mno-avx -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -g -fprofile-generate -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libdrm -I/usr/include/gtk-unix-print-2.0   -O2   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/pickle.pp /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/ipc/chromium/src/base/pickle.cc
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/g++-v4/deque:68:0,
                 from ../../dist/system_wrappers/deque:3,
                 from ../../dist/stl_wrappers/deque:81,
                 from /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/ipc/chromium/src/base/message_loop.h:8,
                 from /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/ipc/chromium/src/base/message_loop.cc:5:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/g++-v4/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_insert_aux(std::deque<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::deque::size_type) [with _ForwardIterator = std::_Deque_iterator<MessageLoop::PendingTask, const MessageLoop::PendingTask&, const MessageLoop::PendingTask*>, _Tp = MessageLoop::PendingTask, _Alloc = std::allocator<MessageLoop::PendingTask>, std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<MessageLoop::PendingTask, MessageLoop::PendingTask&, MessageLoop::PendingTask*>, std::deque::size_type = unsigned int]':
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/g++-v4/bits/deque.tcc:719:7: internal compiler error: in record_set, at alias.c:1131
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make[6]: *** [message_loop.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/ipc/chromium'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/ipc'
make[4]: *** [libs_tier_platform] Error 2
make[4]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu'
make[3]: *** [tier_platform] Error 2
make[3]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu'
make[1]: *** [realbuild] Error 2
make[1]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release'
make: *** [profiledbuild] Error 2
emake failed
 * ERROR: www-client/firefox-5.0-r2 failed (compile phase):
 *   virtualmake: the emake failed.
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 6599:  Called Xemake '-f' 'client.mk' 'profiledbuild'
 *   environment, line  551:  Called virtualmake '-f' 'client.mk' 'profiledbuild'
 *   environment, line 7636:  Called die
 * The specific snippet of code:
 *       [[ ${retval} -ne 0 ]] && die "${FUNCNAME}: the ${VIRTUALX_COMMAND} failed.";
 * 
 * If you need support, post the output of 'emerge --info =www-client/firefox-5.0-r2',
 * the complete build log and the output of 'emerge -pqv =www-client/firefox-5.0-r2'.
 * This ebuild is from an overlay named 'my_local_overlay': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/www-client/firefox-5.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-5.0-r2/temp/environment'.
 * S: '/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release'

>>> Failed to emerge www-client/firefox-5.0-r2, Log file:

>>>  '/var/tmp/portage/www-client/firefox-5.0-r2/temp/build.log'
Comment 6 Johan Pretorius 2011-07-16 06:18:40 UTC
Problem solved.
Comment 7 Jory A. Pratt gentoo-dev 2011-07-18 20:12:12 UTC
*** Bug 375537 has been marked as a duplicate of this bug. ***
Comment 8 Jory A. Pratt gentoo-dev 2011-07-18 20:16:27 UTC
Re-opening due to fix not being in tree as of yet.
Comment 9 Marc Arens 2011-08-13 10:24:15 UTC
I just tested an ebuild that included the patch from Rick Harris and was able to merge a pgo enabled firefox successfully. I'll add an updated diff to this bug.
Comment 10 Marc Arens 2011-08-13 10:25:45 UTC
Created attachment 283151 [details, diff]
updated diff between broken official ebuild and working ebuild
Comment 11 Amit Prakash Ambasta 2011-08-19 03:49:26 UTC
This bug effects firefox-6 ebuild in the mozilla overlay as well.
Comment 12 Jory A. Pratt gentoo-dev 2011-08-21 16:12:42 UTC
*** Bug 380033 has been marked as a duplicate of this bug. ***
Comment 13 Jory A. Pratt gentoo-dev 2011-08-21 18:44:07 UTC
Fixed in Fx-6.0 thanks for reporting.