Skip to content

Commit

Permalink
pgpool: 3.4.2 -> 3.4.14
Browse files Browse the repository at this point in the history
Fixes the build with glibc 2.26.

Tracking issue: #31696
  • Loading branch information
orivej committed Nov 16, 2017
1 parent 3835526 commit 68a703b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/servers/sql/pgpool/default.nix
@@ -1,14 +1,16 @@
{ stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:

stdenv.mkDerivation rec {
name = "pgpool-II-3.4.2";
name = "pgpool-II-3.4.14";

src = fetchurl {
name = "${name}.tar.gz";
url = "http://www.pgpool.net/download.php?f=${name}.tar.gz";
sha256 = "0lf3fvwc2ib4md25a3hnv822nhy9ac06vg0ndw8q9bry66hzwcfh";
sha256 = "1paak83f4lv48xckmf2znryrvhmdz86w4v97mcw2gxm50hcl74sw";
};

patches = [ ./pgpool-II-3.4.14-glibc-2.26.patch ];

buildInputs = [ postgresql openssl pam libmemcached ];

configureFlags = [
Expand All @@ -22,6 +24,8 @@ stdenv.mkDerivation rec {
"sysconfdir=\${out}/etc"
];

enableParallelBuilding = true;

meta = with stdenv.lib; {
homepage = http://pgpool.net/mediawiki/index.php;
description = "A middleware that works between postgresql servers and postgresql clients";
Expand Down
12 changes: 12 additions & 0 deletions pkgs/servers/sql/pgpool/pgpool-II-3.4.14-glibc-2.26.patch
@@ -0,0 +1,12 @@
diff --git a/src/watchdog/wd_lifecheck.c b/src/watchdog/wd_lifecheck.c
index 1e72307..5cf68a3 100644
--- a/src/watchdog/wd_lifecheck.c
+++ b/src/watchdog/wd_lifecheck.c
@@ -26,6 +26,7 @@
#include <ctype.h>
#include <time.h>
#include <string.h>
+#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>

0 comments on commit 68a703b

Please sign in to comment.