chromium: Add PACKAGECONFIG for disabling API keys info bar
PATCH 1/2 chromium: Add PACKAGECONFIG for disabling API keys info bar
--- .../chromium/0002-Disable-API-keys-info-bar.patch | 33 ++++++++++++++++++++++ recipes-browser/chromium/chromium_35.0.1916.114.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 recipes-browser/chromium/chromium/0002-Disable-API-keys-info-bar.patch
recipes-browser/chromium/chromium/0002-Disable-API-keys-info-bar.patch new file +33 -0
@@ -0,0 +1,33 @@ +From e3a694a5324b9fab58875f2a1bd4cbe48fe6e151 Mon Sep 17 00:00:00 2001 +From: Carlos Rafael Giani <[email protected]> +Date: Mon, 9 Jun 2014 15:05:11 +0200 +Subject: [PATCH] Disable API keys info bar + +Upstream-Status: Inappropriate [other] +The info bar is not a bug; it is just undesirable in some use cases. +A clean approach - which requires discussion with upstream - is to +disable it by using a command line option. + +Signed-off-by: Carlos Rafael Giani <[email protected]> +--- + chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc +index 5014219..bb2a39d 100644 +--- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc ++++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc +@@ -18,8 +18,10 @@ void GoogleApiKeysInfoBarDelegate::Create(InfoBarService* infobar_service) { + if (google_apis::HasKeysConfigured()) + return; + ++#if 0 + infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar( + scoped_ptr<ConfirmInfoBarDelegate>(new GoogleApiKeysInfoBarDelegate()))); ++#endif + } + + GoogleApiKeysInfoBarDelegate::GoogleApiKeysInfoBarDelegate() +-- +1.8.3.2 +
recipes-browser/chromium/chromium_35.0.1916.114.bb +1 -0
@@ -8,6 +8,7 @@ SRC_URI = "\ file://oe-defaults.gypi \ ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \ ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://remove-linux-accel-canvas-from-blacklist.patch', '', d)} \ + ${@bb.utils.contains('PACKAGECONFIG', 'disable-api-keys-info-bar', 'file://0002-Disable-API-keys-info-bar.patch', '', d)} \ file://unistd-2.patch \ file://fix-glib-deprecated-warning.patch \ file://google-chrome \
Signature · 1 line
1.8.3.2
PATCH 2/2 chromium: Add recipe for version 37.0.2062.0
This version includes Wayland support by adding ozone-wayland
--- .../0001-Disable-ANGLE-commit-ID-generation.patch | 71 +++++++++ .../0001-Remove-X-libraries-from-GYP-files.patch | 79 ++++++++++ recipes-browser/chromium/chromium_37.0.2062.0.bb | 165 +++++++++++++++++++++ 3 files changed, 315 insertions(+) create mode 100644 recipes-browser/chromium/chromium/0001-Disable-ANGLE-commit-ID-generation.patch create mode 100644 recipes-browser/chromium/chromium/0001-Remove-X-libraries-from-GYP-files.patch create mode 100644 recipes-browser/chromium/chromium_37.0.2062.0.bb
recipes-browser/chromium/chromium/0001-Disable-ANGLE-commit-ID-generation.patch new file +71 -0
@@ -0,0 +1,71 @@ +From 6ee39ace731dabdbe5e169ac5bc52b713afb1275 Mon Sep 17 00:00:00 2001 +From: Carlos Rafael Giani <[email protected]> +Date: Tue, 29 Jul 2014 12:08:25 +0200 +Subject: [PATCH] Disable ANGLE commit ID generation + +As part of the build process, ANGLE generates an ID out of the SRCREV +of the git repo's HEAD. Since these recipes do not use a git repository, +but a tarball release of Chromium, there is no HEAD, and building ANGLE +fails. + +This patch replaces the git-based commit ID generation with a dummy ID. + +Upstream-Status: Pending + +Signed-off-by: Carlos Rafael Giani <[email protected]> +--- + third_party/angle/src/angle.gypi | 2 +- + third_party/angle/src/commit_id.py | 22 +++++++++++++--------- + 2 files changed, 14 insertions(+), 10 deletions(-) + +diff --git a/third_party/angle/src/angle.gypi b/third_party/angle/src/angle.gypi +index 5339369..c7ef8c1 100644 +--- a/third_party/angle/src/angle.gypi ++++ b/third_party/angle/src/angle.gypi +@@ -56,7 +56,7 @@ + { + 'action_name': 'Generate Commit ID Header', + 'message': 'Generating commit ID header...', +- 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/commit_id.py', '<(angle_path)/.git/index' ], ++ 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/commit_id.py' ], + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/commit.h' ], + 'action': [ 'python', '<(SHARED_INTERMEDIATE_DIR)/commit_id.py', '<(SHARED_INTERMEDIATE_DIR)/commit.h' ], + }, +diff --git a/third_party/angle/src/commit_id.py b/third_party/angle/src/commit_id.py +index 6339cca..1a3c0a3 100644 +--- a/third_party/angle/src/commit_id.py ++++ b/third_party/angle/src/commit_id.py +@@ -1,17 +1,21 @@ + import subprocess as sp + import sys + +-def grab_output(*command): +- return sp.Popen(command, stdout=sp.PIPE).communicate()[0].strip() ++#def grab_output(*command): ++# return sp.Popen(command, stdout=sp.PIPE).communicate()[0].strip() ++# ++#commit_id_size = 12 ++# ++#try: ++# commit_id = grab_output('git', 'rev-parse', '--short=%d' % commit_id_size, 'HEAD') ++# commit_date = grab_output('git', 'show', '-s', '--format=%ci', 'HEAD') ++#except: ++# commit_id = 'invalid-hash' ++# commit_date = 'invalid-date' + ++commit_id = "0123456789ab" + commit_id_size = 12 +- +-try: +- commit_id = grab_output('git', 'rev-parse', '--short=%d' % commit_id_size, 'HEAD') +- commit_date = grab_output('git', 'show', '-s', '--format=%ci', 'HEAD') +-except: +- commit_id = 'invalid-hash' +- commit_date = 'invalid-date' ++commit_date = "2014-06-11 17:45:12 +0200" + + hfile = open(sys.argv[1], 'w') + +-- +1.8.3.2 +
recipes-browser/chromium/chromium/0001-Remove-X-libraries-from-GYP-files.patch new file +79 -0
79 lines not on this page · raw message
recipes-browser/chromium/chromium_37.0.2062.0.bb new file +165 -0
165 lines not on this page · raw message
Signature · 1 line
1.8.3.2
Otavio Salvador
AppliedRe: [meta-browser][PATCH 2/2] chromium: Add recipe for version 37.0.2062.0
Quoted 3 lines · Carlos Rafael Giani
This version includes Wayland support by adding ozone-wayland
Signed-off-by Carlos Rafael Giani <[email protected]>
Applied.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
recipes-browser/chromium/chromium/0002-Disable-API-keys-info-bar.patch line 11
Quoted 6 lines · Carlos Rafael Giani
recipes-browser/chromium/chromium/0002-Disable-API-keys-info-bar.patch new file +6
-0+Upstream-Status: Inappropriate [other] +The info bar is not a bug; it is just undesirable in some use cases. +A clean approach - which requires discussion with upstream - is to +disable it by using a command line option. + +Signed-off-by: Carlos Rafael Giani <[email protected]>
I think it would be better to get a suggested solution which is acceptable upstream.
Quoted 11 lines · Khem Raj
recipes-browser/chromium/chromium/0002-Disable-API-keys-info-bar.patch line 11
Quoted 6 lines · Carlos Rafael Giani
recipes-browser/chromium/chromium/0002-Disable-API-keys-info-bar.patch new file +6
-0+Upstream-Status: Inappropriate [other] +The info bar is not a bug; it is just undesirable in some use cases. +A clean approach - which requires discussion with upstream - is to +disable it by using a command line option. + +Signed-off-by: Carlos Rafael Giani <[email protected]>I think it would be better to get a suggested solution which is acceptable upstream.
There are customers who don't need to use the Google APIs so they are not willing to make an API key and instead they prefer to drop the warning and keep using the Chromium as an application platform. We've been involved in a couple of projects lately where this happened.
Chromium's upstream advice is to generate an API and use it to deploy; I think in the meta-browser's case this is sub-optimal as we'll end having several products and customers using our key and not making their own ones.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 9 lines · Otavio Salvador
There are customers who don't need to use the Google APIs so they are not willing to make an API key and instead they prefer to drop the warning and keep using the Chromium as an application platform. We've been involved in a couple of projects lately where this happened.
Chromium's upstream advice is to generate an API and use it to deploy; I think in the meta-browser's case this is sub-optimal as we'll end having several products and customers using our key and not making their own ones.
OK then disabling the API key is in essence suppressing the problem. I am fine if thats
the general usecase but I doubt that
Quoted 7 lines · Khem Raj
Quoted 5 lines · Otavio Salvador
There are customers who don't need to use the Google APIs so they are not willing to make an API key and instead they prefer to drop the warning and keep using the Chromium as an application platform. We've been involved in a couple of projects lately where this happened.
Quoted 7 lines
Quoted 4 lines
Chromium's upstream advice is to generate an API and use it to deploy; I think in the meta-browser's case this is sub-optimal as we'll end having several products and customers using our key and not making their own ones.
OK then disabling the API key is in essence suppressing the problem. I am fine if thats the general usecase but I doubt that
As I explained, this is the requirement for some projects we've been involved with. The idea here is to share it in a 'reusable' way and avoid this patch to be kept private for no good reason.
I think it is fine as is.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 4 lines · Otavio Salvador
As I explained, this is the requirement for some projects we've been involved with. The idea here is to share it in a 'reusable' way and avoid this patch to be kept private for no good reason.
than have it in bbappends would solve it.
Quoted 1 line
I think it is fine as is.
For you yes I understand, do you have say of other folks who use this layer ?
Quoted 7 lines · Khem Raj
Quoted 3 lines · Otavio Salvador
As I explained, this is the requirement for some projects we've been involved with. The idea here is to share it in a 'reusable' way and avoid this patch to be kept private for no good reason.
than have it in bbappends would solve it.
Yes; it does. But duplicated among all users doing it (in our case 2 already).
Quoted 3 lines
Quoted 1 line
I think it is fine as is.
For you yes I understand, do you have say of other folks who use this layer ?
No; only you.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 8 lines · Khem Raj
Quoted 4 lines · Otavio Salvador
As I explained, this is the requirement for some projects we've been involved with. The idea here is to share it in a 'reusable' way and avoid this patch to be kept private for no good reason.
than have it in bbappends would solve it.
I agree with Otavio, that having just PACKAGECONFIG switch in .bbappend or distro config is simpler than reinventing this .patch in each layer which needs that.
Quoted 4 lines
Quoted 2 lines
I think it is fine as is.
For you yes I understand, do you have say of other folks who use this layer ?
He only adds the option, it even isn't enabled by default, so FWIW I'm fine with this.
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 5 lines · Martin Jansa
Quoted 1 line
For you yes I understand, do you have say of other folks who use this layer ?
He only adds the option, it even isn't enabled by default, so FWIW I'm fine with this.
oh its not default. That was an oversight from me. In this case its ok.
Otavio Salvador
AppliedQuoted 1 line · Carlos Rafael Giani
Signed-off-by Carlos Rafael Giani <[email protected]>
Applied.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750