john: use proper configure flags

- need --disable-native-tests not --disable-native-macro
- --with-systemwide is better than -DJOHN_SYSTEMWIDE=1

Fixes #74918

(cherry picked from commit 73cf5d961b)
This commit is contained in:
Matthew Bauer
2019-12-06 10:43:45 -05:00
committed by Florian Klink
parent e04700a944
commit 0449a653eb

View File

@@ -31,7 +31,10 @@ stdenv.mkDerivation rec {
export AS=$CC
export LD=$CC
'';
configureFlags = [ "--disable-native-macro" ];
configureFlags = [
"--disable-native-tests"
"--with-systemwide"
];
buildInputs = [ openssl nss nspr kerberos gmp zlib libpcap re2 gcc pythonPackages.wrapPython perl makeWrapper ];
propagatedBuildInputs = (with pythonPackages; [ dpkt scapy lxml ]) ++ # For pcap2john.py
@@ -43,8 +46,6 @@ stdenv.mkDerivation rec {
# gcc: error: memdbg.o: No such file or directory
enableParallelBuilding = false;
NIX_CFLAGS_COMPILE = [ "-DJOHN_SYSTEMWIDE=1" ];
postInstall = ''
mkdir -p "$out/bin" "$out/etc/john" "$out/share/john" "$out/share/doc/john"
find -L ../run -mindepth 1 -maxdepth 1 -type f -executable \