From nobody Mon Jun 8 19:31:53 2026 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 4gZ2Gy0SSSz6gchV for ; Mon, 08 Jun 2026 19:31:54 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZ2Gx4wNzz3gFZ for ; Mon, 08 Jun 2026 19:31:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780947113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m7IdiX8HnueOMpYjVz9QtINei2C+6l9UIz9VaIfkP7M=; b=ab9H4++Ncb7LDFRibLXvN1S/GQBwm7XfYA1WdTz0B1BdF1P75BhcJJT75Zri1cUx3Pktz3 o+zU5KAwl4PPghxyUKGZ8pTabNS8CLb9MiJU6pLUEJ4LZXSyhp/IW/h4qQVxBomeRqOgB0 pv5ZQykVVZRfvbW7ZzIr2h1GR5nm1Q57MNlo9wn2tPXr3U8eQCjDLuwhBpuEF3+aF8mrkv NnyXak5nhpjUk0WBcm5RcXYxg91d6Y/9MAkaFTSs+asn+A4P4jruqyT3XaughFoPBkjorT tbSew84Gup2nZ4oJ3ALbwLDsxKkzRvX+gOMzWjxGI7pdM7ELH6WgUSqMnxw2MA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780947113; a=rsa-sha256; cv=none; b=CwaJQv2WOVUvWs0wjP0txtQDiZQhMEcoGqr0VwRxrI+R1DueEKjr/tIBjYvuH4CzRXSrhM xDIALu/E741fHtUq/O7BVDhYHAreuzCP+R4kcqH2CF3PA4LD1YVoM4cSzdJCiDLYjPVt1b lsegGtCoXd66OtqouPvKVb1fYUDuEYbszRSFDy8c7dHgoi/T0trfnnKzTjv86Go7TCkafc 513D5auIx9+UYMrnAClQIGY2qkA0/hXVczulLN8gYmYrfntS+9NVQ0cIxxU71L8BFotEG2 P7fIsFszb+nbM9B0FZrux0TxnhamUr4vgoCZA8IMHrnR360MsZbddegujGySzA== 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=1780947113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m7IdiX8HnueOMpYjVz9QtINei2C+6l9UIz9VaIfkP7M=; b=bvKC+qYOXvbM8hL7/XzJGp29blI5EEZAcPxbZiRNsNwM2EyJJjwe63rS1rPC+ivpvh8RTR XYYelSYvaF/O2XRzqVAJm6ZaR1bbyymarG6eN71IE4pHNortRb1snvBFxPypR8lUsCnB9s xmv4W/p/3UUz0MkyRKxXBrU4c0XW3w15NlBYF0FjKBIf1+uplRO1QMk0+1jcveMiwrmh/3 Qh0THBbnFX+E8oRwywVtodlwdsCOTCPO7NGwshjcPNz/oLbAEW83wGjeqMGDU7YDEXEYfK hYcsoJVMUFyh6X5gIW9+gHtOSOMvT7F2hIvhVeOl63Gf3px2CD+WeXYc28pvsg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gZ2Gx4RbRz11wV for ; Mon, 08 Jun 2026 19:31:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e37f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 08 Jun 2026 19:31:53 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Paavo-Einari Kaipila From: Vladimir Druzenko Subject: git: 9f79d999cc78 - main - archivers/php-brotli: Update 0.18.2 => 0.19.0 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f79d999cc78f4ad5eba8c5cd534a3c85ea0ecf2 Auto-Submitted: auto-generated Date: Mon, 08 Jun 2026 19:31:53 +0000 Message-Id: <6a2718a9.3e37f.196a0fc8@gitrepo.freebsd.org> The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=9f79d999cc78f4ad5eba8c5cd534a3c85ea0ecf2 commit 9f79d999cc78f4ad5eba8c5cd534a3c85ea0ecf2 Author: Paavo-Einari Kaipila AuthorDate: 2026-06-08 19:27:48 +0000 Commit: Vladimir Druzenko CommitDate: 2026-06-08 19:31:47 +0000 archivers/php-brotli: Update 0.18.2 => 0.19.0 Changelog: https://github.com/kjdev/php-ext-brotli/releases/tag/0.19.0 Commit log: https://github.com/kjdev/php-ext-brotli/compare/0.18.2...0.19.0 Enable APCu cache compression and patch config.m4 to always honor APCU setting. PR: 295867 Sponsored by: UNIS Labs Co-authored-by: Vladimir Druzenko --- archivers/php-brotli/Makefile | 11 +++++++-- archivers/php-brotli/distinfo | 6 ++--- archivers/php-brotli/files/patch-config.m4 | 37 ++++++++++++++++++++++++++++++ archivers/php-brotli/pkg-descr | 14 ++++++----- 4 files changed, 57 insertions(+), 11 deletions(-) diff --git a/archivers/php-brotli/Makefile b/archivers/php-brotli/Makefile index bcd834ae8a6d..489eac6b0351 100644 --- a/archivers/php-brotli/Makefile +++ b/archivers/php-brotli/Makefile @@ -1,6 +1,5 @@ PORTNAME= brotli -DISTVERSION= 0.18.2 -PORTREVISION= 1 +DISTVERSION= 0.19.0 CATEGORIES= archivers PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} @@ -22,4 +21,12 @@ PHP_MODNAME= ${PORTNAME} CONFIGURE_ARGS= --with-libbrotli +OPTIONS_DEFINE= APCU +OPTIONS_DEFAULT= APCU + +APCU_DESC= APCu cache compression support for objects + +APCU_BUILD_DEPENDS= ${LOCALBASE}/include/php/ext/apcu/apc_serializer.h:devel/pecl-APCu@${PHP_FLAVOR} +APCU_CONFIGURE_ENABLE= apcu + .include diff --git a/archivers/php-brotli/distinfo b/archivers/php-brotli/distinfo index 1118573f101a..374defaf4d3b 100644 --- a/archivers/php-brotli/distinfo +++ b/archivers/php-brotli/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1755939450 -SHA256 (kjdev-php-ext-brotli-0.18.2_GH0.tar.gz) = d79ff26c24859485166a805e4340cdebdaad6246d93e9c5eeb90ae681bc801a6 -SIZE (kjdev-php-ext-brotli-0.18.2_GH0.tar.gz) = 34832 +TIMESTAMP = 1780640043 +SHA256 (kjdev-php-ext-brotli-0.19.0_GH0.tar.gz) = d5a75c4a022459fc413c43d1116335bef9b580e2fc2ac4d12930b7c5462d05b6 +SIZE (kjdev-php-ext-brotli-0.19.0_GH0.tar.gz) = 35738 diff --git a/archivers/php-brotli/files/patch-config.m4 b/archivers/php-brotli/files/patch-config.m4 new file mode 100644 index 000000000000..9af10a1bc07b --- /dev/null +++ b/archivers/php-brotli/files/patch-config.m4 @@ -0,0 +1,37 @@ +--- config.m4.orig 2026-06-05 04:27:29 UTC ++++ config.m4 +@@ -24,6 +24,9 @@ PHP_ARG_WITH(libbrotli, whether to use system brotli l + PHP_ARG_WITH(libbrotli, whether to use system brotli library, + [ --with-libbrotli Use libbrotli], no, no) + ++PHP_ARG_ENABLE(apcu, whether to enable APCu support, ++[ --enable-apcu Enable APCu support], auto, no) ++ + if test "$PHP_BROTLI" != "no"; then + + BROTLI_MIN_VERSION=0.6 +@@ -132,12 +135,17 @@ if test "$PHP_BROTLI" != "no"; then + PHP_ADD_BUILD_DIR($ext_builddir/brotli/c/enc) + fi + +- AC_MSG_CHECKING([for APCu includes]) +- if test -f "$phpincludedir/ext/apcu/apc_serializer.h"; then +- apc_inc_path="$phpincludedir" +- AC_MSG_RESULT([APCu in $apc_inc_path]) +- AC_DEFINE(HAVE_APCU_SUPPORT, 1, [Whether to enable APCu support]) +- else +- AC_MSG_RESULT([not found]) ++ if test "$PHP_APCU" != "no"; then ++ AC_MSG_CHECKING([for APCu includes]) ++ if test -f "$phpincludedir/ext/apcu/apc_serializer.h"; then ++ apc_inc_path="$phpincludedir" ++ AC_MSG_RESULT([APCu in $apc_inc_path]) ++ AC_DEFINE(HAVE_APCU_SUPPORT, 1, [Whether to enable APCu support]) ++ else ++ if test "$PHP_APCU" != "auto"; then ++ AC_MSG_ERROR([apc_serializer.h header not found]) ++ fi ++ AC_MSG_RESULT([not found]) ++ fi + fi + fi diff --git a/archivers/php-brotli/pkg-descr b/archivers/php-brotli/pkg-descr index 4d3da2e42028..59289f129dd5 100644 --- a/archivers/php-brotli/pkg-descr +++ b/archivers/php-brotli/pkg-descr @@ -1,7 +1,9 @@ -Brotli is a generic-purpose lossless compression algorithm that compresses -data using a combination of a modern variant of the LZ77 algorithm, Huffman -coding and 2nd order context modeling, with a compression ratio comparable -to the best currently available general-purpose compression methods. It is -similar in speed with deflate but offers more dense compression. +This is the PHP extension for Brotli, a generic-purpose lossless compression +algorithm that compresses data using a combination of a modern variant of the +LZ77 algorithm, Huffman coding and 2nd order context modeling, with a +compression ratio comparable to the best currently available general-purpose +compression methods. It is similar in speed with deflate but offers more dense +compression. -This is the Brotli Extension for PHP +This extension can also transparently compress objects stored in +APCu cache. Just set apc.serializer=brotli in your php.ini.