df3936eff4
* Fix Windows shared-memory allocation code * Force WAL segment switch during pg_start_backup() * Disallow "RESET ROLE" and "RESET SESSION AUTHORIZATION" inside security-definer functions * Make "LOAD" of an already-loaded loadable module into a no-op * Disallow empty passwords during LDAP authentication * Fix handling of sub-SELECTs appearing in the arguments of an outer-level aggregate function * Fix bugs associated with fetching a whole-row value from the output of a Sort or Materialize plan node * Prevent synchronize_seqscans from changing the results of scrollable and WITH HOLD cursors * Revert planner change that disabled partial-index and constraint exclusion optimizations when there were more than 100 clauses in an AND or OR list * Fix hash calculation for data type interval * Treat to_char(..., 'TH') as an uppercase ordinal suffix with 'HH'/'HH12' * Fix overflow for INTERVAL 'x ms' when "x" is more than 2 million and integer datetimes are in use * Fix calculation of distance between a point and a line segment * Fix money data type to work in locales where currency amounts have no fractional digits, e.g. Japan * Fix LIKE for case where pattern contains %_ * Properly round datetime input like 00:12:57.9999999999999999999999999999 * Fix memory leaks in XML operations * Fix poor choice of page split point in GiST R-tree operator classes * Ensure that a "fast shutdown" request will forcibly terminate open sessions, even if a "smart shutdown" was already in progress * Avoid performance degradation in bulk inserts into GIN indexes when the input values are (nearly) in sorted order * Correctly enforce NOT NULL domain constraints in some contexts in PL/pgSQL * Fix portability issues in plperl initialization * Fix pg_ctl to not go into an infinite loop if "postgresql.conf" is empty * Improve pg_dump's efficiency when there are many large objects * Use SIGUSR1, not SIGQUIT, as the failover signal for pg_standby
86 lines
2.4 KiB
Makefile
86 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2009/09/10 10:07:17 adam Exp $
|
|
|
|
PKGNAME= postgresql83-client-${BASE_VERS}
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../databases/postgresql83/Makefile.common"
|
|
|
|
USE_TOOLS+= gzip tar
|
|
USE_LIBTOOL= yes
|
|
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
|
|
|
|
LIBS.SunOS+= -lintl
|
|
|
|
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
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql83-client
|
|
.include "../../databases/postgresql83/options.mk"
|
|
|
|
.for _file_ in pg_service.conf psqlrc
|
|
CONF_FILES+= ${PG_DATA_DIR}/${_file_}.sample ${PG_ETC_DIR}/${_file_}
|
|
.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"
|
|
|
|
# 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:
|
|
${RUN} ${_ULIMIT_CMD} \
|
|
cd ${WRKSRC}/src/backend && \
|
|
env ${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 ${DESTDIR}${PG_DOC_DIR}/$$file; \
|
|
done
|
|
cp -R ${WRKSRC}/doc/TODO.detail ${DESTDIR}${PG_DOC_DIR}
|
|
chown -R ${DOCOWN}:${DOCGRP} ${DESTDIR}${PG_DOC_DIR}/TODO.detail
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|