git.iko.soy/typeable/nixpkgs
on master help sign in
chromium: Remove stuff for versions <= v51

We're already on version 52, so there really is no need to keep all those conditionals and old patches anymore. Tested dropping the unconditional build_fixes_46.patch via the Chromium VM tests. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commitc7a3645e7bfe8bd6db7d3d9a320c2f07ea582347 authoraszlig <aszlig@redmoonstudios.org> dateSat 28 May 2016, 19:04 (11 years ago) parent0f4095e
3 files changed+4−106
pkgs/applications/networking/browsers/chromium/common.nix+4−17 pkgs/applications/networking/browsers/chromium/patches/build_fixes_46.patch−14 pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_46.patch−75
pkgs/applications/networking/browsers/chromium/common.nix+4−17
@@ -57,7 +57,7 @@ let
5757 use_system_libevent = true;
5858 use_system_libexpat = true;
5959 use_system_libjpeg = true;
60− use_system_libpng = versionOlder upstream-info.version "51.0.0.0";
60+ use_system_libpng = false;
6161 use_system_libwebp = true;
6262 use_system_libxml = true;
6363 use_system_opus = true;
@@ -123,15 +123,11 @@ let
123123 ++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
124124 ++ optional enableSELinux libselinux
125125 ++ optionals cupsSupport [ libgcrypt cups ]
126− ++ optional pulseSupport libpulseaudio
127− ++ optional (versionOlder version "51.0.0.0") libexif;
126+ ++ optional pulseSupport libpulseaudio;
128127
129128 patches = [
130− ./patches/build_fixes_46.patch
131129 ./patches/widevine.patch
132− (if versionOlder version "50.0.0.0"
133− then ./patches/nix_plugin_paths_46.patch
134− else ./patches/nix_plugin_paths_50.patch)
130+ ./patches/nix_plugin_paths_50.patch
135131 ];
136132
137133 postPatch = ''
@@ -141,18 +137,12 @@ let
141137 -e "/python_arch/s/: *'[^']*'/: '""'/" \
142138 build/common.gypi chrome/chrome_tests.gypi
143139
144− ${optionalString (versionOlder version "51.0.0.0") ''
145− sed -i -e '/module_path *=.*libexif.so/ {
146− s|= [^;]*|= base::FilePath().AppendASCII("${libexif}/lib/libexif.so")|
147− }' chrome/utility/media_galleries/image_metadata_extractor.cc
148− ''}
149−
150140 sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${libudev.out}/lib/\1!' \
151141 device/udev_linux/udev?_loader.cc
152142
153143 sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \
154144 gpu/config/gpu_info_collector_linux.cc
155− '' + optionalString (!versionOlder version "51.0.0.0") ''
145+
156146 sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
157147 chrome/browser/ui/webui/engagement/site_engagement_ui.cc
158148 '';
@@ -185,9 +175,6 @@ let
185175 google_api_key = "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI";
186176 google_default_client_id = "404761575300.apps.googleusercontent.com";
187177 google_default_client_secret = "9rIFQjfnkykEmqb6FfjJQD1D";
188−
189− } // optionalAttrs (versionOlder version "51.0.0.0") {
190− use_system_libexif = true;
191178 } // optionalAttrs proprietaryCodecs {
192179 # enable support for the H.264 codec
193180 proprietary_codecs = true;
pkgs/applications/networking/browsers/chromium/patches/build_fixes_46.patchdeleted−14
@@ -1,14 +0,0 @@
1−diff --git a/chrome/test/data/webui_test_resources.grd b/chrome/test/data/webui_test_resources.grd
2−index 6f8530d..f92a76a 100644
3−--- a/chrome/test/data/webui_test_resources.grd
4−+++ b/chrome/test/data/webui_test_resources.grd
5−@@ -6,9 +6,4 @@
6− </output>
7− <output filename="webui_test_resources.pak" type="data_package" />
8− </outputs>
9−- <release seq="1">
10−- <includes>
11−- <include name="IDR_WEBUI_TEST_I18N_PROCESS_CSS_TEST" file="webui/i18n_process_css_test.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
12−- </includes>
13−- </release>
14− </grit>
pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_46.patchdeleted−75
@@ -1,75 +0,0 @@
1−diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
2−index 74bf041..5f34198 100644
3−--- a/chrome/common/chrome_paths.cc
4−+++ b/chrome/common/chrome_paths.cc
5−@@ -66,21 +66,14 @@ static base::LazyInstance<base::FilePath>
6− g_invalid_specified_user_data_dir = LAZY_INSTANCE_INITIALIZER;
7−
8− // Gets the path for internal plugins.
9−-bool GetInternalPluginsDirectory(base::FilePath* result) {
10−-#if defined(OS_MACOSX) && !defined(OS_IOS)
11−- // If called from Chrome, get internal plugins from a subdirectory of the
12−- // framework.
13−- if (base::mac::AmIBundled()) {
14−- *result = chrome::GetFrameworkBundlePath();
15−- DCHECK(!result->empty());
16−- *result = result->Append("Internet Plug-Ins");
17−- return true;
18−- }
19−- // In tests, just look in the module directory (below).
20−-#endif
21−-
22−- // The rest of the world expects plugins in the module directory.
23−- return PathService::Get(base::DIR_MODULE, result);
24−+bool GetInternalPluginsDirectory(base::FilePath* result,
25−+ const std::string& ident) {
26−+ std::string full_env = std::string("NIX_CHROMIUM_PLUGIN_PATH_") + ident;
27−+ const char* value = getenv(full_env.c_str());
28−+ if (value == NULL)
29−+ return PathService::Get(base::DIR_MODULE, result);
30−+ else
31−+ *result = base::FilePath(value);
32− }
33−
34− #if defined(OS_WIN)
35−@@ -253,11 +246,11 @@ bool PathProvider(int key, base::FilePath* result) {
36− create_dir = true;
37− break;
38− case chrome::DIR_INTERNAL_PLUGINS:
39−- if (!GetInternalPluginsDirectory(&cur))
40−+ if (!GetInternalPluginsDirectory(&cur, "ALL"))
41− return false;
42− break;
43− case chrome::DIR_PEPPER_FLASH_PLUGIN:
44−- if (!GetInternalPluginsDirectory(&cur))
45−+ if (!GetInternalPluginsDirectory(&cur, "PEPPERFLASH"))
46− return false;
47− cur = cur.Append(kPepperFlashBaseDirectory);
48− break;
49−@@ -314,7 +307,7 @@ bool PathProvider(int key, base::FilePath* result) {
50− // We currently need a path here to look up whether the plugin is disabled
51− // and what its permissions are.
52− case chrome::FILE_NACL_PLUGIN:
53−- if (!GetInternalPluginsDirectory(&cur))
54−+ if (!GetInternalPluginsDirectory(&cur, "NACL"))
55− return false;
56− cur = cur.Append(kInternalNaClPluginFileName);
57− break;
58−@@ -349,7 +342,7 @@ bool PathProvider(int key, base::FilePath* result) {
59− cur = cur.DirName();
60− }
61− #else
62−- if (!GetInternalPluginsDirectory(&cur))
63−+ if (!GetInternalPluginsDirectory(&cur, "PNACL"))
64− return false;
65− #endif
66− cur = cur.Append(FILE_PATH_LITERAL("pnacl"));
67−@@ -366,7 +359,7 @@ bool PathProvider(int key, base::FilePath* result) {
68− // In the component case, this is the source adapter. Otherwise, it is the
69− // actual Pepper module that gets loaded.
70− case chrome::FILE_WIDEVINE_CDM_ADAPTER:
71−- if (!GetInternalPluginsDirectory(&cur))
72−+ if (!GetInternalPluginsDirectory(&cur, "WIDEVINE"))
73− return false;
74− cur = cur.AppendASCII(kWidevineCdmAdapterFileName);
75− break;