torque: update from 4.2.8 to 4.2.10, fixes CVE-2014-3684

+13 -5
+13 -5
pkgs/servers/computing/torque/default.nix
··· 1 - { stdenv, fetchurl, openssl, flex, bison, pkgconfig, groff, libxml2, utillinux }: 1 + { stdenv, fetchurl, openssl, flex, bison, pkgconfig, groff, libxml2, utillinux 2 + , file, libtool, which }: 2 3 3 4 stdenv.mkDerivation rec { 4 - name = "torque-4.2.8"; 5 + name = "torque-4.2.10"; 5 6 6 7 src = fetchurl { 7 8 name = "${name}.tar.gz"; 8 - url = "http://www.adaptivecomputing.com/index.php?wpfb_dl=2730"; 9 - sha256 = "1sjpvndzm9ccdmfwdf9887ppmapawfsh5qdkzr92kadg5jxp796j"; 9 + url = "http://www.adaptivecomputing.com/index.php?wpfb_dl=2880"; 10 + sha256 = "1qpsk3bla6b6m7m0i1xpr183yj79liy3p34xhnz1grgq0776wg5l"; 10 11 }; 11 12 12 - buildInputs = [ openssl flex bison pkgconfig groff libxml2 utillinux ]; 13 + buildInputs = [ openssl flex bison pkgconfig groff libxml2 utillinux libtool 14 + which ]; 13 15 14 16 enableParallelBuilding = true; 15 17 16 18 preConfigure = '' 19 + substituteInPlace ./configure \ 20 + --replace '/usr/bin/file' '${file}/bin/file' 21 + 22 + # fix broken libxml2 detection 23 + sed -i '/xmlLib\=/c\xmlLib=xml2' ./configure 24 + 17 25 for s in fifo cray_t3e dec_cluster msic_cluster sgi_origin umn_cluster; do 18 26 substituteInPlace src/scheduler.cc/samples/$s/Makefile.in \ 19 27 --replace "schedprivdir = " "schedprivdir = $out/"