Subject: CVS commit: pkgsrc/databases
From: John Marino
Date: 2012-10-07 12:24:54
Message id: 20121007102454.6E70D175DD@cvs.netbsd.org

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.

Files:
RevisionActionfile
1.10modifypkgsrc/databases/postgresql91/distinfo
1.9modifypkgsrc/databases/postgresql91-client/Makefile
1.1addpkgsrc/databases/postgresql91/patches/patch-src_backend_access_gist_gistutil.c
1.1addpkgsrc/databases/postgresql91/patches/patch-src_include_access_htup.h
1.1addpkgsrc/databases/postgresql91/patches/patch-src_include_access_itup.h