3
0
Fork 0
forked from mirrors/nixpkgs

apache modules: fix build problems

pkgs.mod_evasive was removed, because that combination isn't supported
(according to an assertion).
This commit is contained in:
Vladimír Čunát 2015-12-05 13:15:41 +01:00
parent 2709a815e5
commit 6cc57be289
4 changed files with 9 additions and 5 deletions

View file

@ -24,7 +24,8 @@ stdenv.mkDerivation rec {
outputs = [ "dev" "out" "doc" ];
setOutputFlags = false; # it would move $out/modules, etc.
buildInputs = [ pkgconfig perl apr aprutil pcre zlib ] ++
propagatedBuildInputs = [ apr ]; # otherwise mod_* fail to find includes often
buildInputs = [ pkgconfig perl aprutil pcre zlib ] ++
stdenv.lib.optional sslSupport openssl;
# Required for pthread_cancel.
@ -34,6 +35,9 @@ stdenv.mkDerivation rec {
sed -i config.layout -e "s|installbuilddir:.*|installbuilddir: $dev/share/build|"
'';
preConfigure = ''
configureFlags="$configureFlags --includedir=$dev/include"
'';
configureFlags = ''
--with-z=${zlib}
--with-pcre=${pcre}
@ -47,7 +51,6 @@ stdenv.mkDerivation rec {
--enable-disk-cache
--enable-file-cache
--enable-mem-cache
--includedir=$(dev)/include
--docdir=$(doc)/share/doc
'';

View file

@ -39,6 +39,9 @@ stdenv.mkDerivation rec {
# Required for pthread_cancel.
NIX_LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s";
preConfigure = ''
configureFlags="$configureFlags --includedir=$dev/include"
'';
configureFlags = ''
--with-apr=${apr}
--with-apr-util=${aprutil}
@ -55,7 +58,6 @@ stdenv.mkDerivation rec {
${optionalString sslSupport "--enable-ssl"}
${optionalString luaSupport "--enable-lua --with-lua=${lua5}"}
${optionalString libxml2Support "--with-libxml2=${libxml2.dev}/include/libxml2"}
--includedir=$(dev)/include
--docdir=$(doc)/share/doc
'';

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
preBuild = ''
cp Makefile.AP2 Makefile
makeFlags="top_dir=${apacheHttpd} prefix=$out"
makeFlags="top_dir=${apacheHttpd}/share prefix=$out"
'';
meta = {

View file

@ -9239,7 +9239,6 @@ let
# Backwards compatibility.
mod_dnssd = pkgs.apacheHttpdPackages.mod_dnssd;
mod_evasive = pkgs.apacheHttpdPackages.mod_evasive;
mod_fastcgi = pkgs.apacheHttpdPackages.mod_fastcgi;
mod_python = pkgs.apacheHttpdPackages.mod_python;
mod_wsgi = pkgs.apacheHttpdPackages.mod_wsgi;