Skip to content
Permalink
Browse files

couchdb: fix build (fixes #10084)

(cherry picked from commit 4361a7a)
  • Loading branch information
vbgl authored and vcunat committed Jan 16, 2015
1 parent 4137703 commit b373bf9c7d54827504781009efbb4bee15856d86
Showing with 12 additions and 0 deletions.
  1. +12 −0 pkgs/servers/http/couchdb/default.nix
@@ -13,6 +13,18 @@ stdenv.mkDerivation rec {
buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
file pkgconfig ];

/* This patch removes the `-Werror` flag as there are warnings due to
* _BSD_SOURCE being deprecated in glibc >= 2.20
*/
patchPhase = ''
patch src/couchdb/priv/Makefile.in <<EOF
392c392
< couchjs_CFLAGS = -g -Wall -Werror -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
---
> couchjs_CFLAGS = -g -Wall -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
EOF
'';

postInstall = ''
sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
'';

0 comments on commit b373bf9

Please sign in to comment.
You can’t perform that action at this time.