git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #7244 from spwhitt/fail2ban

fail2ban and gamin: fixes on Darwin

commit1035b7b6c9970a124087f6fe0a5962864c0f67e1 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateWed 8 Apr 2015, 00:35 (12 years ago) parent74b22533885fc5
3 files changed+17−2
pkgs/development/libraries/gamin/default.nix+3−1 pkgs/development/libraries/gamin/returnval.patch+12 pkgs/tools/security/fail2ban/default.nix+2−1
pkgs/development/libraries/gamin/default.nix+3−1
@@ -16,7 +16,9 @@ stdenv.mkDerivation (rec {
1616 # <sys/socket.h> with Glibc 2.9.
1717 configureFlags = "--disable-debug --with-python=${python} CPPFLAGS=-D_GNU_SOURCE";
1818
19− patches = [ ./deadlock.patch ] ++ map fetchurl (import ./debian-patches.nix);
19+ patches = [ ./deadlock.patch ]
20+ ++ map fetchurl (import ./debian-patches.nix)
21+ ++ stdenv.lib.optional (stdenv.cc.cc.isClang or false) ./returnval.patch;
2022
2123
2224 meta = with stdenv.lib; {
pkgs/development/libraries/gamin/returnval.patchnew file+12
@@ -0,0 +1,12 @@
1+diff -rupN gamin-0.1.10-orig/server/gam_eq.c gamin-0.1.10/server/gam_eq.c
2+--- gamin-0.1.10-orig/server/gam_eq.c 2015-04-05 19:25:54.000000000 -0400
3++++ gamin-0.1.10/server/gam_eq.c 2015-04-05 19:26:00.000000000 -0400
4+@@ -124,7 +124,7 @@ gam_eq_flush (gam_eq_t *eq, GamConnDataP
5+ {
6+ gboolean done_work = FALSE;
7+ if (!eq)
8+- return;
9++ return done_work;
10+
11+ #ifdef GAM_EQ_VERBOSE
12+ GAM_DEBUG(DEBUG_INFO, "gam_eq: Flushing event queue for %s\n", gam_connection_get_pidname (conn));
pkgs/tools/security/fail2ban/default.nix+2−1
@@ -14,7 +14,8 @@ pythonPackages.buildPythonPackage {
1414
1515 buildInputs = [ unzip ];
1616
17− pythonPath = [ systemd python.modules.sqlite3 gamin ];
17+ pythonPath = (stdenv.lib.optional stdenv.isLinux systemd)
18+ ++ [ python.modules.sqlite3 gamin ];
1819
1920 preConfigure = ''
2021 substituteInPlace setup.cfg \