couchdb: fix build
This commit is contained in:
parent
06f7226541
commit
4361a7a597
@ -13,6 +13,18 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
|
buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
|
||||||
file pkgconfig ];
|
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 = ''
|
postInstall = ''
|
||||||
sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
|
sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user