From ec3e80cc5a3bd1fe8757de2b345397ee3c66668f Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Tue, 30 Sep 2025 18:43:00 +0800 Subject: 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(+) create mode 100644 databases/php-tarantool/files/patch-php85 (limited to 'databases/php-tarantool/files/patch-php85') 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) { -- cgit v1.2.3