git: ec3e80cc5a3b - main - databases/php-tarantool: Fix build with PHP 8.5 Beta 2+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Sep 2025 10:57:55 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ec3e80cc5a3bd1fe8757de2b345397ee3c66668f
commit ec3e80cc5a3bd1fe8757de2b345397ee3c66668f
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-09-30 10:43:00 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-09-30 10:50:51 +0000
databases/php-tarantool: Fix build with PHP 8.5 Beta 2+
PHP 8.5 Beta 2 changed the #define HASH_KEY_NON_EXISTENT to an enum in [1]. It
breaks the #ifndef check in php-tarantool. Since HASH_KEY_NON_EXISTENT exists in
all supported PHP versions, it is safe to simply remove the check.
Reference: https://github.com/php/php-src/commit/bf64dfcd99f2f14753d8301dd3d4a85cdd53afc7 [1]
https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p118fb2971704_s4ab64e34911/logs/php85-tarantool-0.4.0.log
https://pkg-status.freebsd.org/beefy17/data/15stable-amd64-default/56c5cbbc8d99/logs/php85-tarantool-0.4.0.log
---
databases/php-tarantool/files/patch-php85 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/databases/php-tarantool/files/patch-php85 b/databases/php-tarantool/files/patch-php85
new file mode 100644
index 000000000000..83a3bf7131a9
--- /dev/null
+++ b/databases/php-tarantool/files/patch-php85
@@ -0,0 +1,13 @@
+--- src/tarantool_msgpack.c.orig 2024-07-04 16:18:34 UTC
++++ src/tarantool_msgpack.c
+@@ -5,10 +5,6 @@
+
+ #include "third_party/msgpuck.h"
+
+-#ifndef HASH_KEY_NON_EXISTENT
+-#define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT
+-#endif /* HASH_KEY_NON_EXISTENT */
+-
+ /* UTILITES */
+
+ int smart_string_ensure(smart_string *str, size_t len) {