From owner-svn-ports-all@freebsd.org Sat Aug 17 16:56:19 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 81881CBD0B; Sat, 17 Aug 2019 16:56:19 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 469mYH2nLbz4XKh; Sat, 17 Aug 2019 16:56:19 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 413861CB35; Sat, 17 Aug 2019 16:56:19 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x7HGuJEx042873; Sat, 17 Aug 2019 16:56:19 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7HGuIL8042869; Sat, 17 Aug 2019 16:56:18 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201908171656.x7HGuIL8042869@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Sat, 17 Aug 2019 16:56:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509159 - in head/databases: postgresql12-contrib postgresql12-server X-SVN-Group: ports-head X-SVN-Commit-Author: adamw X-SVN-Commit-Paths: in head/databases: postgresql12-contrib postgresql12-server X-SVN-Commit-Revision: 509159 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2019 16:56:19 -0000 Author: adamw Date: Sat Aug 17 16:56:18 2019 New Revision: 509159 URL: https://svnweb.freebsd.org/changeset/ports/509159 Log: Add an XML option to postgresql12-contrib Avoids libxml2/libxslt for systems that don't need XML support. Although there was substantial interest in the PR to backport to 10, I've only done pgsql12 for now, as I don't want to interfere with the effort to make pgsql11 the default. If things work well here, it can be backported to earlier versions as well. PR: 239638 Approved by: maintainer timeout (2 weeks) Modified: head/databases/postgresql12-contrib/Makefile head/databases/postgresql12-server/pkg-plist-contrib Modified: head/databases/postgresql12-contrib/Makefile ============================================================================== --- head/databases/postgresql12-contrib/Makefile Sat Aug 17 16:03:25 2019 (r509158) +++ head/databases/postgresql12-contrib/Makefile Sat Aug 17 16:56:18 2019 (r509159) @@ -8,9 +8,6 @@ CATEGORIES= databases MAINTAINER= pgsql@FreeBSD.org COMMENT= The contrib utilities from the PostgreSQL distribution -LIB_DEPENDS= libxslt.so:textproc/libxslt \ - libxml2.so:textproc/libxml2 - MASTERDIR= ${.CURDIR}/../postgresql12-server USES= bison pgsql:12 @@ -20,16 +17,20 @@ INSTALL_DIRS= contrib SLAVE_ONLY= yes COMPONENT= -contrib -CONFIGURE_ARGS= --with-libxslt --with-libxml --disable-nls --with-uuid=bsd +CONFIGURE_ARGS= --disable-nls --with-uuid=bsd LDFLAGS+= -lpthread -L${PREFIX}/lib -OPTIONS_DEFINE= DOCS OPENSSL -OPTIONS_DEFAULT=OPENSSL +OPTIONS_DEFINE= DOCS OPENSSL XML +OPTIONS_DEFAULT=OPENSSL XML OPTIONS_SUB= yes OPENSSL_DESC= Build with OpenSSL support OPENSSL_USES= ssl OPENSSL_CONFIGURE_WITH= openssl + +XML_CONFIGURE_WITH= libxslt libxml +XML_LIB_DEPENDS=libxslt.so:textproc/libxslt \ + libxml2.so:textproc/libxml2 post-configure: @cd ${WRKSRC}/src/backend && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} symlinks Modified: head/databases/postgresql12-server/pkg-plist-contrib ============================================================================== --- head/databases/postgresql12-server/pkg-plist-contrib Sat Aug 17 16:03:25 2019 (r509158) +++ head/databases/postgresql12-server/pkg-plist-contrib Sat Aug 17 16:56:18 2019 (r509159) @@ -40,7 +40,7 @@ lib/postgresql/pg_visibility.so lib/postgresql/pgcrypto.so lib/postgresql/pgrowlocks.so lib/postgresql/pgstattuple.so -lib/postgresql/pgxml.so +%%XML%%lib/postgresql/pgxml.so lib/postgresql/postgres_fdw.so lib/postgresql/refint.so lib/postgresql/seg.so @@ -257,9 +257,9 @@ lib/postgresql/uuid-ossp.so %%DATADIR%%/extension/uuid-ossp--1.1.sql %%DATADIR%%/extension/uuid-ossp--unpackaged--1.0.sql %%DATADIR%%/extension/uuid-ossp.control -%%DATADIR%%/extension/xml2--1.0--1.1.sql -%%DATADIR%%/extension/xml2--1.1.sql -%%DATADIR%%/extension/xml2--unpackaged--1.0.sql -%%DATADIR%%/extension/xml2.control +%%XML%%%%DATADIR%%/extension/xml2--1.0--1.1.sql +%%XML%%%%DATADIR%%/extension/xml2--1.1.sql +%%XML%%%%DATADIR%%/extension/xml2--unpackaged--1.0.sql +%%XML%%%%DATADIR%%/extension/xml2.control %%DATADIR%%/tsearch_data/unaccent.rules %%DATADIR%%/tsearch_data/xsyn_sample.rules