From 1c77d5ae80c3d9968c4a13441089e4cbbf24c4db Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 6 May 2014 18:14:01 +0000 Subject: [PATCH] Fix support for Postgres 9.2 --- mail/archiveopteryx/Makefile | 2 +- mail/archiveopteryx/files/patch-db__postgres.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 mail/archiveopteryx/files/patch-db__postgres.cpp diff --git a/mail/archiveopteryx/Makefile b/mail/archiveopteryx/Makefile index 0e65b5ecaf5d..543484e66fe3 100644 --- a/mail/archiveopteryx/Makefile +++ b/mail/archiveopteryx/Makefile @@ -3,7 +3,7 @@ PORTNAME= archiveopteryx PORTVERSION= 3.2.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= http://archiveopteryx.org/download/ diff --git a/mail/archiveopteryx/files/patch-db__postgres.cpp b/mail/archiveopteryx/files/patch-db__postgres.cpp new file mode 100644 index 000000000000..cb0eaeefc3b2 --- /dev/null +++ b/mail/archiveopteryx/files/patch-db__postgres.cpp @@ -0,0 +1,11 @@ +--- ./db/postgres.cpp.orig 2014-05-06 13:03:48.795894217 -0500 ++++ ./db/postgres.cpp 2014-05-06 13:04:03.207891218 -0500 +@@ -85,7 +85,7 @@ + "from pg_locks h join pg_locks w using (locktype) " + "join pg_stat_activity a on (h.pid=" + ); +- if (Postgres::version() < 90300) ++ if (Postgres::version() < 90200) + s.append( "a.procpid" ); + else + s.append( "a.pid" );