pgpool: 3.4.2 -> 3.4.14
Fixes the build with glibc 2.26. Tracking issue: #31696
This commit is contained in:
parent
3835526a94
commit
68a703b405
@ -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";
|
||||
|
12
pkgs/servers/sql/pgpool/pgpool-II-3.4.14-glibc-2.26.patch
Normal file
12
pkgs/servers/sql/pgpool/pgpool-II-3.4.14-glibc-2.26.patch
Normal 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>
|
Loading…
Reference in New Issue
Block a user