🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.gentoo.dev
1 messages
1 total messages Started by Jaco Kroon Sat, 07 Nov 2026 07:30
[gentoo-dev] [PATCH] php-ext-pecl-r3.eclass: DEPRECATE src_test phase function
#137
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads