The fix for locales and plperl in 8.0.6 might make an REINDEX necessary. Changes from 8.0.5 to 8.0.6: - Fix Windows code so that postmaster will continue rather than exit if there is no more room in ShmemBackendArray (Magnus) - Fix bug introduced in 8.0 that could allow ReadBuffer to return an already-used page as new, potentially causing loss of recently-committed data (Tom) - Fix for protocol-level Describe messages issued outside a transaction or in a failed transaction (Tom) - Fix character string comparison for locales that consider different character combinations as equal, such as Hungarian (Tom) - Set locale environment variables during postmaster startup to ensure that plperl won't change the locale later - Allow more flexible relocation of installation directories (Tom) - Fix longstanding bug in strpos() and regular expression handling in certain rarely used Asian multi-byte character sets (Tatsuo) - Various fixes for functions returning RECORDs (Tom) - Fix bug in /contrib/pgcrypto gen_salt, which caused it not to use all available salt space for MD5 and XDES algorithms (Marko Kreen, Solar Designer) - Fix /contrib/dblink to throw an error, rather than crashing, when the number of columns specified is different from what's actually returned by the query (Joe) Changes from 8.0.6 to 8.0.7: - Fix potential crash in SET SESSION AUTHORIZATION (CVE-2006-0553) - Fix bug with row visibility logic in self-inserted rows (Tom) - Fix race condition that could lead to "file already exists" errors during pg_clog and pg_subtrans file creation (Tom) - Fix cases that could lead to crashes if a cache-invalidation message arrives at just the wrong time (Tom) - Properly check DOMAIN constraints for UNKNOWN parameters in prepared statements (Neil) - Ensure ALTER COLUMN TYPE will process FOREIGN KEY, UNIQUE, and PRIMARY KEY constraints in the proper order (Nakano Yoshihisa) - Fixes to allow restoring dumps that have cross-schema references to custom operators or operator classes (Tom) - Allow pg_restore to continue properly after a COPY failure; formerly it tried to treat the remaining COPY data as SQL commands (Stephen Frost) - Fix pg_ctl unregister crash when the data directory is not specified (Magnus) - Fix ecpg crash on AMD64 and PPC (Neil) - Recover properly if error occurs during argument passing in PL/python (Neil) - Fix PL/perl's handling of locales on Win32 to match the backend (Andrew) - Fix crash when log_min_messages is set to DEBUG3 or above in postgresql.conf on Win32 (Bruce) - Fix pgxs -L library path specification for Win32, Cygwin, OS X, AIX (Bruce) - Check that SID is enabled while checking for Win32 admin privileges (Magnus) - Properly reject out-of-range date inputs (Kris Jurka) - Portability fix for testing presence of finite and isinf during configure (Tom)
88 lines
2.5 KiB
Makefile
88 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2006/02/21 19:05:07 joerg Exp $
|
|
|
|
PKGNAME= postgresql80-client-${BASE_VERS}
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
.include "../../databases/postgresql80/Makefile.common"
|
|
|
|
USE_TOOLS+= gzip tar
|
|
USE_LIBTOOL= yes
|
|
CONFIGURE_ARGS+= --with-openssl
|
|
CONFIGURE_ARGS+= --with-readline
|
|
CONFIGURE_ARGS+= --with-zlib
|
|
|
|
CONFLICTS+= postgresql80-lib-*
|
|
CONFLICTS+= postgresql80-docs-*
|
|
|
|
# 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
|
|
# NetBSD (missing strerror_r) or DragonFly.
|
|
# 2. configure with --enable-thread-safety fails on OpenBSD.
|
|
#
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
|
|
PGSQL_THREAD_SAFETY?= no
|
|
.endif
|
|
PGSQL_THREAD_SAFETY?= yes
|
|
BUILD_DEFS+= PGSQL_THREAD_SAFETY
|
|
|
|
.if !empty(PGSQL_THREAD_SAFETY:M[yY][eE][sS])
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
. if (${PTHREAD_TYPE} == "native")
|
|
CONFIGURE_ARGS+= --enable-thread-safety
|
|
. endif
|
|
.endif
|
|
|
|
INSTALL_DIRS= ${WRKSRC}/src/include
|
|
INSTALL_DIRS+= ${WRKSRC}/src/interfaces
|
|
INSTALL_DIRS+= ${WRKSRC}/src/bin
|
|
INSTALL_DIRS+= ${WRKSRC}/doc
|
|
|
|
BUILD_DIRS= ${INSTALL_DIRS}
|
|
|
|
# Without this, the Darwin build fails (related to -bundle_loader).
|
|
BUILD_DIRS+= ${WRKSRC}/src/backend
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql80-client
|
|
.include "../../databases/postgresql80/options.mk"
|
|
|
|
.for _file_ in pg_service.conf psqlrc
|
|
CONF_FILES+= ${PG_DATA_DIR}/${_file_}.sample ${PG_ETC_DIR}/${_file_}
|
|
.endfor
|
|
.if !empty(PG_SUBPREFIX)
|
|
PLIST_SUBST+= PG_DIRRM_SUBPREFIX="@dirrm ${PG_SUBPREFIX}"
|
|
.else
|
|
PLIST_SUBST+= PG_DIRRM_SUBPREFIX="@comment empty line"
|
|
.endif
|
|
|
|
# XXX work around core dumps with the native libedit
|
|
USE_GNU_READLINE= yes
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
# On Solaris, avoid conflicts between "${SSLBASE}/include/openssl/des.h"
|
|
# and "/usr/include/crypt.h" -- we want the definitions in the former.
|
|
#
|
|
.if ${OPSYS} == "SunOS"
|
|
post-wrapper:
|
|
${TOUCH} ${BUILDLINK_DIR}/include/crypt.h
|
|
.endif
|
|
|
|
pre-build:
|
|
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
|
|
cd ${WRKSRC}/src/backend && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
|
|
../../src/include/parser/parse.h \
|
|
../../src/include/utils/fmgroids.h
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/doc; for file in \
|
|
FAQ* KNOWN_BUGS MISSING_FEATURES README.* TODO \
|
|
bug.template; \
|
|
do \
|
|
${INSTALL_DATA} $$file ${PG_DOC_DIR}/$$file; \
|
|
done
|
|
${CP} -R ${WRKSRC}/doc/TODO.detail ${PG_DOC_DIR}
|
|
${CHOWN} -R ${DOCOWN}:${DOCGRP} ${PG_DOC_DIR}/TODO.detail
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|