Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457752 - www-client/chromium-25.0.1364.58 install stuff in / when merging with keepwork after file collision
Summary: www-client/chromium-25.0.1364.58 install stuff in / when merging with keepwor...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 20:24 UTC by Wonko
Modified: 2013-02-16 15:00 UTC (History)
0 users

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


Attachments
Result of equery f chromium (equery.txt,11.00 KB, text/plain)
2013-02-15 20:25 UTC, Wonko
Details
1st Build log (www-client:chromium-25.0.1364.58:20130201-211100.log.bz2,566.59 KB, application/octet-stream)
2013-02-16 10:34 UTC, Wonko
Details
2nd build log (www-client:chromium-25.0.1364.58:20130204-161144.log.bz2,568.73 KB, application/octet-stream)
2013-02-16 10:34 UTC, Wonko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wonko 2013-02-15 20:24:15 UTC
Several chromium files are installed directly in the root directory.

Reproducible: Always

Steps to Reproduce:
1. emerge =www-client/chromium-25.0.1364.58
2. try to run chromium
3. ls -l /
Actual Results:  
wonko@weird ~ $ chromium
[3671:3671:0215/212003:FATAL:zygote_host_impl_linux.cc(125)] The SUID sandbox helper binary is missing: /usr/lib64/chromium-browser/chrome_sandbox Aborting now.

Expected Results:  
Stuff should be in the correct places. I will attach the output of equery f.

I had this before already, but cannot remember the exact version. Sorry, I had no time at that moment to report. If necessary, I can emerge -k old versions and find out.

Something must be weird with my setup, I did not find other reports. Still no time for investigation, but at least I thought I'd report.

wonko@weird ~ $ emerge --info www-client/chromium
Portage 2.2.0_alpha163 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.1-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.1-gentoo-x86_64-AMD_FX-tm-4100_Quad-Core_Processor-with-gentoo-2.2
KiB Mem:    16170704 total,    106076 free
KiB Swap:    4192252 total,   4192252 free
Timestamp of tree: Fri, 15 Feb 2013 08:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8-r1, 2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2::kde
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo zugaina nx kde enlightenment emacs dfreise proaudio science gamerlay xarthisius sunrise local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=amdfam10 -O2          -floop-interchange -floop-strip-mine -floop-block          -msse -msse2 -msse3 -msse4a -msse4.1 -msse4.2 -m3dnow          -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx          --param l1-cache-size=16          --param l1-cache-line-size=64          --param l2-cache-size=2048"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /usr/share/X11/xkb /usr/share/openvpn/easy-rsa"
CXXFLAGS="-pipe -march=amdfam10 -O2          -floop-interchange -floop-strip-mine -floop-block          -msse -msse2 -msse3 -msse4a -msse4.1 -msse4.2 -m3dnow          -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx          --param l1-cache-size=16          --param l1-cache-line-size=64          --param l2-cache-size=2048"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y --load-average=6.0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg buildsyspkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.netcologne.de/gentoo/ http://gentoo.mneisen.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs --load 5"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/portage/tmpfs"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/layman/zugaina /var/portage/layman/nx /var/portage/layman/kde /var/portage/layman/enlightenment /var/portage/layman/emacs /var/portage/layman/dfreise /var/portage/layman/pro-audio /var/portage/layman/science /var/portage/layman/gamerlay /var/portage/layman/xarthisius /var/portage/layman/sunrise /var/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aim alsa amd64 apache2 apm audiofile bash-completion bcmath berkdb bluetooth branding bzip2 cairo calendar cdda cdparanoia cdr cli consolekit cracklib crypt ctype cups cvs cxx dbus declarative dga directfb dri dts dvb dvd dvdr emacs emboss encode exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm ggi gif gimp ginac git gnutls gphoto2 gpm gtk handbook hddtemp iconv icu ieee1394 imagemagick imlib ipv6 jabber jack java javascript jbig jpeg jpeg2k kde kipi latex lcms ldap libnotify lm_sensors lzma mad maildir matroska matrox mikmod mime mmx mng modplug modules motif mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz nas ncurses nls nptl nsplugin ogg openal opengl openmp oss pam pango pch pcre pdf phonon php plasma plotutils png policykit ppds qt3support qt4 quicktime radius rdesktop readline recode ruby samba scanner sdl semantic-desktop session slang slp smp sndfile sockets sox speex spell sse sse2 sse3 ssl startup-notification subversion svg tcpd theora threads tiff truetype udev udisks unicode upower usb videos vim-syntax visualization vnc vorbis wma wmf wxwidgets wxwindows x264 xattr xcb xcomposite xine xinerama xml xosd xpm xscreensaver xv xvid zlib" ABI_X86="64" 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="cgi alias auth_basic authn_file authz_groupfile authz_host authz_owner authz_user dir mime userdir" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="serial" MISDN_CARDS="avmfritz" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="canon_pp microtek plustek_pp" USERLAND="GNU" VIDEO_CARDS="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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

