ec6be795fa
Changes: * Fix incorrect password transformation in contrib/pgcrypto's DES crypt() function (Solar Designer) * Ignore SECURITY DEFINER and SET attributes for a procedural language's call handler (Tom Lane) * Allow numeric timezone offsets in timestamp input to be up to 16 hours away from UTC (Tom Lane) * Fix timestamp conversion to cope when the given time is exactly the last DST transition time for the the current timezone (Tom Lane) * Fix text to name and char to name casts to perform string truncation correctly in multibyte encodings (Karl Schnaitter) * Fix memory copying bug in to_tsquery() (Heikki Linnakangas) * Fix planner's handling of outer PlaceHolderVars within subqueries (Tom Lane) * Fix slow session startup when pg_attribute is very large (Tom Lane) * Ensure sequential scans check for query cancel reasonably often (Merlin Moncure) * Ensure the Windows implementation of PGSemaphoreLock() clears ImmediateInterruptOK before returning (Tom Lane) * Show whole-row variables safely when printing views or rules (Abbas Butt, Tom Lane) * Fix COPY FROM to properly handle null marker strings that correspond to invalid encoding (Tom Lane) * Ensure autovacuum worker processes perform stack depth checking properly (Heikki Linnakangas) * Fix logging collector to not lose log coherency under high load (Andrew Dunstan) * Fix logging collector to ensure it will restart file rotation after receiving SIGHUP (Tom Lane) * Fix WAL replay logic for GIN indexes to not fail if the index was subsequently dropped (Tom Lane) * Fix memory leak in PL/pgSQL's RETURN NEXT command (Joe Conway) * Fix PL/pgSQL's GET DIAGNOSTICS command when the target is the function's first variable (Tom Lane) * Fix potential access off the end of memory in psql's expanded display (\x) mode (Peter Eisentraut) * Fix several performance problems in pg_dump when the database contains many objects (Jeff Janes, Tom Lane) * Fix contrib/dblink's dblink_exec() to not leak temporary database connections upon error (Tom Lane) * Fix contrib/dblink to report the correct connection name in error messages (Kyotaro Horiguchi) * Update time zone data files to tzdata release 2012c for DST law changes in Antarctica, Armenia, Chile, Cuba, Falkland Islands, Gaza, Haiti, Hebron, Morocco, Syria, and Tokelau Islands; also historical corrections for Canada.
86 lines
2.7 KiB
Makefile
86 lines
2.7 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2012/07/01 19:30:23 morr Exp $
|
|
|
|
PKGNAME= ${DISTNAME:C/-/84-client-/}
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../databases/postgresql84/Makefile.common"
|
|
|
|
USE_TOOLS+= gzip tar
|
|
CONFIGURE_ARGS+= --with-openssl
|
|
CONFIGURE_ARGS+= --with-readline
|
|
CONFIGURE_ARGS+= --with-zlib
|
|
|
|
# 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
|
|
# NetBSD earler than 4.0 or DragonFly.
|
|
# 2. configure with --enable-thread-safety fails on OpenBSD.
|
|
.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
|
|
${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= src/include
|
|
INSTALL_DIRS+= src/interfaces
|
|
INSTALL_DIRS+= src/bin
|
|
INSTALL_DIRS+= src/port
|
|
INSTALL_DIRS+= doc
|
|
BUILD_DIRS= ${INSTALL_DIRS}
|
|
# Without this, the Darwin build fails (related to -bundle_loader).
|
|
BUILD_DIRS+= src/backend
|
|
|
|
.for f in pg_service.conf psqlrc
|
|
CONF_FILES+= ${PREFIX}/share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
|
|
# 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"
|
|
|
|
SUBST_CLASSES+= pgxs
|
|
SUBST_STAGE.pgxs= post-build
|
|
SUBST_MESSAGE.pgxs= Fixing workdir tools references in pgxs Makefile
|
|
SUBST_FILES.pgxs= src/Makefile.global
|
|
SUBST_SED.pgxs= -e 's,${TOOLS_CMD.bison},${TOOLS_PATH.bison},'
|
|
SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.lex},${TOOLS_PATH.lex},'
|
|
SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.perl},${PERL5},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper/bin/ld,${LD},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper,${PREFIX},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKSRC},/dev/null,'
|
|
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs/config
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs/src
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs/src/makefiles
|
|
|
|
DEST_PGXS= ${DESTDIR}${PREFIX}/lib/postgresql/pgxs
|
|
PGXS_FILES= config/install-sh config/mkinstalldirs
|
|
PGXS_FILES+= src/makefiles/pgxs.mk src/Makefile.global
|
|
PGXS_FILES+= src/Makefile.port src/Makefile.shlib
|
|
PGXS_FILES+= src/nls-global.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
|
|
|
|
post-install:
|
|
.for file in ${PGXS_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DEST_PGXS}/${file}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|