Merge pull request #7244 from spwhitt/fail2ban

fail2ban and gamin: fixes on Darwin
This commit is contained in:
Arseniy Seroka 2015-04-08 00:35:29 +03:00
commit 1035b7b6c9
3 changed files with 17 additions and 2 deletions

View File

@ -16,7 +16,9 @@ stdenv.mkDerivation (rec {
# <sys/socket.h> with Glibc 2.9.
configureFlags = "--disable-debug --with-python=${python} CPPFLAGS=-D_GNU_SOURCE";
patches = [ ./deadlock.patch ] ++ map fetchurl (import ./debian-patches.nix);
patches = [ ./deadlock.patch ]
++ map fetchurl (import ./debian-patches.nix)
++ stdenv.lib.optional (stdenv.cc.cc.isClang or false) ./returnval.patch;
meta = with stdenv.lib; {

View File

@ -0,0 +1,12 @@
diff -rupN gamin-0.1.10-orig/server/gam_eq.c gamin-0.1.10/server/gam_eq.c
--- gamin-0.1.10-orig/server/gam_eq.c 2015-04-05 19:25:54.000000000 -0400
+++ gamin-0.1.10/server/gam_eq.c 2015-04-05 19:26:00.000000000 -0400
@@ -124,7 +124,7 @@ gam_eq_flush (gam_eq_t *eq, GamConnDataP
{
gboolean done_work = FALSE;
if (!eq)
- return;
+ return done_work;
#ifdef GAM_EQ_VERBOSE
GAM_DEBUG(DEBUG_INFO, "gam_eq: Flushing event queue for %s\n", gam_connection_get_pidname (conn));

View File

@ -14,7 +14,8 @@ pythonPackages.buildPythonPackage {
buildInputs = [ unzip ];
pythonPath = [ systemd python.modules.sqlite3 gamin ];
pythonPath = (stdenv.lib.optional stdenv.isLinux systemd)
++ [ python.modules.sqlite3 gamin ];
preConfigure = ''
substituteInPlace setup.cfg \