🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #137

[gentoo-dev] [PATCH] php-ext-pecl-r3.eclass: DEPRECATE src_test phase function

#137
From: Jaco Kroon
Date: Sat, 07 Nov 2026 07:30
47 lines
2590 bytes
This is an identical duplication of the src_test phase function from the
inherited php-source-ext-r3, as such not needed.

pecl-brotli and pecl-mongodb invokes this directly so rather than
removing it completely (also for the sake of out-of-tree users) mark
this as DEPRECATED for now, invoke the php-source-ext-r3 version instead
(which also correctly sets local slot no leaking variables into global
scope).

Signed-off-by: Jaco Kroon <jkroon@gentoo.org>
---
 eclass/php-ext-pecl-r3.eclass | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/eclass/php-ext-pecl-r3.eclass b/eclass/php-ext-pecl-r3.eclass
index 11ae34429fbb..8b5b4b10206a 100644
--- a/eclass/php-ext-pecl-r3.eclass
+++ b/eclass/php-ext-pecl-r3.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: php-ext-pecl-r3.eclass
@@ -83,17 +83,15 @@ php-ext-pecl-r3_src_install() {
 
 
 # @FUNCTION: php-ext-pecl-r3_src_test
+# @DEPRECATED: php-ext-source-r3_src_test directly.
 # @DESCRIPTION:
 # Run tests delivered with the PECL package. Phpize will have generated
 # a run-tests.php file to be executed by `make test`. We only need to
 # force the test suite to run in non-interactive mode.
 php-ext-pecl-r3_src_test() {
-	for slot in $(php_get_slots); do
-		php_init_slot_env "${slot}"
-		NO_INTERACTION="yes" emake test
-	done
+	php-ext-source-r3_src_test
 }
 
 fi
 
-EXPORT_FUNCTIONS src_install src_test
+EXPORT_FUNCTIONS src_install
-- 
2.55.0
Technical Details
Message-ID: <NWJ29-alMi-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Jaco Kroon <jkroon@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH] php-ext-pecl-r3.eclass: DEPRECATE src_test phase function
Date: Sat, 07 Nov 2026 08:30:01 +0100
Message-ID: <NWJ29-alMi-1@gated-at.bofh.it>
X-Mailer: git-send-email 2.55.0
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Approved: robomod@news.nic.it
Lines: 47
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Jaco Kroon <jkroon@gentoo.org>
X-Original-Date: Sat,  7 Nov 2026 09:25:37 +0200
X-Original-Message-ID: <20261107072544.20992-1-jkroon@gentoo.org>