Building chromium fails on linux >= 3.0.0 with: >>> Emerging (4 of 4) www-client/chromium-13.0.782.107 * chromium-13.0.782.107.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/3.0.0-gentoo/build * Found sources for kernel version: * 3.0.0-gentoo * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking chromium-13.0.782.107.tar.bz2 to /tmp/portage/www-client/chromium-13.0.782.107/work >>> Source unpacked in /tmp/portage/www-client/chromium-13.0.782.107/work >>> Preparing source in /tmp/portage/www-client/chromium-13.0.782.107/work/chromium-13.0.782.107 ... * Applying chromium-system-vpx-r4.patch ... [ ok ] * Applying chromium-perl-5.14-r0.patch ... [ ok ] * Applying chromium-glibc-2.14-r0.patch ... [ ok ] * Applying chromium-libgcrypt-r0.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /tmp/portage/www-client/chromium-13.0.782.107/work/chromium-13.0.782.107 ... build/gyp_chromium --depth=. -Ddisable_sse2=1 -Duse_system_bzip2=1 -Duse_system_flac=1 -Duse_system_icu=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libwebp=1 -Duse_system_libxml=1 -Duse_system_speex=1 -Duse_system_vpx=1 -Duse_system_xdg_utils=1 -Duse_system_yasm=1 -Duse_system_zlib=1 -Duse_cups=1 -Duse_gconf=1 -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1 -Dlinux_sandbox_path=/usr/lib64/chromium-browser/chrome_sandbox -Dlinux_sandbox_chrome_path=/usr/lib64/chromium-browser/chrome -Dtarget_arch=x64 -Dwerror= Updating projects from gyp files... Traceback (most recent call last): File "build/gyp_chromium", line 171, in <module> sys.exit(gyp.main(args)) File "/tmp/portage/www-client/chromium-13.0.782.107/work/chromium-13.0.782.107/tools/gyp/pylib/gyp/__init__.py", line 323, in main 'sunos5': 'make',}[sys.platform] ] KeyError: 'linux3' * ERROR: www-client/chromium-13.0.782.107 failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 56: Called src_configure * environment, line 6372: Called die * The specific snippet of code: * egyp ${myconf} || die * * If you need support, post the output of 'emerge --info =www-client/chromium-13.0.782.107', * the complete build log and the output of 'emerge -pqv =www-client/chromium-13.0.782.107'. * The complete build log is located at '/tmp/portage/www-client/chromium-13.0.782.107/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/www-client/chromium-13.0.782.107/temp/environment'. * S: '/tmp/portage/www-client/chromium-13.0.782.107/work/chromium-13.0.782.107' The first bootstrap of chromium tries to determine what "make" to use - the python /tmp/portage/www-client/chromium-13.0.782.107/work/chromium-13.0.782.107/tools/gyp/pylib/gyp/__init__.py contains the clause: 315 # Nothing in the variable, default based on platform. 316 options.formats = [ {'darwin': 'xcode', 317 'win32': 'msvs', 318 'cygwin': 'msvs', 319 'freebsd7': 'make', 320 'freebsd8': 'make', 321 'linux2': 'make', 322 'openbsd4': 'make', 323 'sunos5': 'make',}[sys.platform] ] When building with a version of linux >= 3.0.0 the option required would be linux3. Adding a line 321: 'linux3': 'make', fixes this. Reproducible: Always
Created attachment 282087 [details, diff] chromium-linux-3.0.0.patch
*** This bug has been marked as a duplicate of bug 376219 ***
Created attachment 282091 [details, diff] patch to chromium-13.0.782.107.ebuild to use linux-3.0 patch