git.iko.soy/typeable/nixpkgs
on master help sign in
chromium: Add missing dependency on coreutils (#94578)

The script that runs chromium calls tr from coreutils - however it just assumed that coreutils are in PATH. With missing coreutils chromium did still launch (at least with d433839007c27d3102ea78abac69bacefdc4bfc0 applied) but emitted `line 15: tr: command not found` error messages.

commit6e4d33a0019282c1d3c1bcd5c2fb2a0dba43bb46 authorf4814n <me@f4814n.de> dateMon 3 Aug 2020, 17:58 (6 years ago) parentd1f59cf
1 file changed+2−2
pkgs/applications/networking/browsers/chromium/default.nix+2−2
pkgs/applications/networking/browsers/chromium/default.nix+2−2
@@ -1,5 +1,5 @@
11{ newScope, config, stdenv, llvmPackages_9, llvmPackages_10
2−, makeWrapper, ed, gnugrep
2+, makeWrapper, ed, gnugrep, coreutils
33, glib, gtk3, gnome3, gsettings-desktop-schemas, gn, fetchgit
44, libva ? null
55, pipewire_0_2
@@ -196,7 +196,7 @@ in stdenv.mkDerivation {
196196 '' + ''
197197
198198 # libredirect causes chromium to deadlock on startup
199− export LD_PRELOAD="\$(echo -n "\$LD_PRELOAD" | tr ':' '\n' | ${gnugrep}/bin/grep -v /lib/libredirect\\\\.so$ | tr '\n' ':')"
199+ export LD_PRELOAD="\$(echo -n "\$LD_PRELOAD" | ${coreutils}/bin/tr ':' '\n' | ${gnugrep}/bin/grep -v /lib/libredirect\\\\.so$ | ${coreutils}/bin/tr '\n' ':')"
200200
201201 export XDG_DATA_DIRS=$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH\''${XDG_DATA_DIRS:+:}\$XDG_DATA_DIRS
202202