www-client/chromium-25.0.1364.58 was built with the following:
USE="cups -bindist -custom-cflags -gnome -gnome-keyring -kerberos (-pulseaudio) (-selinux) (-system-ffmpeg) (-tcmalloc) -test" LINGUAS="de -am -ar -bg -bn -ca -cs -da -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW"
Comment 1 Wonko 2013-02-15 20:25:20 UTC
Created attachment 339012 [details]
Result of equery f chromium

Here you see which files are in the wrong location.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-15 20:56:46 UTC
That version is no longer present, it was removed as part of a version bump:

  15 Feb 2013; Mike Gilbert <floppym@gentoo.org> +chromium-25.0.1364.84.ebuild,
  -chromium-25.0.1364.58.ebuild:
  Beta channel bump.

I have not seen any other reports fly by so it feels specific to your configuration, assigning anyway so they can maybe revise this to avoid this from happening.

My guess is that the pkg_setup function isn't called on your system.
Comment 3 Mike Gilbert gentoo-dev 2013-02-15 21:00:43 UTC
Build log or it didn't happen. ;)
Comment 4 Wonko 2013-02-16 10:34:03 UTC
Created attachment 339038 [details]
1st Build log

Whoops!

It appears I had a file collision with /usr/lib64/chromium-browser/nacl_irt_x86_{64.32}.nexe, so I emerged again with FEATURES="keepwork -collision-protect".

The strip command at the very end of the first build log gives:

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
   usr/lib64/chromium-browser/chrome
   usr/lib64/chromium-browser/chrome_sandbox
   usr/lib64/chromium-browser/chromedriver
   usr/lib64/chromium-browser/nacl_helper
   usr/lib64/chromium-browser/nacl_helper_bootstrap
   usr/lib64/chromium-browser/nacl_irt_srpc_x86_32.nexe
   usr/lib64/chromium-browser/nacl_irt_srpc_x86_64.nexe
   usr/lib64/chromium-browser/nacl_irt_x86_32.nexe
   usr/lib64/chromium-browser/nacl_irt_x86_64.nexe
   usr/lib64/chromium-browser/libppGoogleNaClPluginChrome.so
   usr/lib64/chromium-browser/libffmpegsumo.so

The second emerge's strip result is:

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
   chrome
   nacl_helper
   chrome_sandbox
   chromedriver
   nacl_helper_bootstrap
   nacl_irt_x86_64.nexe
   nacl_irt_srpc_x86_32.nexe
   nacl_irt_srpc_x86_64.nexe
   nacl_irt_x86_32.nexe
   libppGoogleNaClPluginChrome.so
   libffmpegsumo.so

Somehow the path gets omitted, no idea why. The same happened with another build, and probably would have happened again when building chromium-25.0.1364.84, but I deleted the /usr/lib64/chromium-browser/nacl_irt_x86_{64.32}.nexe files, and it built file now.

My problem is solved, but this _is_ a bug, right? I do the keepwork stuff fairly often, usually this works. But making this install stuff in the wrong place is not good.
Comment 5 Wonko 2013-02-16 10:34:56 UTC
Created attachment 339040 [details]
2nd build log
Comment 6 Mike Gilbert gentoo-dev 2013-02-16 15:00:52 UTC
First thing: keepwork is not supported as an end-user feature. It is intended for developers who need to repeatedly test something.

That said, here is my analysis:

The first merge leaves all of the PORTAGE_TMPDIR files behind when the collision occurs, including the ".setuped" file.

On the second merge, the environment file in ${T}/environment is wiped out because FEATURES=keeptemp is not set. The pkg_setup function is skipped because the .setuped file still exists. Therefore, the CHROMIUM_HOME variable is never set to anything.

It would probably work if you removed the .setuped file between the two merges, or set FEATURES="keeptemp keepwork".