Revert "openssh: Build with Kerberos by default"

This reverts commit a232dd66ee0b390dc4d82858af7e15713bd60327.

Moving to staging

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