Hi,

A new version is available for PostgreSQL (9.4.2).
This version fixes a data corruption problem and 3 CVE:
http://www.postgresql.org/about/news/1587/

Tested on @amd64 on -current and 5.7.
Comments, OK ?

Regards,
Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/postgresql/Makefile,v
retrieving revision 1.202
diff -u -p -u -p -r1.202 Makefile
--- Makefile	22 May 2015 11:31:11 -0000	1.202
+++ Makefile	28 May 2015 08:36:10 -0000
@@ -11,18 +11,13 @@ BROKEN-sparc=	Requires v9|v9a|v9b; reque
 # DO NOT FORGET to also change the @ask-update entry in pkg/PLIST-server
 # in case a dump before / restore after pkg_add -u is required!
 
-VERSION=	9.4.1
-REVISION-server= 2
+VERSION=	9.4.2
 DISTNAME=	postgresql-${VERSION}
 PKGNAME-main=	postgresql-client-${VERSION}
 PKGNAME-server=	postgresql-server-${VERSION}
 PKGNAME-docs=	postgresql-docs-${VERSION}
 PKGNAME-contrib=postgresql-contrib-${VERSION}
 PKGNAME-plpython=postgresql-plpython-${VERSION}
-REVISION-contrib=	0
-REVISION-docs=	0
-REVISION-main=	0
-REVISION-plpython=	0
 
 CATEGORIES=	databases
 SHARED_LIBS=	ecpg		7.6 \
@@ -37,7 +32,7 @@ MAINTAINER=	Pierre-Emmanuel Andre <pea@o
 # BSD
 PERMIT_PACKAGE_CDROM=	Yes
 
-WANTLIB += c crypto m readline ssl termcap z
+WANTLIB += c crypto m readline ssl termcap z pthread
 
 MASTER_SITES=	http://ftp.postgresql.org/pub/source/v${VERSION}/ \
 	http://ftp5.es.postgresql.org/mirror/postgresql/source/v${VERSION}/ \
