pgpool: 3.4.2 -> 3.4.14

Fixes the build with glibc 2.26.

Tracking issue: #31696
This commit is contained in:
Orivej Desh 2017-11-16 02:17:45 +00:00
parent 3835526a94
commit 68a703b405
2 changed files with 18 additions and 2 deletions

View File

@ -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 = [
@ -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";

View File

@ -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>