Merge pull request #219308 from erdnaxe/openssh-strictdeps

openssh: enable strictDeps
This commit is contained in:
Janne Heß 2023-03-03 09:38:16 +01:00 committed by GitHub
commit 65b7c9585d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,7 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile.in --replace '$(INSTALL) -m 4711' '$(INSTALL) -m 0711' substituteInPlace Makefile.in --replace '$(INSTALL) -m 4711' '$(INSTALL) -m 0711'
''; '';
strictDeps = true;
nativeBuildInputs = [ pkg-config ] nativeBuildInputs = [ pkg-config ]
# This is not the same as the libkrb5 from the inputs! pkgs.libkrb5 is # This is not the same as the libkrb5 from the inputs! pkgs.libkrb5 is
# needed here to access krb5-config in order to cross compile. See: # needed here to access krb5-config in order to cross compile. See:
@ -96,7 +97,7 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
enableParallelChecking = false; enableParallelChecking = false;
nativeCheckInputs = lib.optional (!stdenv.isDarwin) hostname; nativeCheckInputs = [ openssl ] ++ lib.optional (!stdenv.isDarwin) hostname;
preCheck = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' preCheck = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
# construct a dummy HOME # construct a dummy HOME
export HOME=$(realpath ../dummy-home) export HOME=$(realpath ../dummy-home)