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 }: 2 3 stdenv.mkDerivation rec { 4 - name = "torque-4.2.8"; 5 6 src = fetchurl { 7 name = "${name}.tar.gz"; 8 - url = "http://www.adaptivecomputing.com/index.php?wpfb_dl=2730"; 9 - sha256 = "1sjpvndzm9ccdmfwdf9887ppmapawfsh5qdkzr92kadg5jxp796j"; 10 }; 11 12 - buildInputs = [ openssl flex bison pkgconfig groff libxml2 utillinux ]; 13 14 enableParallelBuilding = true; 15 16 preConfigure = '' 17 for s in fifo cray_t3e dec_cluster msic_cluster sgi_origin umn_cluster; do 18 substituteInPlace src/scheduler.cc/samples/$s/Makefile.in \ 19 --replace "schedprivdir = " "schedprivdir = $out/"
··· 1 + { stdenv, fetchurl, openssl, flex, bison, pkgconfig, groff, libxml2, utillinux 2 + , file, libtool, which }: 3 4 stdenv.mkDerivation rec { 5 + name = "torque-4.2.10"; 6 7 src = fetchurl { 8 name = "${name}.tar.gz"; 9 + url = "http://www.adaptivecomputing.com/index.php?wpfb_dl=2880"; 10 + sha256 = "1qpsk3bla6b6m7m0i1xpr183yj79liy3p34xhnz1grgq0776wg5l"; 11 }; 12 13 + buildInputs = [ openssl flex bison pkgconfig groff libxml2 utillinux libtool 14 + which ]; 15 16 enableParallelBuilding = true; 17 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 + 25 for s in fifo cray_t3e dec_cluster msic_cluster sgi_origin umn_cluster; do 26 substituteInPlace src/scheduler.cc/samples/$s/Makefile.in \ 27 --replace "schedprivdir = " "schedprivdir = $out/"