From nobody Mon Dec 11 13:46:12 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Spjh474MXz53cmk; Mon, 11 Dec 2023 13:46:12 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Spjh46R0vz3VBK; Mon, 11 Dec 2023 13:46:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702302372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N8Y+07YHqhxraNpBFN2SgtigBu4IA5KNqkaB0G1nt1E=; b=V8lpjaiag5WLfdcV/r87Q4E1h85OnaQeDmAxiM92X7Tqge4hoWzCVwCiPVXCIA5cqdf9qZ fE8l9VSsgiLtjm+ezPnC6Ix2wdO3Pd5ENxyV0TibZG68PgDCZQy+KhdGM5+pLomcvlP7bh Y5Vi7M87J29JM/8ZNvZgzt0OTgE/2dY0v4LyWvqUpxrvR3k26d4LpcT78gvhfbj6bMEyJI iiZ8UFovytnkKWzwyKoGYzzbklc569LHC/E0xxSwwo/78rSUnngylUxE1TZwMugT0VgkWH jUd+4N8hDHNq1z6t0IWJ5ydJ7D+Va7B7BHuI52Qul7bWJjqCuPtNrU0UqfeIZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702302372; a=rsa-sha256; cv=none; b=cdKdT89zdWlITshrBEJjvt6g9+hdipGpmmNajLiHKLA4paV2tWtZJHMse0GB0jGFHn4MYI Ls3+c9P8zerZI2uwMtPaZD7dQmJ498vuKBDati1cC4VBTW6XiNh0y3JqT+rBK9QNPf+3rl qD0vTRaxMouAmP79I4alG8RSQslDnxHYxKHNVwm+gUlyiookiyiQf8XSpAgwSa3ZsyVk+q f5+dLrMR1Q7I69hLYUuucBP57ZalBEL0CBQc3Ffobd+pnFYvpp1I7rS6eLQ0kH5iPCZ9mj OISXVEeNbk+E2FPgWduXmGvI2j4KhbUm4hNdVkCZsmfNzZWL75k9ysPFkQqj5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702302372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N8Y+07YHqhxraNpBFN2SgtigBu4IA5KNqkaB0G1nt1E=; b=Q+CYroV3+L6gLqB1dkUJdqo3r9UgERHO8uf9+HBgeu7aGq8skZjZDcvJwYm8/e11QYMZ2W 3Q68Wbij4+ovwAe23jgK58Cz+Jt8oj/QhKQB0YGRNnhFbLE7Nd0BWJ6sgVUr3Yq/afYce0 WY2Hyv+3ILIsqoEbCJEcX2Zt+RAA8rHvQYTmROZhyKww0M3A90v2uiFHIwhAOlMZqxYcCB mSEu9yvrVk2nBk49Q3wEC3ZPj+2wK/npdgK32GewFtlnA8FQyXpJFIPjMjZmhZNvKeRGn2 5fedeMKoZs/ksAL9C4d5DAcqg4vhfyAmMuHvwkO+DqDyntFCNUAV1k3bsqoxDQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Spjh45TNjzYmQ; Mon, 11 Dec 2023 13:46:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BBDkC8i021168; Mon, 11 Dec 2023 13:46:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BBDkClc021165; Mon, 11 Dec 2023 13:46:12 GMT (envelope-from git) Date: Mon, 11 Dec 2023 13:46:12 GMT Message-Id: <202312111346.3BBDkClc021165@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Joseph Mingrone Subject: git: 134cdd548500 - main - textproc/redland: Do not depend on Berkeley DB by default List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 134cdd54850031bfdc8202d27b1a69b2839d94bb Auto-Submitted: auto-generated The branch main has been updated by jrm: URL: https://cgit.FreeBSD.org/ports/commit/?id=134cdd54850031bfdc8202d27b1a69b2839d94bb commit 134cdd54850031bfdc8202d27b1a69b2839d94bb Author: Joseph Mingrone AuthorDate: 2023-11-25 14:06:37 +0000 Commit: Joseph Mingrone CommitDate: 2023-12-11 13:41:14 +0000 textproc/redland: Do not depend on Berkeley DB by default Due to licensing issues, Redland only supports BDB up to version 5.3, a version that was marked for removal from the ports tree on 2022-06-30. A few different databases are supported for persistent storage, so add MYSQL, PGSQL, and SQLITE as alternatives, and switch to SQLITE by default. While here, also: - Patch to fix a build failure when MYSQL storage is chosen - Pet portclippy/portfmt - Hook in tests (1 of 17 tests fail, but upstream's bug tracker is broken) Approved by: tcberner (kde) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42769 --- textproc/redland/Makefile | 67 +++++++--------------- .../redland/files/patch-src_rdf__storage__mysql.c | 11 ++++ textproc/redland/pkg-plist | 6 +- 3 files changed, 34 insertions(+), 50 deletions(-) diff --git a/textproc/redland/Makefile b/textproc/redland/Makefile index a4d1ee191970..4a9ed73772dd 100644 --- a/textproc/redland/Makefile +++ b/textproc/redland/Makefile @@ -1,6 +1,6 @@ PORTNAME= redland PORTVERSION= 1.0.17 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= textproc MASTER_SITES= http://download.librdf.org/source/ @@ -17,62 +17,37 @@ LIB_DEPENDS= libltdl.so:devel/libltdl \ libraptor2.so:textproc/raptor2 \ librasqal.so:textproc/rasqal -USE_PERL5= build USES= gmake libtool pathfix perl5 pkgconfig shebangfix +USE_LDCONFIG= yes +USE_PERL5= build SHEBANG_FILES= scripts/touch-mtime.pl GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-threestore=no -USE_LDCONFIG= yes -OPTIONS_DEFINE= BDB THREADS -OPTIONS_DEFAULT= BDB +INSTALL_TARGET= install-strip +TEST_TARGET= check + +OPTIONS_DEFINE= THREADS +OPTIONS_DEFAULT= SQLITE -BDB_USES= bdb -BDB_CONFIGURE_OFF= --with-bdb=no +OPTIONS_GROUP= STORAGE +OPTIONS_GROUP_STORAGE= BDB MYSQL PGSQL SQLITE -THREADS_CONFIGURE_ENABLE= threads +OPTIONS_SUB= YES -# MYSQL "Use MySQL instead of BDB" off \ -# PGSQL "Use PgSQL instead of BDB" off \ -# SQLITE "Use SQLite instead of BDB" off \ -# VIRTUOSO "Use Virtoso instead of BDB" off +BDB_USES= bdb:5 +BDB_CONFIGURE_WITH= bdb -#.if defined(WITH_MYSQL) -#USE_MYSQL= yes -#CONFIGURE_ARGS+=--with-mysql=yes -#CPPFLAGS+= -I${LOCALBASE}/include/mysql -DHAVE_MYSQL_H -#LIBS+= -L${LOCALBASE}/lib/mysql -#PLIST_SUB+= MYSQL="" -#.else -CONFIGURE_ARGS+=--with-mysql=no -PLIST_SUB+= MYSQL="@comment " -#.endif +MYSQL_LIB_DEPENDS= libunwind.so:devel/libunwind +MYSQL_USES= mysql ssl +MYSQL_CONFIGURE_WITH= mysql -#.if defined(WITH_PGSQL) -#USES+= pgsql -#CONFIGURE_ARGS+=--with-postgresql=yes -#PLIST_SUB+= PGSQL="" -#.else -CONFIGURE_ARGS+=--with-postgresql=no -PLIST_SUB+= PGSQL="@comment " -#.endif +PGSQL_USES= pgsql +PGSQL_CONFIGURE_WITH= postgresql -#.if defined(WITH_SQLITE) -#USES+= sqlite:3 -#CONFIGURE_ARGS+=--with-sqlite=3 -#PLIST_SUB+= SQLITE="" -#.else -CONFIGURE_ARGS+=--with-sqlite=no -PLIST_SUB+= SQLITE="@comment " -#.endif +SQLITE_USES= sqlite:3 +SQLITE_CONFIGURE_WITH= sqlite -#.if defined(WITH_VIRTUOSO) -#CONFIGURE_ARGS+=--with-virtuoso=yes -#LIB_DEPENDS+= iodbc.3:databases/libiodbc -#PLIST_SUB+= VIRTUOSO="" -#.else -CONFIGURE_ARGS+=--with-virtuoso=no -PLIST_SUB+= VIRTUOSO="@comment " -#.endif +THREADS_CONFIGURE_WITH= threads .include diff --git a/textproc/redland/files/patch-src_rdf__storage__mysql.c b/textproc/redland/files/patch-src_rdf__storage__mysql.c new file mode 100644 index 000000000000..e338c891b4b3 --- /dev/null +++ b/textproc/redland/files/patch-src_rdf__storage__mysql.c @@ -0,0 +1,11 @@ +--- src/rdf_storage_mysql.c.orig 2023-11-25 15:00:04 UTC ++++ src/rdf_storage_mysql.c +@@ -447,7 +447,7 @@ librdf_storage_mysql_get_handle(librdf_storage* storag + + #ifdef HAVE_MYSQL_OPT_RECONNECT + if(1) { +- my_bool value=(context->reconnect) ? 1 : 0; ++ bool value=(context->reconnect) ? 1 : 0; + mysql_options(connection->handle, MYSQL_OPT_RECONNECT, &value); + } + #endif diff --git a/textproc/redland/pkg-plist b/textproc/redland/pkg-plist index 285a2834bc27..587fb3a0f663 100644 --- a/textproc/redland/pkg-plist +++ b/textproc/redland/pkg-plist @@ -32,8 +32,6 @@ lib/librdf.so.0.0.0 %%PGSQL%%lib/redland/librdf_storage_postgresql.so %%SQLITE%%lib/redland/librdf_storage_sqlite.a %%SQLITE%%lib/redland/librdf_storage_sqlite.so -%%VIRTUOSO%%lib/redland/librdf_storage_virtuoso.a -%%VIRTUOSO%%lib/redland/librdf_storage_virtuoso.so libdata/pkgconfig/redland.pc man/man1/rdfproc.1.gz man/man1/redland-config.1.gz @@ -91,6 +89,6 @@ share/gtk-doc/html/redland/style.css share/gtk-doc/html/redland/tutorial-introduction.html share/gtk-doc/html/redland/tutorial.html share/gtk-doc/html/redland/up.png -%%MYSQL%%share/redland/mysql-v1.ttl -%%MYSQL%%share/redland/mysql-v2.ttl +%%MYSQL%%%%DATADIR%%/mysql-v1.ttl +%%MYSQL%%%%DATADIR%%/mysql-v2.ttl %%DATADIR%%/Redland.i