Index: distinfo
===================================================================
RCS file: /cvs/ports/databases/postgresql/distinfo,v
retrieving revision 1.55
diff -u -p -u -p -r1.55 distinfo
--- distinfo	6 Feb 2015 09:01:21 -0000	1.55
+++ distinfo	28 May 2015 08:36:10 -0000
@@ -1,2 +1,2 @@
-SHA256 (postgresql-9.4.1.tar.gz) = Q9otVP+DM6LuWV78PQ3zJVu0bUQxhB0riPnPzWNm4jQ=
-SIZE (postgresql-9.4.1.tar.gz) = 23004433
+SHA256 (postgresql-9.4.2.tar.gz) = vGWzgXXA/jUayomzPWBuouhJNWC1Q9kgqK92n7OTmUs=
+SIZE (postgresql-9.4.2.tar.gz) = 23092865
Index: patches/patch-src_backend_libpq_hba_c
===================================================================
RCS file: patches/patch-src_backend_libpq_hba_c
diff -N patches/patch-src_backend_libpq_hba_c
--- patches/patch-src_backend_libpq_hba_c	17 Feb 2015 12:43:08 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-$OpenBSD: patch-src_backend_libpq_hba_c,v 1.1 2015/02/17 12:43:08 jca Exp $
---- src/backend/libpq/hba.c.orig	Mon Feb 16 21:53:21 2015
-+++ src/backend/libpq/hba.c	Mon Feb 16 23:08:38 2015
-@@ -700,8 +700,13 @@ check_ip(SockAddr *raddr, struct sockaddr * addr, stru
- 		struct sockaddr_storage addrcopy,
- 					maskcopy;
- 
--		memcpy(&addrcopy, &addr, sizeof(addrcopy));
--		memcpy(&maskcopy, &mask, sizeof(maskcopy));
-+		memcpy(&addrcopy, addr, sizeof(struct sockaddr_in));
-+		/*
-+		 * On some OSes, if mask is obtained from eg. getifaddrs(3), sa_len
-+		 * can vary wildly. We already know that addr->sa_family == AF_INET,
-+		 * so just use sizeof(struct sockaddr_in).
-+		 */
-+		memcpy(&maskcopy, mask, sizeof(struct sockaddr_in));
- 		pg_promote_v4_to_v6_addr(&addrcopy);
- 		pg_promote_v4_to_v6_mask(&maskcopy);
- 
Index: pkg/PLIST-docs
===================================================================
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-docs,v
retrieving revision 1.67
diff -u -p -u -p -r1.67 PLIST-docs
--- pkg/PLIST-docs	6 Feb 2015 09:01:21 -0000	1.67
+++ pkg/PLIST-docs	28 May 2015 08:36:10 -0000
@@ -823,6 +823,7 @@ share/doc/postgresql/html/release-9-0-17
 share/doc/postgresql/html/release-9-0-18.html
 share/doc/postgresql/html/release-9-0-19.html
 share/doc/postgresql/html/release-9-0-2.html
+share/doc/postgresql/html/release-9-0-20.html
 share/doc/postgresql/html/release-9-0-3.html
 share/doc/postgresql/html/release-9-0-4.html
 share/doc/postgresql/html/release-9-0-5.html
@@ -838,6 +839,7 @@ share/doc/postgresql/html/release-9-1-12
 share/doc/postgresql/html/release-9-1-13.html
 share/doc/postgresql/html/release-9-1-14.html
 share/doc/postgresql/html/release-9-1-15.html
+share/doc/postgresql/html/release-9-1-16.html
 share/doc/postgresql/html/release-9-1-2.html
 share/doc/postgresql/html/release-9-1-3.html
 share/doc/postgresql/html/release-9-1-4.html
@@ -849,6 +851,7 @@ share/doc/postgresql/html/release-9-1-9.
 share/doc/postgresql/html/release-9-1.html
 share/doc/postgresql/html/release-9-2-1.html
 share/doc/postgresql/html/release-9-2-10.html
+share/doc/postgresql/html/release-9-2-11.html
 share/doc/postgresql/html/release-9-2-2.html
 share/doc/postgresql/html/release-9-2-3.html
 share/doc/postgresql/html/release-9-2-4.html
@@ -864,8 +867,10 @@ share/doc/postgresql/html/release-9-3-3.
 share/doc/postgresql/html/release-9-3-4.html
 share/doc/postgresql/html/release-9-3-5.html
 share/doc/postgresql/html/release-9-3-6.html
+share/doc/postgresql/html/release-9-3-7.html
 share/doc/postgresql/html/release-9-3.html
 share/doc/postgresql/html/release-9-4-1.html
+share/doc/postgresql/html/release-9-4-2.html
 share/doc/postgresql/html/release-9-4.html
 share/doc/postgresql/html/release.html
 share/doc/postgresql/html/resources.html
Index: pkg/PLIST-server
===================================================================
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-server,v
retrieving revision 1.27
diff -u -p -u -p -r1.27 PLIST-server
--- pkg/PLIST-server	6 Feb 2015 09:01:21 -0000	1.27
+++ pkg/PLIST-server	28 May 2015 08:36:10 -0000
@@ -625,6 +625,9 @@ lib/postgresql/utf8_and_win.so
 @man man/man1/postmaster.1
 share/doc/pkg-readmes/${FULLPKGNAME}
 share/postgresql/extension/
+share/postgresql/extension/citext--1.0--1.1.sql
+share/postgresql/extension/citext--1.1--1.0.sql
+share/postgresql/extension/citext--1.1.sql
 share/postgresql/extension/plperl--1.0.sql
 share/postgresql/extension/plperl--unpackaged--1.0.sql
 share/postgresql/extension/plperl.control
Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/postgresql/Makefile,v
retrieving revision 1.200
diff -u -p -u -p -r1.200 Makefile
--- Makefile	18 Feb 2015 17:49:56 -0000	1.200
+++ Makefile	28 May 2015 08:37:33 -0000
@@ -9,8 +9,7 @@ COMMENT-plpython=Python procedural langu
 # DO NOT FORGET to also change the @ask-update entry in pkg/PLIST-server
 # in case a dump before / restore after pkg_add -u is required!
 
-VERSION=	9.4.1
-REVISION-server= 1
+VERSION=	9.4.2
 DISTNAME=	postgresql-${VERSION}
 PKGNAME-main=	postgresql-client-${VERSION}
 PKGNAME-server=	postgresql-server-${VERSION}
Index: patches/patch-src_backend_libpq_hba_c
===================================================================
RCS file: patches/patch-src_backend_libpq_hba_c
diff -N patches/patch-src_backend_libpq_hba_c
--- patches/patch-src_backend_libpq_hba_c	17 Feb 2015 12:43:08 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-$OpenBSD: patch-src_backend_libpq_hba_c,v 1.1 2015/02/17 12:43:08 jca Exp $
---- src/backend/libpq/hba.c.orig	Mon Feb 16 21:53:21 2015
-+++ src/backend/libpq/hba.c	Mon Feb 16 23:08:38 2015
-@@ -700,8 +700,13 @@ check_ip(SockAddr *raddr, struct sockaddr * addr, stru
- 		struct sockaddr_storage addrcopy,
- 					maskcopy;
- 
--		memcpy(&addrcopy, &addr, sizeof(addrcopy));
--		memcpy(&maskcopy, &mask, sizeof(maskcopy));
-+		memcpy(&addrcopy, addr, sizeof(struct sockaddr_in));
-+		/*
-+		 * On some OSes, if mask is obtained from eg. getifaddrs(3), sa_len
-+		 * can vary wildly. We already know that addr->sa_family == AF_INET,
-+		 * so just use sizeof(struct sockaddr_in).
-+		 */
-+		memcpy(&maskcopy, mask, sizeof(struct sockaddr_in));
- 		pg_promote_v4_to_v6_addr(&addrcopy);
- 		pg_promote_v4_to_v6_mask(&maskcopy);
- 
Index: pkg/PLIST-docs
===================================================================
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-docs,v
retrieving revision 1.67
diff -u -p -u -p -r1.67 PLIST-docs
--- pkg/PLIST-docs	6 Feb 2015 09:01:21 -0000	1.67
+++ pkg/PLIST-docs	28 May 2015 08:37:34 -0000
@@ -823,6 +823,7 @@ share/doc/postgresql/html/release-9-0-17
 share/doc/postgresql/html/release-9-0-18.html
 share/doc/postgresql/html/release-9-0-19.html
 share/doc/postgresql/html/release-9-0-2.html
+share/doc/postgresql/html/release-9-0-20.html
 share/doc/postgresql/html/release-9-0-3.html
 share/doc/postgresql/html/release-9-0-4.html
 share/doc/postgresql/html/release-9-0-5.html
@@ -838,6 +839,7 @@ share/doc/postgresql/html/release-9-1-12
 share/doc/postgresql/html/release-9-1-13.html
 share/doc/postgresql/html/release-9-1-14.html
 share/doc/postgresql/html/release-9-1-15.html
+share/doc/postgresql/html/release-9-1-16.html
 share/doc/postgresql/html/release-9-1-2.html
 share/doc/postgresql/html/release-9-1-3.html
 share/doc/postgresql/html/release-9-1-4.html
@@ -849,6 +851,7 @@ share/doc/postgresql/html/release-9-1-9.
 share/doc/postgresql/html/release-9-1.html
 share/doc/postgresql/html/release-9-2-1.html
 share/doc/postgresql/html/release-9-2-10.html
+share/doc/postgresql/html/release-9-2-11.html
 share/doc/postgresql/html/release-9-2-2.html
 share/doc/postgresql/html/release-9-2-3.html
 share/doc/postgresql/html/release-9-2-4.html
@@ -864,8 +867,10 @@ share/doc/postgresql/html/release-9-3-3.
 share/doc/postgresql/html/release-9-3-4.html
 share/doc/postgresql/html/release-9-3-5.html
 share/doc/postgresql/html/release-9-3-6.html
+share/doc/postgresql/html/release-9-3-7.html
 share/doc/postgresql/html/release-9-3.html
 share/doc/postgresql/html/release-9-4-1.html
+share/doc/postgresql/html/release-9-4-2.html
 share/doc/postgresql/html/release-9-4.html
 share/doc/postgresql/html/release.html
 share/doc/postgresql/html/resources.html
Index: pkg/PLIST-server
===================================================================
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-server,v
retrieving revision 1.27
diff -u -p -u -p -r1.27 PLIST-server
--- pkg/PLIST-server	6 Feb 2015 09:01:21 -0000	1.27
+++ pkg/PLIST-server	28 May 2015 08:37:34 -0000
@@ -625,6 +625,9 @@ lib/postgresql/utf8_and_win.so
 @man man/man1/postmaster.1
 share/doc/pkg-readmes/${FULLPKGNAME}
 share/postgresql/extension/
+share/postgresql/extension/citext--1.0--1.1.sql
+share/postgresql/extension/citext--1.1--1.0.sql
+share/postgresql/extension/citext--1.1.sql
 share/postgresql/extension/plperl--1.0.sql
 share/postgresql/extension/plperl--unpackaged--1.0.sql
 share/postgresql/extension/plperl.control

Reply via email to