From ddd57c45116548c1bd92e4a43d74a0d98a5e164d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 21 Feb 2016 09:56:28 +0100 Subject: [PATCH] chromium: update to 48.0.2564.116. --- .../files/musl-patches/musl-fixes.patch | 11 ---- .../files/musl-patches/resolver.patch | 12 ----- ...mium-use-non-versioned-icu-namespace.patch | 11 ++++ .../chromium/patches/chromium-widevine.patch | 53 ++++++++++++++++--- srcpkgs/chromium/patches/no-mallinfo.patch | 18 ------- srcpkgs/chromium/template | 26 ++++----- 6 files changed, 70 insertions(+), 61 deletions(-) create mode 100644 srcpkgs/chromium/patches/chromium-use-non-versioned-icu-namespace.patch diff --git a/srcpkgs/chromium/files/musl-patches/musl-fixes.patch b/srcpkgs/chromium/files/musl-patches/musl-fixes.patch index b0169d41783..ebbac8f34ef 100644 --- a/srcpkgs/chromium/files/musl-patches/musl-fixes.patch +++ b/srcpkgs/chromium/files/musl-patches/musl-fixes.patch @@ -94,17 +94,6 @@ // This adjusts /proc/process/oom_score_adj so the Linux OOM killer // will prefer certain process types over others. The range for the // adjustment is [-1000, 1000], with [0, 1000] being user accessible. ---- ./net/base/dns_reloader.cc.orig -+++ ./net/base/dns_reloader.cc -@@ -5,7 +5,7 @@ - #include "net/base/dns_reloader.h" - - #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) && \ -- !defined(OS_ANDROID) -+ !defined(OS_ANDROID) && !defined(_GNU_SOURCE) - - #include - --- ./net/dns/dns_config_service_posix.cc.orig +++ ./net/dns/dns_config_service_posix.cc @@ -116,7 +116,7 @@ diff --git a/srcpkgs/chromium/files/musl-patches/resolver.patch b/srcpkgs/chromium/files/musl-patches/resolver.patch index 0ac97d6dc3a..fe1141ecbe5 100644 --- a/srcpkgs/chromium/files/musl-patches/resolver.patch +++ b/srcpkgs/chromium/files/musl-patches/resolver.patch @@ -22,15 +22,3 @@ DnsReloaderMaybeReload(); #endif int err = getaddrinfo(host.c_str(), NULL, &hints, &ai); ---- net/base/dns_reloader.cc.orig 2015-12-04 10:26:16.536715844 +0100 -+++ net/base/dns_reloader.cc 2015-12-04 10:37:09.473510098 +0100 -@@ -4,8 +4,7 @@ - - #include "net/base/dns_reloader.h" - --#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) && \ -- !defined(OS_ANDROID) && !defined(_GNU_SOURCE) -+#if defined(__GLIBC__) - - #include - diff --git a/srcpkgs/chromium/patches/chromium-use-non-versioned-icu-namespace.patch b/srcpkgs/chromium/patches/chromium-use-non-versioned-icu-namespace.patch new file mode 100644 index 00000000000..247b1ada732 --- /dev/null +++ b/srcpkgs/chromium/patches/chromium-use-non-versioned-icu-namespace.patch @@ -0,0 +1,11 @@ +--- ./components/autofill/core/common/autofill_l10n_util.cc ++++ ./components/autofill/core/common/autofill_l10n_util.cc +@@ -22,7 +22,7 @@ CaseInsensitiveCompare::CaseInsensitiveCompare(const icu::Locale& locale) { + // library. This could be due to a device-specific issue (has been seen in + // the wild on Android devices). In the failure case, |collator_| will be + // null. See http://crbug.com/558625. +- icu_54::UnicodeString name; ++ icu::UnicodeString name; + std::string locale_name; + locale.getDisplayName(name).toUTF8String(locale_name); + LOG(ERROR) << "Failed to initialize the ICU Collator for " diff --git a/srcpkgs/chromium/patches/chromium-widevine.patch b/srcpkgs/chromium/patches/chromium-widevine.patch index b9374ccaf22..13181b6aeba 100644 --- a/srcpkgs/chromium/patches/chromium-widevine.patch +++ b/srcpkgs/chromium/patches/chromium-widevine.patch @@ -1,12 +1,49 @@ -diff -upr third_party/widevine/cdm/widevine_cdm_version.h.orig third_party/widevine/cdm/widevine_cdm_version.h ---- third_party/widevine/cdm/widevine_cdm_version.h.orig 2015-04-15 01:18:59.000000000 +0300 -+++ third_party/widevine/cdm/widevine_cdm_version.h 2015-04-15 09:09:49.157260050 +0300 -@@ -14,4 +14,8 @@ - // - WIDEVINE_CDM_VERSION_STRING (with the version of the CDM that's available - // as a string, e.g., "1.0.123.456"). +--- chrome/common/chrome_content_client.cc 2016-01-20 22:01:20.000000000 +0200 ++++ chrome/common/chrome_content_client.cc 2016-01-21 20:02:02.788936626 +0200 +@@ -158,7 +158,12 @@ void ComputeBuiltInPlugins(std::vectorCreateAllocatorDump(kAllocatedObjects); - inner_dump->AddScalar(MemoryAllocatorDump::kNameSize, - MemoryAllocatorDump::kUnitsBytes, info.uordblks); -+#endif - - return true; - } diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index 33316389351..e6d71efe217 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -1,23 +1,19 @@ # Template file for 'chromium' pkgname=chromium # See http://www.chromium.org/developers/calendar for the latest version -version=47.0.2526.73 -revision=2 +version=48.0.2564.116 +revision=1 short_desc="Google's attempt at creating a safer, faster, and more stable browser" maintainer="Juan RP " homepage="http://www.chromium.org/" license="BSD" -distfiles="https://commondatastorage.googleapis.com/${pkgname}-browser-official/${pkgname}-${version}.tar.xz" -checksum=6d66d01c8ddff6562ff13d30ed65ef0cdc2888d9e4924be615d576b7eb15f4f5 +distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz" +checksum=6a1eb9b4c853f15eeec0a55af7ac3b41835f0fc592ba6c0a500873cb12a84d0f -only_for_archs="i686 i686-musl x86_64 x86_64-musl" +only_for_archs="i686 x86_64" lib32disabled=yes nodebug=yes -case "$XBPS_TARGET_MACHINE" in - i686) broken=http://build.voidlinux.eu/builders/i686_builder/builds/18981/steps/shell_3/logs/stdio -esac - hostmakedepends="yasm python pkg-config perl gperf bison ninja hwids icu-devel" makedepends="libpng-devel gtk+-devel nss-devel pciutils-devel libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel @@ -122,11 +118,12 @@ do_configure() { -Duse_system_icu=1 -Duse_system_libvpx=0 -Duse_cups=1 - -Dlinux_link_cups=1 -Duse_pulseaudio=1 - -Dlinux_link_pulseaudio=1 -Duse_mojo=0 - -Duse_gconf=0" + -Duse_gconf=0 + -Denable_widevine=1 + -Denable_hangout_services_extension=1" + if [ "$CROSS_BUILD" ]; then conf+=" -Denable_webrtc=0" conf+=" -Duse_system_libwebp=0" @@ -136,6 +133,8 @@ do_configure() { # Use explicit library dependencies instead of dlopen. conf+=" + -Dlinux_link_cups=1 + -Dlinux_link_pulseaudio=1 -Dlinux_link_gsettings=1 -Dlinux_link_libpci=1 -Dlinux_link_libspeechd=1 @@ -172,6 +171,9 @@ do_configure() { conf+=" -Ddisable_nacl=1 -Ddisable_pnacl=1" conf+=" -Duse_allocator=none -Dtarget_arch=ia32" ;; + i686) + conf+=" -Ddisable_nacl=1 -Ddisable_pnacl=1" + ;; arm*) conf+=" -Ddisable_nacl=1 -Ddisable_pnacl=1" conf+=" -Dtarget_arch=arm -Dv8_use_arm_eabi_hardfloat=true"