dev-php/xdebug: add 3.5.3

Fix the test deps, which would proceed with php[cgi] enabled for the
wrong slot (i.e. not the one we're testing), and disable the remaining
failing tests that I encountered.

Closes: https://bugs.gentoo.org/978067
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2026-10-27 14:10:47 -04:00
parent c9a22644ee
commit 6b5017ec41
2 changed files with 70 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST xdebug-3.2.1.tar.gz 450198 BLAKE2B 046120555bc6ff5b15380618c8126387eec213036299dfaefd2d8bca77c625c064dec938f56d665aae479c7fd76a9fdcc0304695f8ec44534d0a5265d9073159 SHA512 c7246e8cf7dc22b9c21ec1586fc5393817b1b5eefff9339652846340a6cc57fa72adb6c9229a87ac9849e8f5762aafbf140d99d0978950e93562e228d9da5a6b
DIST xdebug-3.5.0.tar.gz 521365 BLAKE2B d22996dc20dbffc636b927dd12f2e54c157b31f87d4967c3bcd082d049db1f23970af73a37775ced11772fcc5bcd74f0f446bcb8694497971ff6c4aed55288e0 SHA512 a7264404d66baff7d830c0aecb0d2d699e1fdf204850c63944292837b339176f4bdd3958d18acdb949366d029294fcf802a7619297a87b4171179ba5845301c7
DIST xdebug-3.5.3.tar.gz 527499 BLAKE2B ed92b762264abee8d4c73371d155557bc9486324e6b6efe2c3c1f93539064f71b207fa8afad07277bf6e800d3133bb9f5db34c2ccc6c0072ecb851869c8c9222 SHA512 06af6d20cd3ffd10e3d43b3e4493b74aa9577766a18e4ab821ed0a0e022cf10ca7b30592e76b0c59862052212a3cb3e7700c4d4bc4669a68eee34984ba489abc
+69
View File
@@ -0,0 +1,69 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PHP_EXT_NAME="xdebug"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"
PHP_EXT_INIFILE="3.0-xdebug.ini"
USE_PHP="php8-2 php8-3 php8-4 php8-5"
MY_PV="${PV/_/}"
MY_PV="${MY_PV/rc/RC}"
inherit php-ext-source-r3
DESCRIPTION="A PHP debugging and profiling extension"
HOMEPAGE="https://xdebug.org/"
# Using tarball from GitHub for tests
SRC_URI="https://github.com/xdebug/xdebug/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="Xdebug"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc64 ~riscv ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="${DEPEND}"
BDEPEND="test? (
php_targets_php8-2? ( dev-lang/php:8.2[cgi,phpdbg] )
php_targets_php8-3? ( dev-lang/php:8.3[cgi,phpdbg] )
php_targets_php8-4? ( dev-lang/php:8.4[cgi,phpdbg] )
php_targets_php8-5? ( dev-lang/php:8.5[cgi,phpdbg] )
)"
DOCS=( README.rst CREDITS )
PHP_EXT_ECONF_ARGS=()
src_prepare(){
# stream_socket_client(): unable to connect...
rm "${S}"/tests/debugger/bug02424-0[1234].phpt || die
# Test output looks OK to me? Of course it's the line
# with the ten-page long array that doesn't match.
rm "${S}"/tests/tracing/bug01875-002.phpt || die
php-ext-source-r3_src_prepare
}
src_test() {
local slot
for slot in $(php_get_slots); do
php_init_slot_env "${slot}"
TEST_PHP_EXECUTABLE="${PHPCLI}" \
TEST_PHP_CGI_EXECUTABLE="${PHPCGI}" \
TEST_PHPDBG_EXECUTABLE="${PHPCLI}dbg" \
TEST_PHP_ARGS="-n -d session.save_path=${T} -d zend_extension=${PHP_EXT_S}/modules/xdebug.so" \
"${PHPCLI}" run-xdebug-tests.php -q -x -j4 --show-diff || die
done
}
pkg_postinst() {
ewarn "We have set xdebug.mode to off, as xdebug can be"
ewarn "installed as a dependency, and not all users will want xdebug to be"
ewarn "enabled by default. If you want to enable it, you should edit the"
ewarn "ini file and set xdebug.mode to one or more modes e.g. develop,debug,trace"
}