git.iko.soy/typeable/nixpkgs
on master help sign in
couchdb: 1.6.1 -> 1.7.1 for multiple CVEs

Fixes CVE-2017-12635, CVE-2017-12636. https://blog.couchdb.org/2017/11/14/apache-couchdb-cve-2017-12635-and-cve-2017-12636/

commit0426b9456eecaf1036b8b99e10cc2d0e641d347d authorFranz Pletz <fpletz@fnordicwalking.de> dateSun 19 Nov 2017, 17:38 (9 years ago) parent71b8437
1 file changed+5−17
pkgs/servers/http/couchdb/default.nix+5−17
pkgs/servers/http/couchdb/default.nix+5−17
@@ -3,30 +3,18 @@
33
44stdenv.mkDerivation rec {
55 name = "couchdb-${version}";
6− version = "1.6.1";
6+ version = "1.7.1";
77
88 src = fetchurl {
99 url = "mirror://apache/couchdb/source/${version}/apache-${name}.tar.gz";
10− sha256 = "09w6ijj9l5jzh81nvc3hrlqp345ajg3haj353g9kxkik6wbinq2s";
10+ sha256 = "1b9cbdrmh1i71mrwvhm17v4cf7lckpil1vvq7lpmxyn6zfk0l84i";
1111 };
1212
13− buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
14− file pkgconfig ];
15−
16− /* This patch removes the `-Werror` flag as there are warnings due to
17− * _BSD_SOURCE being deprecated in glibc >= 2.20
18− */
19− patchPhase = ''
20− patch src/couchdb/priv/Makefile.in <<EOF
21− 392c392
22− < couchjs_CFLAGS = -g -Wall -Werror -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
23− ---
24− > couchjs_CFLAGS = -g -Wall -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
25− EOF
26− '';
13+ nativeBuildInputs = [ help2man which file pkgconfig sphinx ];
14+ buildInputs = [ erlang icu openssl spidermonkey curl ];
2715
2816 postInstall = ''
29− sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
17+ substituteInPlace $out/bin/couchdb --replace getopt "${getopt}/bin/getopt"
3018 '';
3119
3220 /*