[arch-commits] Commit in chromium/trunk (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Sep 28 06:16:35 UTC 2012
Date: Friday, September 28, 2012 @ 02:16:34
Author: foutrelis
Revision: 167209
upgpkg: chromium 22.0.1229.79-2
Fix FS#31707 (Wrong return code when reusing the existing browser)
Added:
chromium/trunk/chromium-22.0.1229.79-only-use-the-different-return-type-under-test.patch
Modified:
chromium/trunk/PKGBUILD
---------------------------------------------------------------------------+
PKGBUILD | 8 ++++
chromium-22.0.1229.79-only-use-the-different-return-type-under-test.patch | 17 ++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-09-28 01:05:30 UTC (rev 167208)
+++ PKGBUILD 2012-09-28 06:16:34 UTC (rev 167209)
@@ -6,7 +6,7 @@
pkgname=chromium
pkgver=22.0.1229.79
-pkgrel=1
+pkgrel=2
pkgdesc="The open-source project behind Google Chrome, an attempt at creating a safer, faster, and more stable browser"
arch=('i686' 'x86_64')
url="http://www.chromium.org/"
@@ -24,12 +24,14 @@
chromium.default
chromium.sh
chromium-20.0.1132.57-glib-2.16-use-siginfo_t.patch
+ chromium-22.0.1229.79-only-use-the-different-return-type-under-test.patch
chromium-ppapi-r0.patch)
sha256sums=('06cab1c48092def5bd94e9f4aa764f6ff5728ce35bbcdcc12fddbad3a0f0f738'
'09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
'478340d5760a9bd6c549e19b1b5d1c5b4933ebf5f8cfb2b3e2d70d07443fe232'
'4999fded897af692f4974f0a3e3bbb215193519918a1fa9b31ed51e74a2dccb9'
'c1baf14121502efbc2a31b64029dcafa0e28ca5b71ad0e28a3c6342d18198615'
+ '9fd5cb18b109e172e6244456ba265c343460537d6acc0eb5c3def6ebc8272056'
'1f4b57670d317959bc2dc60e5d2a44aa8fc6028f7ed540cdb502fa0aa99c81bd')
build() {
@@ -38,6 +40,10 @@
# Fix build with glibc 2.16
patch -Np1 -i "$srcdir/chromium-20.0.1132.57-glib-2.16-use-siginfo_t.patch"
+ # Fix return code when reusing the existing browser
+ # http://code.google.com/p/chromium/issues/detail?id=146842
+ patch -Np2 -i "$srcdir/chromium-22.0.1229.79-only-use-the-different-return-type-under-test.patch"
+
# Fix build without NaCl glibc toolchain (patch from Gentoo)
patch -Np0 -i "$srcdir/chromium-ppapi-r0.patch"
Added: chromium-22.0.1229.79-only-use-the-different-return-type-under-test.patch
===================================================================
--- chromium-22.0.1229.79-only-use-the-different-return-type-under-test.patch (rev 0)
+++ chromium-22.0.1229.79-only-use-the-different-return-type-under-test.patch 2012-09-28 06:16:34 UTC (rev 167209)
@@ -0,0 +1,17 @@
+--- trunk/src/chrome/browser/chrome_browser_main.cc 2012/09/07 19:44:53 155456
++++ trunk/src/chrome/browser/chrome_browser_main.cc 2012/09/07 19:45:06 155457
+@@ -1081,7 +1081,13 @@
+ printf("%s\n", base::SysWideToNativeMB(UTF16ToWide(
+ l10n_util::GetStringUTF16(IDS_USED_EXISTING_BROWSER))).c_str());
+ #endif
+- return chrome::RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED;
++ // Having a differentiated return type for testing allows for tests to
++ // verify proper handling of some switches. When not testing, stick to
++ // the standard Unix convention of returning zero when things went as
++ // expected.
++ if (parsed_command_line().HasSwitch(switches::kTestType))
++ return chrome::RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED;
++ return content::RESULT_CODE_NORMAL_EXIT;
+
+ case ProcessSingleton::PROFILE_IN_USE:
+ return chrome::RESULT_CODE_PROFILE_IN_USE;
More information about the arch-commits
mailing list