Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337543 - www-client/chromium-9999 requires gnome-keyring at build time
Summary: www-client/chromium-9999 requires gnome-keyring at build time
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Chromium Project
URL:
Whiteboard: ht-wanted
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-15 19:59 UTC by Joe Kappus
Modified: 2010-09-23 12:32 UTC (History)
2 users (show)

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


Attachments
gnome-keyring patch log (chromium-gnome-keyring-r0.patch.out,6.07 KB, text/plain)
2010-09-18 05:41 UTC, Daniel Douglas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kappus 2010-09-15 19:59:53 UTC
The chromium-9999 ebuild requires gnome-keyring to be installed as a build dep regardless of whether the gnome-keyring USE flag is set.  It will fail before it even starts the build.

Reproducible: Always

Steps to Reproduce:
1. don't install gnome-keyring
2. emerge chromium
3. watch as bricks are shat

Actual Results:  
bricks are shat

Expected Results:  
chromium hopefully builds?

Easy fix, add gnome-keyring to deps, change:

        gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )

to 

        >=gnome-base/gnome-keyring-2.28.2

PROFIT!
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-09-16 17:00:44 UTC
Please post emerge --info and the failure log.
Comment 2 Joe Kappus 2010-09-16 20:54:33 UTC
This is all you get.  Pretty obvious. Fails right after the svn checkout.



Checked out revision 40423.
Syncing projects: 100% (57/57), done.  

________ running '/usr/bin/python2.6 src/build/gyp_chromium' in '/usr/portage/distfiles/svn-src/chromium'
Updating projects from gyp files...
Package gnome-keyring-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnome-keyring-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnome-keyring-1' found
Traceback (most recent call last):
  File "src/build/gyp_chromium", line 97, in <module>
    sys.exit(gyp.main(args))
  File "src/tools/gyp/pylib/gyp/__init__.py", line 445, in main
    options.circular_check)
  File "src/tools/gyp/pylib/gyp/__init__.py", line 84, in Load
    depth, generator_input_info, check, circular_check)
  File "src/tools/gyp/pylib/gyp/input.py", line 2148, in Load
    depth, check)
  File "src/tools/gyp/pylib/gyp/input.py", line 422, in LoadTargetBuildFile
    includes, depth, check)
  File "src/tools/gyp/pylib/gyp/input.py", line 422, in LoadTargetBuildFile
    includes, depth, check)
  File "src/tools/gyp/pylib/gyp/input.py", line 422, in LoadTargetBuildFile
    includes, depth, check)
  File "src/tools/gyp/pylib/gyp/input.py", line 380, in LoadTargetBuildFile
    build_file_path)
  File "src/tools/gyp/pylib/gyp/input.py", line 967, in ProcessVariablesAndConditionsInDict
    build_file)
  File "src/tools/gyp/pylib/gyp/input.py", line 982, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)
  File "src/tools/gyp/pylib/gyp/input.py", line 941, in ProcessVariablesAndConditionsInDict
    ProcessConditionsInDict(the_dict, is_late, variables, build_file)
  File "src/tools/gyp/pylib/gyp/input.py", line 818, in ProcessConditionsInDict
    variables, build_file)
  File "src/tools/gyp/pylib/gyp/input.py", line 960, in ProcessVariablesAndConditionsInDict
    build_file, key)
  File "src/tools/gyp/pylib/gyp/input.py", line 967, in ProcessVariablesAndConditionsInDict
    build_file)
  File "src/tools/gyp/pylib/gyp/input.py", line 986, in ProcessVariablesAndConditionsInList
    expanded = ExpandVariables(item, is_late, variables, build_file)
  File "src/tools/gyp/pylib/gyp/input.py", line 653, in ExpandVariables
    (contents, p.returncode))
