Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) by www.NetBSD.org (Postfix) with ESMTP id 8546B63B293 for ; Sun, 7 Oct 2012 10:24:57 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 641CD14A12F; Sun, 7 Oct 2012 10:24:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3733214A12E for ; Sun, 7 Oct 2012 10:24:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id H-GrmtdyPqka for ; Sun, 7 Oct 2012 10:24:54 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 7607314A12A for ; Sun, 7 Oct 2012 10:24:54 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 6E70D175DD; Sun, 7 Oct 2012 10:24:54 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Sun, 7 Oct 2012 10:24:54 +0000 From: "John Marino" Subject: CVS commit: pkgsrc/databases To: pkgsrc-changes@NetBSD.org Reply-To: marino@netbsd.org X-Mailer: log_accum Message-Id: <20121007102454.6E70D175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: marino Date: Sun Oct 7 10:24:54 UTC 2012 Modified Files: pkgsrc/databases/postgresql91: distinfo pkgsrc/databases/postgresql91-client: Makefile Added Files: pkgsrc/databases/postgresql91/patches: patch-src_backend_access_gist_gistutil.c patch-src_include_access_htup.h patch-src_include_access_itup.h Log Message: databases/postgresql91(-client): Fix build for gcc46 and gcc47 Postgresql91 uses non-constant array sizes in record definitions which gcc enforces starting with 4.6. These index sizes are defined as macros using functions such as offsetof. These patches introduce enums where the macros become constant expressions which gcc 4.6+ will accept. GCC 4.7 also introduces the unused-but-set-variable warning which is popping up all over the place in pgsql91, so silence these warnings - they are harmless and get optimized out anyway. No revbump because functionality won't change on binaries generated with gcc4.5 and below. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/databases/postgresql91/distinfo cvs rdiff -u -r1.8 -r1.9 pkgsrc/databases/postgresql91-client/Makefile cvs rdiff -u -r0 -r1.1 \ pkgsrc/databases/postgresql91/patches/patch-src_backend_access_gist_gistutil.c \ pkgsrc/databases/postgresql91/patches/patch-src_include_access_htup.h \ pkgsrc/databases/postgresql91/patches/patch-src_include_access_itup.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.