git.iko.soy/typeable/nixpkgs
on master help sign in
shadow: fix collision with coreutils (man groups.1.gz)

The `groups.1.gz` collides with one from coreutils. The code to fix this was already present in expression, but wrongly assumes that share/man/man1 directory will be copied to `man` output after `installPhase`. It turned out, that man directory is set at configure step, so we should remove file from `man` output.

commitac51528df83401ff357d08ee69d31b5a6d421279 authordanbst <abcz2.uprola@gmail.com> dateWed 30 Nov 2016, 01:44 (10 years ago) parent2d679db
1 file changed+2−1
pkgs/os-specific/linux/shadow/default.nix+2−1
pkgs/os-specific/linux/shadow/default.nix+2−1
@@ -43,7 +43,8 @@ stdenv.mkDerivation rec {
4343 postInstall =
4444 ''
4545 # Don't install ‘groups’, since coreutils already provides it.
46− rm $out/bin/groups $out/share/man/man1/groups.*
46+ rm $out/bin/groups
47+ rm $man/share/man/man1/groups.*
4748
4849 # Move the su binary into the su package
4950 mkdir -p $su/bin