zookeeper: 3.7.2 -> 3.9.2

Fixes CVE-2024-23944
https://www.openwall.com/lists/oss-security/2024/03/14/2

Release notes:
https://zookeeper.apache.org/doc/r3.9.2/releasenotes.html
https://zookeeper.apache.org/doc/r3.8.0/releasenotes.html

+8 -9
+1 -1
pkgs/development/libraries/zookeeper_mt/default.nix
··· 14 14 15 15 src = fetchurl { 16 16 url = "mirror://apache/zookeeper/${zookeeper.pname}-${version}/apache-${zookeeper.pname}-${version}.tar.gz"; 17 - hash = "sha512-V1SFPtSytFZMyiR/cgwLA9zPUK5xuarP3leQCQiSfelUHnYMB+R6ZQfSHMHD9t+URvLc+KRFSriLTzethspkpA=="; 17 + hash = "sha512-G6Yw9HBF43QCw8FTLnJ7boCjUYwaQVQAT4wXqUowSlzox1cUPH5+8ZYMBxToJCbr0ppmz22t0uKsHRUI/IDAPQ=="; 18 18 }; 19 19 20 20 sourceRoot = "apache-${zookeeper.pname}-${version}/zookeeper-client/zookeeper-client-c";
+7 -8
pkgs/servers/zookeeper/default.nix
··· 1 1 { lib, stdenv, fetchurl, jdk11_headless, makeWrapper, nixosTests, bash, coreutils }: 2 2 let 3 - # Latest supported LTS JDK for Zookeeper 3.7: 4 - # https://zookeeper.apache.org/doc/r3.7.2/zookeeperAdmin.html#sc_requiredSoftware 3 + # Latest supported LTS JDK for Zookeeper 3.9: 4 + # https://zookeeper.apache.org/doc/r3.9.2/zookeeperAdmin.html#sc_requiredSoftware 5 5 jre = jdk11_headless; 6 6 in 7 7 stdenv.mkDerivation rec { 8 8 pname = "zookeeper"; 9 - version = "3.7.2"; 9 + version = "3.9.2"; 10 10 11 11 src = fetchurl { 12 12 url = "mirror://apache/zookeeper/${pname}-${version}/apache-${pname}-${version}-bin.tar.gz"; 13 - hash = "sha512-avv8GvyLk3AoG9mGLzfbscuV7FS7LtQ3GDGqXA8Iz+53UFC9V85fwINuYa8n7tnwB29UuYmX3Q4VFZGWBW5S6g=="; 13 + hash = "sha512-K1rgLWGKJ8qM1UkkhV1TRCY7fZ3udgGB+dZrr6kjAyTSrTF4aJXwZUyWncONSj0Ad/dMw3a1i1+i+5S+satEXw=="; 14 14 }; 15 15 16 16 nativeBuildInputs = [ makeWrapper ]; ··· 20 20 runHook preInstall 21 21 mkdir -p $out 22 22 cp -R conf docs lib $out 23 - # Without this, zkCli.sh tries creating a log file in the Nix store. 24 - substituteInPlace $out/conf/log4j.properties \ 25 - --replace 'INFO, RFAAUDIT' 'INFO, CONSOLE' 26 23 mkdir -p $out/bin 27 24 cp -R bin/{zkCli,zkCleanup,zkEnv,zkServer,zkSnapShotToolkit,zkTxnLogToolkit}.sh $out/bin 28 25 patchShebangs $out/bin 29 26 substituteInPlace $out/bin/zkServer.sh \ 30 - --replace /bin/echo ${coreutils}/bin/echo 27 + --replace-fail /bin/echo ${coreutils}/bin/echo 31 28 for i in $out/bin/{zkCli,zkCleanup,zkServer,zkSnapShotToolkit,zkTxnLogToolkit}.sh; do 32 29 wrapProgram $i \ 33 30 --set JAVA_HOME "${jre}" \ ··· 47 44 meta = with lib; { 48 45 homepage = "https://zookeeper.apache.org"; 49 46 description = "Apache Zookeeper"; 47 + changelog = "https://zookeeper.apache.org/doc/r${version}/releasenotes.html"; 50 48 license = licenses.asl20; 51 49 maintainers = with maintainers; [ nathan-gs pradeepchhetri ztzg ]; 52 50 platforms = platforms.unix; 51 + sourceProvenance = with sourceTypes; [ binaryBytecode ]; 53 52 }; 54 53 }