From nobody Mon Jun 8 19:31:55 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 4gZ2H00nDbz6gcS2 for ; Mon, 08 Jun 2026 19:31:56 +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 4gZ2Gz6rMSz3gTL for ; Mon, 08 Jun 2026 19:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780947116; 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=ToW2Y4RD6TKl70cA+qK9JZAO9V7OOuaxnldcCCNrqM4=; b=WyEB9MOqnjQTFczYxv4BX7AF/HjOETrtMDtQ7fR6yrfef7/I7IaHOX5Bo0915fElsj68FL 3HRSxIdlyh25YZiP/rZgKO7vL2w77SvQXDt5gjHTvhatR7As6/BQls8wmsh8e2Vgkvw0/H BRmZZQxXUU1jbGNp5F4L7wN2plHGLgumKWKOn4RMuRUK/0ITbP4zQIldYvbvqOnKB2J02G clEw6JNbBp8OAj/16RaB74k6YQyg/nxDg5TiwFLMOIjGbCnsg9swIPSxSAoEo6hsvgIpRm NkFCc3i88avEH/dc+nGaZuaMCsQxclFA9d+ZMbkZunaSHCenyUDubW/m6KU5+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780947116; a=rsa-sha256; cv=none; b=n8tWlnzJfQMQCRUsCJjo1IuV6BniaDkFiVArXKyo1WAgVb+Ag9ICkS982Yhrotl5mMc1U9 XgxCdDu5iYsss+kLlq1yTp4pPmkKRPQVnIbDCZHrMyaBhLlyosDeMLYwZfh3TtrAn/XPpl V5eL3Ssr/M5UJzw9lBFezEEFkkzKBs8iDioRvNtKXuCRmgJwwOv6FdR2O8b7jG0NzilI4j kxNvnPo5l/qk1OIiYK1VUhBGK/MqxmTxErdUxedvqwdxWfKNn7GUyzeJ/mirZ8OcfThgpJ IEB7gXrxTDadt0eZ87tfoHQnTIMOUpX7Z807o0zaP0qfjRBP7UhpKyV8oDu5UA== 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=1780947116; 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=ToW2Y4RD6TKl70cA+qK9JZAO9V7OOuaxnldcCCNrqM4=; b=wUdo0Yq/gFyg2KC7X5Sn73jr+D/60c21FwjgKaeGVJFL5nE1LLcI2DxCRg91dd8P3obWIy sNgEmJihdBGMoqRHd78zFAJW+BEUD1iHnji3uwYJL6MJ7aFO95qHNlc6rr/I9PdvnknBjS QJuOh9B8O+a3BD4kV4mD9UMUsITfGuuumqteiKGK/qXX+/gLNyTWnnaGobbF/sYLYioiB/ JCw2UUiYvgg+MZq+s97YFl8VmKcKB6hllYxJU604H0XFC5hrcBVdEMVClBZbZVkTtNgln9 6v8MIHgQKwZPTSWgZjt261d8Gm2tDZTS5NGPdxNEbNSY6xHWjFITQxy7s/I1sA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gZ2Gz5y1Cz12N1 for ; Mon, 08 Jun 2026 19:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3fe84 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 08 Jun 2026 19:31:55 +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: 91b1d1c5359a - main - archivers/php-lz4: Patch config.m4 to always honor APCU setting 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: 91b1d1c5359af6cf62953344d24b4f5ac1ac411e Auto-Submitted: auto-generated Date: Mon, 08 Jun 2026 19:31:55 +0000 Message-Id: <6a2718ab.3fe84.33043321@gitrepo.freebsd.org> The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=91b1d1c5359af6cf62953344d24b4f5ac1ac411e commit 91b1d1c5359af6cf62953344d24b4f5ac1ac411e Author: Paavo-Einari Kaipila AuthorDate: 2026-06-08 19:30:33 +0000 Commit: Vladimir Druzenko CommitDate: 2026-06-08 19:31:48 +0000 archivers/php-lz4: Patch config.m4 to always honor APCU setting PR: 295867 Sponsored by: UNIS Labs Co-authored-by: Vladimir Druzenko --- archivers/php-lz4/Makefile | 2 ++ archivers/php-lz4/files/patch-config.m4 | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/archivers/php-lz4/Makefile b/archivers/php-lz4/Makefile index 4f2866ca2092..37e133c8a8cb 100644 --- a/archivers/php-lz4/Makefile +++ b/archivers/php-lz4/Makefile @@ -1,5 +1,6 @@ PORTNAME= lz4 DISTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= archivers PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} @@ -26,5 +27,6 @@ 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-lz4/files/patch-config.m4 b/archivers/php-lz4/files/patch-config.m4 new file mode 100644 index 000000000000..0eea252eb5c6 --- /dev/null +++ b/archivers/php-lz4/files/patch-config.m4 @@ -0,0 +1,38 @@ +--- config.m4.orig 2025-11-07 02:17:19 UTC ++++ config.m4 +@@ -27,6 +27,9 @@ PHP_ARG_WITH(lz4-includedir, for lz4 header, + PHP_ARG_WITH(lz4-includedir, for lz4 header, + [ --with-lz4-includedir=DIR lz4 header files], no, no) + ++PHP_ARG_ENABLE(apcu, whether to enable APCu support, ++[ --enable-apcu Enable APCu support], auto, no) ++ + if test "$PHP_LZ4" != "no"; then + + AC_MSG_CHECKING([searching for liblz4]) +@@ -65,13 +68,18 @@ if test "$PHP_LZ4" != "no"; then + PHP_ADD_INCLUDE([$ext_srcdir/lz4/lib]) + 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 +