mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
Merge branch 'cache.su' of git://github.com/wkennington/nixpkgs
su: Make the su package a provider of only the su binary Fixes #1877
This commit is contained in:
commit
d35619429a
|
@ -46,6 +46,7 @@ let
|
|||
pkgs.rsync
|
||||
pkgs.strace
|
||||
pkgs.sysvtools
|
||||
pkgs.su
|
||||
pkgs.time
|
||||
pkgs.usbutils
|
||||
pkgs.utillinux
|
||||
|
|
|
@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./keep-path.patch dots_in_usernames ];
|
||||
|
||||
outputs = [ "out" "su" ];
|
||||
|
||||
# Assume System V `setpgrp (void)', which is the default on GNU variants
|
||||
# (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
|
||||
preConfigure = "export ac_cv_func_setpgrp_void=yes";
|
||||
|
@ -35,10 +37,14 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace lib/nscd.c --replace /usr/sbin/nscd ${glibc}/sbin/nscd
|
||||
'';
|
||||
|
||||
# Don't install ‘groups’, since coreutils already provides it.
|
||||
postInstall =
|
||||
''
|
||||
# Don't install ‘groups’, since coreutils already provides it.
|
||||
rm $out/bin/groups $out/share/man/man1/groups.*
|
||||
|
||||
# Move the su binary into the su package
|
||||
mkdir -p $su/bin
|
||||
mv $out/bin/su $su/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -36,6 +36,10 @@ stdenv.mkDerivation rec {
|
|||
++ stdenv.lib.optional (ncurses != null) ncurses
|
||||
++ stdenv.lib.optional (perl != null) perl;
|
||||
|
||||
postInstall = ''
|
||||
rm $out/bin/su # su should be supplied by the su package (shadow)
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -1998,7 +1998,7 @@ let
|
|||
|
||||
stunnel = callPackage ../tools/networking/stunnel { };
|
||||
|
||||
su = shadow;
|
||||
su = shadow.su;
|
||||
|
||||
surfraw = callPackage ../tools/networking/surfraw { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue