Revert "openssh: Build with Kerberos by default"

This reverts commit a232dd66ee0b390dc4d82858af7e15713bd60327.

Moving to staging

+13 -6
+1
nixos/modules/misc/nixpkgs.nix
··· 69 [ (self: super: { 70 openssh = super.openssh.override { 71 hpnSupport = true; 72 kerberos = self.libkrb5; 73 }; 74 };
··· 69 [ (self: super: { 70 openssh = super.openssh.override { 71 hpnSupport = true; 72 + withKerberos = true; 73 kerberos = self.libkrb5; 74 }; 75 };
+9 -5
pkgs/tools/networking/openssh/default.nix
··· 1 { stdenv, fetchurl, fetchpatch, zlib, openssl, perl, libedit, pkgconfig, pam, autoreconfHook 2 , etcDir ? null 3 , hpnSupport ? false 4 - , withKerberos ? true 5 , withGssapiPatches ? false 6 , kerberos 7 , linkOpenssl? true 8 }: 9 10 let 11 ··· 20 in 21 with stdenv.lib; 22 stdenv.mkDerivation rec { 23 name = "openssh-${version}"; 24 version = if hpnSupport then "7.5p1" else "7.6p1"; 25 ··· 42 # See discussion in https://github.com/NixOS/nixpkgs/pull/16966 43 ./dont_create_privsep_path.patch 44 ] 45 - ++ optional withGssapiPatches (assert withKerberos; gssapiPatch); 46 47 postPatch = 48 # On Hydra this makes installation fail (sometimes?), ··· 54 nativeBuildInputs = [ pkgconfig ]; 55 buildInputs = [ zlib openssl libedit pam ] 56 ++ optional withKerberos kerberos 57 - ++ optional hpnSupport autoreconfHook 58 - ; 59 60 preConfigure = '' 61 # Setting LD causes `configure' and `make' to disagree about which linker ··· 74 "--disable-strip" 75 (if pam != null then "--with-pam" else "--without-pam") 76 ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}" 77 - ++ optional withKerberos (assert kerberos != null; "--with-kerberos5=${kerberos}") 78 ++ optional stdenv.isDarwin "--disable-libutil" 79 ++ optional (!linkOpenssl) "--without-openssl"; 80
··· 1 { stdenv, fetchurl, fetchpatch, zlib, openssl, perl, libedit, pkgconfig, pam, autoreconfHook 2 , etcDir ? null 3 , hpnSupport ? false 4 + , withKerberos ? false 5 , withGssapiPatches ? false 6 , kerberos 7 , linkOpenssl? true 8 }: 9 + 10 + assert withKerberos -> kerberos != null; 11 + assert withGssapiPatches -> withKerberos; 12 13 let 14 ··· 23 in 24 with stdenv.lib; 25 stdenv.mkDerivation rec { 26 + # Please ensure that openssh_with_kerberos still builds when 27 + # bumping the version here! 28 name = "openssh-${version}"; 29 version = if hpnSupport then "7.5p1" else "7.6p1"; 30 ··· 47 # See discussion in https://github.com/NixOS/nixpkgs/pull/16966 48 ./dont_create_privsep_path.patch 49 ] 50 + ++ optional withGssapiPatches gssapiPatch; 51 52 postPatch = 53 # On Hydra this makes installation fail (sometimes?), ··· 59 nativeBuildInputs = [ pkgconfig ]; 60 buildInputs = [ zlib openssl libedit pam ] 61 ++ optional withKerberos kerberos 62 + ++ optional hpnSupport autoreconfHook; 63 64 preConfigure = '' 65 # Setting LD causes `configure' and `make' to disagree about which linker ··· 78 "--disable-strip" 79 (if pam != null then "--with-pam" else "--without-pam") 80 ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}" 81 + ++ optional withKerberos "--with-kerberos5=${kerberos}" 82 ++ optional stdenv.isDarwin "--disable-libutil" 83 ++ optional (!linkOpenssl) "--without-openssl"; 84
-1
pkgs/top-level/aliases.nix
··· 142 rdmd = dtools; # added 2017-08-19 143 robomongo = robo3t; #added 2017-09-28 144 rssglx = rss-glx; #added 2015-03-25 145 - openssh_with_kerberos = openssh; # added 2018-01-28 146 rubygems = throw "deprecated 2016-03-02: rubygems is now bundled with ruby"; 147 rxvt_unicode_with-plugins = rxvt_unicode-with-plugins; # added 2015-04-02 148 samsungUnifiedLinuxDriver = samsung-unified-linux-driver; # added 2016-01-25
··· 142 rdmd = dtools; # added 2017-08-19 143 robomongo = robo3t; #added 2017-09-28 144 rssglx = rss-glx; #added 2015-03-25 145 rubygems = throw "deprecated 2016-03-02: rubygems is now bundled with ruby"; 146 rxvt_unicode_with-plugins = rxvt_unicode-with-plugins; # added 2015-04-02 147 samsungUnifiedLinuxDriver = samsung-unified-linux-driver; # added 2016-01-25
+3
pkgs/top-level/all-packages.nix
··· 3886 openssh = 3887 callPackage ../tools/networking/openssh { 3888 hpnSupport = false; 3889 etcDir = "/etc/ssh"; 3890 pam = if stdenv.isLinux then pam else null; 3891 }; 3892 3893 openssh_hpn = pkgs.appendToName "with-hpn" (openssh.override { hpnSupport = true; }); 3894 3895 opensp = callPackage ../tools/text/sgml/opensp { }; 3896
··· 3886 openssh = 3887 callPackage ../tools/networking/openssh { 3888 hpnSupport = false; 3889 + withKerberos = stdenv.isDarwin; 3890 etcDir = "/etc/ssh"; 3891 pam = if stdenv.isLinux then pam else null; 3892 }; 3893 3894 openssh_hpn = pkgs.appendToName "with-hpn" (openssh.override { hpnSupport = true; }); 3895 + 3896 + openssh_with_kerberos = pkgs.appendToName "with-kerberos" (openssh.override { withKerberos = true; }); 3897 3898 opensp = callPackage ../tools/text/sgml/opensp { }; 3899