Merge pull request #132393 from primeos/chromium

chromium: Drop our closure_compiler patch for Java

authored by Michael Weiss and committed by GitHub d2aac2cc 268b1dec

+2 -35
+2 -4
pkgs/applications/networking/browsers/chromium/common.nix
··· 42 42 with lib; 43 43 44 44 let 45 - jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 46 45 python2WithPackages = python2.withPackages(ps: with ps; [ 47 46 ply jinja2 setuptools 48 47 ]); ··· 152 151 libXScrnSaver libXcursor libXtst libxshmfence libGLU libGL 153 152 mesa # required for libgbm 154 153 pciutils protobuf speechd libXdamage at-spi2-core 155 - jre 156 154 pipewire 157 155 libva 158 156 libdrm wayland mesa.drivers libxkbcommon ··· 167 165 ./patches/widevine-79.patch # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags 168 166 # Fix the build by adding a missing dependency (s. https://crbug.com/1197837): 169 167 ./patches/fix-missing-atspi2-dependency.patch 170 - ./patches/closure_compiler-Use-the-Java-binary-from-the-system.patch 171 168 ] ++ lib.optionals (versionRange "91" "94.0.4583.0") [ 172 169 # Required as dependency for the next patch: 173 170 (githubPatch { ··· 242 239 sed -i -e 's,/usr,/run/current-system/sw,' chrome/common/chrome_paths.cc 243 240 244 241 patchShebangs . 245 - # use our own nodejs 242 + # Link to our own Node.js and Java (required during the build): 246 243 mkdir -p third_party/node/linux/node-linux-x64/bin 247 244 ln -s "$(command -v node)" third_party/node/linux/node-linux-x64/bin/node 245 + ln -s "${jre8}/bin/java" third_party/jdk/current/bin/ 248 246 249 247 # Allow building against system libraries in official builds 250 248 sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py
-31
pkgs/applications/networking/browsers/chromium/patches/closure_compiler-Use-the-Java-binary-from-the-system.patch
··· 1 - From e031b8be0fb2a22f953c034cdf08ca9befe130d2 Mon Sep 17 00:00:00 2001 2 - From: Michael Weiss <dev.primeos@gmail.com> 3 - Date: Sun, 11 Apr 2021 18:05:12 +0200 4 - Subject: [PATCH] closure_compiler: Use the Java binary from the system 5 - 6 - The bundled Java binary (third_party/jdk/current/bin/java) is missing in 7 - the tarball and we want to use the one from the system anyway. 8 - This reverts part of [0]. 9 - 10 - [0]: https://chromium-review.googlesource.com/c/chromium/src/+/2778794 11 - --- 12 - third_party/closure_compiler/compiler.py | 3 +-- 13 - 1 file changed, 1 insertion(+), 2 deletions(-) 14 - 15 - diff --git a/third_party/closure_compiler/compiler.py b/third_party/closure_compiler/compiler.py 16 - index 75690ceb9749..7b9c76f74290 100755 17 - --- a/third_party/closure_compiler/compiler.py 18 - +++ b/third_party/closure_compiler/compiler.py 19 - @@ -13,8 +13,7 @@ import subprocess 20 - 21 - 22 - _CURRENT_DIR = os.path.join(os.path.dirname(__file__)) 23 - -_JAVA_PATH = os.path.join(_CURRENT_DIR, "..", "jdk", "current", "bin", "java") 24 - -assert os.path.isfile(_JAVA_PATH), "java only allowed in android builds" 25 - +_JAVA_PATH = "java" 26 - 27 - class Compiler(object): 28 - """Runs the Closure compiler on given source files to typecheck them 29 - -- 30 - 2.20.1 31 -