Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2024 14:14:03 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2a3fe68c4782 - main - devel/pecl-xdebug: Unbreak for php84
Message-ID:  <202408031414.473EE3Ib086013@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2a3fe68c4782381ac56d225c866a890deb2ad768

commit 2a3fe68c4782381ac56d225c866a890deb2ad768
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-08-03 13:59:27 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-08-03 14:13:56 +0000

    devel/pecl-xdebug: Unbreak for php84
    
    Approved by:    portmgr (blanket)
---
 devel/pecl-xdebug/Makefile                          |  1 -
 devel/pecl-xdebug/files/patch-src_lib_usefulstuff.c | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/devel/pecl-xdebug/Makefile b/devel/pecl-xdebug/Makefile
index 034b495e2667..881530000e20 100644
--- a/devel/pecl-xdebug/Makefile
+++ b/devel/pecl-xdebug/Makefile
@@ -10,7 +10,6 @@ LICENSE=	PHP30
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		php:pecl,zend tar:tgz
-IGNORE_WITH_PHP=	84
 
 CONFIGURE_ARGS=	--enable-xdebug
 
diff --git a/devel/pecl-xdebug/files/patch-src_lib_usefulstuff.c b/devel/pecl-xdebug/files/patch-src_lib_usefulstuff.c
new file mode 100644
index 000000000000..41517a51c857
--- /dev/null
+++ b/devel/pecl-xdebug/files/patch-src_lib_usefulstuff.c
@@ -0,0 +1,14 @@
+--- src/lib/usefulstuff.c.orig	2024-08-03 13:55:22 UTC
++++ src/lib/usefulstuff.c
+@@ -41,7 +41,11 @@
+ #include "usefulstuff.h"
+ #include "log.h"
+
++#if PHP_VERSION_ID <= 80300
+ #include "ext/standard/php_lcg.h"
++#else
++#include "ext/random/php_random.h"
++#endif
+ #include "ext/standard/flock_compat.h"
+ #include "main/php_ini.h"
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408031414.473EE3Ib086013>