Exception: Call to 'pkg-config --cflags gnome-keyring-1' returned exit status 1. while loading dependencies of src/base/base.gyp while loading dependencies of src/app/app.gyp while loading dependencies of src/build/all.gyp while trying to load src/build/all.gyp
Error: /usr/bin/python2.6 src/build/gyp_chromium in /usr/portage/distfiles/svn-src/chromium returned 1
 * ERROR: www-client/chromium-9999 failed:
 *   gclient: can't fetch to chromium from http://src.chromium.org/svn/trunk/src/.
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_unpack
 *   environment, line 2861:  Called die
 * The specific snippet of code:
 *       ${EGCLIENT} sync || die "gclient: can't fetch to ${PN} from ${EGCLIENT_REPO_URI}.";
 * 
 * If you need support, post the output of 'emerge --info =www-client/chromium-9999',
 * the complete build log and the output of 'emerge -pqv =www-client/chromium-9999'.
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-9999/temp/environment'.
 * S: '/var/tmp/portage/www-client/chromium-9999/work/chromium-9999'

>>> Failed to emerge www-client/chromium-9999, Log file:

>>>  '/var/tmp/portage/www-client/chromium-9999/temp/build.log'

 * Messages for package www-client/chromium-9999:

 * ERROR: www-client/chromium-9999 failed:
 *   gclient: can't fetch to chromium from http://src.chromium.org/svn/trunk/src/.
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_unpack
 *   environment, line 2861:  Called die
 * The specific snippet of code:
 *       ${EGCLIENT} sync || die "gclient: can't fetch to ${PN} from ${EGCLIENT_REPO_URI}.";
 * 
 * If you need support, post the output of 'emerge --info =www-client/chromium-9999',
 * the complete build log and the output of 'emerge -pqv =www-client/chromium-9999'.
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-9999/temp/environment'.
 * S: '/var/tmp/portage/www-client/chromium-9999/work/chromium-9999'
Comment 3 Daniel Douglas 2010-09-18 05:41:31 UTC
Created attachment 247749 [details]
gnome-keyring patch log

Failed to apply chromium-gnome-keyring-r0.patch. may or may not be related.
Comment 4 Nico Baggus 2010-09-18 09:35:40 UTC
Just for record keeping.
And now for the non-gnome users..... not having any gnome infra.
Or this is package is just another one to drop. (forme).
Comment 5 Tomáš Hlušička 2010-09-19 05:28:30 UTC
Chromium still need gnomekeyring

[ebuild  N    ] gnome-base/gnome-keyring-2.30.3  USE="pam -debug -doc -test" 1,556 kB
[ebuild  N    ] gnome-base/libgnome-keyring-2.30.1  USE="-debug -doc -test" 794 kB
[ebuild  N    ] www-client/chromium-6.0.472.59-r1  USE="sse2 -cups -gnome-keyring" 121,083 kB
Comment 6 Mike Gilbert gentoo-dev 2010-09-20 01:38:05 UTC
This is probably happening because gyp_chromium is called implicitly by the a gclient hook in src/DEPS. When this happens, use_gnome_keyring has its default value (1), so the pkgconfig logic in src/build/system.gyp gets called.

The subsequent call to gyp_chromium in src_configure() sets use_gnome_keyring=0, so the pkgconfig logic will be avoided.

Calling "gclient sync --nohooks" will prevent the extraneous call to gyp_chromium.
Comment 7 Mike Gilbert gentoo-dev 2010-09-20 01:42:09 UTC
Correction: The pkg-config call is in "src/build/linux/system.gyp".
Comment 8 Enne Eziarc 2010-09-22 20:56:42 UTC
chromium-gnome-keyring-r0.patch no longer applies on -9999, it seems to have been merged upstream (I can compile it without gnome-keyring installed now)
Comment 9 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-09-23 12:32:00 UTC
(In reply to comment #8)
> chromium-gnome-keyring-r0.patch no longer applies on -9999, it seems to have
> been merged upstream (I can compile it without gnome-keyring installed now)

Thanks, fixed. Please reopen if there are further problems.