php: drop some unneeded patches
PATCH 1/2 php: drop some unneeded patches
From: Chen Qi <[email protected]>
Drop 0003-php-remove-host-specific-info-from-header-file.patch. Instead we export PHP_UNAME = "Linux" to achieve the same effect.
Drop 0002-build-php.m4-don-t-unset-cache-variables.patch. The related ac_cv_lib_xxx and ac_cv_func_xxx settings in this recipe are also removed. This patch is not needed from the my build testing result.
Drop 0009-php-don-t-use-broken-wrapper-for-mkdir.patch. This patch says that the wrapper is broken, but does not say why. Without this patch, things still build.
--- ...d-php.m4-don-t-unset-cache-variables.patch | 45 ------------------- ...-host-specific-info-from-header-file.patch | 36 --------------- ...p-don-t-use-broken-wrapper-for-mkdir.patch | 30 ------------- meta-oe/recipes-devtools/php/php_8.2.26.bb | 9 ++-- 4 files changed, 3 insertions(+), 117 deletions(-) delete mode 100644 meta-oe/recipes-devtools/php/php/0002-build-php.m4-don-t-unset-cache-variables.patch delete mode 100644 meta-oe/recipes-devtools/php/php/0003-php-remove-host-specific-info-from-header-file.patch delete mode 100644 meta-oe/recipes-devtools/php/php/0009-php-don-t-use-broken-wrapper-for-mkdir.patch
meta-oe/recipes-devtools/php/php/0002-build-php.m4-don-t-unset-cache-variables.patch deleted +0 -45
@@ -1,45 +0,0 @@ -From 1af203e8e385d46ad3e33b1c253b1c564aa99034 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 13:01:55 -0500 -Subject: [PATCH 02/11] build/php.m4: don't unset cache variables - -Unsetting prevents cache variable from being passed to configure. - -Upstream-Status: Inappropriate [OE-specific] - -Signed-off-by: Anuj Mittal <[email protected]> - -update this patch to 7.4.4, acinclude.m4 move to build/php.m4 -Signed-off-by: Changqing Li <[email protected]> - -update patch to 8.0.12 -Signed-off-by: Claude Bing <[email protected]> ---- - build/php.m4 | 4 ---- - 1 file changed, 4 deletions(-) - -diff --git a/build/php.m4 b/build/php.m4 -index 9746ba28f3..93551d9ca7 100644 ---- a/build/php.m4 -+++ b/build/php.m4 -@@ -1568,8 +1568,6 @@ dnl PHP_CHECK_FUNC_LIB - dnl - AC_DEFUN([PHP_CHECK_FUNC_LIB],[ - ifelse($2,,:,[ -- unset ac_cv_lib_$2[]_$1 -- unset ac_cv_lib_$2[]___$1 - unset found - AC_CHECK_LIB($2, $1, [found=yes], [ - AC_CHECK_LIB($2, __$1, [found=yes], [found=no]) -@@ -1604,8 +1602,6 @@ dnl and as a fall back in the specified library. Defines HAVE_func and - dnl HAVE_library if found and adds the library to LIBS. - dnl - AC_DEFUN([PHP_CHECK_FUNC],[ -- unset ac_cv_func_$1 -- unset ac_cv_func___$1 - unset found - - AC_CHECK_FUNC($1, [found=yes],[ AC_CHECK_FUNC(__$1,[found=yes],[found=no]) ]) --- -2.25.1 -
meta-oe/recipes-devtools/php/php/0003-php-remove-host-specific-info-from-header-file.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From c81d0bd3491a6c6371d9df2f43956d109f984310 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 13:02:29 -0500 -Subject: [PATCH 03/11] php: remove host specific info from header file - -Based on: -https://sources.debian.org/data/main/p/php7.3/7.3.6-1/debian/patches/ - 0036-php-5.4.9-fixheader.patch - -Upstream-Status: Inappropriate [not author] - -Signed-off-by: Joe Slater <[email protected]> -Signed-off-by: Leon Anavi <[email protected]> - -update patch to 8.0.12 -Signed-off-by: Claude Bing <[email protected]> ---- - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index 1eafd62a44..90c94323aa 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1462,7 +1462,7 @@ PHP_REMOVE_USR_LIB(LDFLAGS) - EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" - EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" - --UNAME=`uname -a | xargs` -+UNAME=`uname | xargs` - PHP_UNAME=${PHP_UNAME:-$UNAME} - AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) - PHP_OS=`uname | xargs` --- -2.25.1 -
meta-oe/recipes-devtools/php/php/0009-php-don-t-use-broken-wrapper-for-mkdir.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 8707720c0aea405f0e06d67354f239232cc823cc Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 13:10:02 -0500 -Subject: [PATCH 09/11] php: don't use broken wrapper for mkdir - -Signed-off-by: Koen Kooi <[email protected]> - -update patch to version 7.4.4 -Signed-off-by: Changqing Li <[email protected]> - -update patch to version 8.0.12 -Signed-off-by: Claude Bing <[email protected]> -Upstream-Status: Pending ---- - build/Makefile.global | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/build/Makefile.global b/build/Makefile.global -index 6566d052de..eb39421f2a 100644 ---- a/build/Makefile.global -+++ b/build/Makefile.global -@@ -1,4 +1,4 @@ --mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p -+mkinstalldirs = mkdir -p - INSTALL = $(top_srcdir)/build/shtool install -c - INSTALL_DATA = $(INSTALL) -m 644 - --- -2.25.1 -
meta-oe/recipes-devtools/php/php_8.2.26.bb +3 -6
@@ -13,11 +13,8 @@ DEPENDS:class-native = "zlib-native libxml2-native" PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}" SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ - file://0002-build-php.m4-don-t-unset-cache-variables.patch \ - file://0003-php-remove-host-specific-info-from-header-file.patch \ file://0004-configure.ac-don-t-include-build-libtool.m4.patch \ file://0006-ext-phar-Makefile.frag-Fix-phar-packaging.patch \ - file://0009-php-don-t-use-broken-wrapper-for-mkdir.patch \ file://0010-iconv-fix-detection.patch \ file://0001-Change-whether-to-inline-XXH3_hashLong_withSecret-to.patch \ "
@@ -34,6 +31,7 @@ SRC_URI:append:class-target = " \ " S = "${WORKDIR}/php-${PV}" + SRC_URI[sha256sum] = "be57c347d451c905bcb4336832a864d9928dd0e20989b872705fea0ba6476c6b" CVE_STATUS_GROUPS += "CVE_STATUS_PHP"
@@ -52,6 +50,8 @@ inherit autotools pkgconfig python3native gettext multilib_header multilib_scrip SSTATE_SCAN_FILES += "phpize" SSTATE_SCAN_FILES += "build-defs.h" +export PHP_UNAME = "Linux" + PHP_LIBDIR = "${libdir}/php${PHP_MAJOR_VERSION}" # Common EXTRA_OECONF
@@ -71,7 +71,6 @@ EXTRA_OECONF = "--enable-mbstring \ --with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \ --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \ ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'ac_cv_c_bigendian_php=no', 'ac_cv_c_bigendian_php=yes', d)} \ - ${@bb.utils.contains('PACKAGECONFIG', 'pam', '', 'ac_cv_lib_pam_pam_start=no', d)} \ ${COMMON_EXTRA_OECONF} \ "
@@ -82,8 +81,6 @@ EXTRA_OECONF:append:riscv32 = " --with-pcre-jit=no" # see https://github.com/php/php-src/commit/70b02d75f2abe3a292d49c4a4e9e4f850c2fee68 EXTRA_OECONF:append:riscv32:libc-musl = " --disable-fiber-asm" -CACHED_CONFIGUREVARS += "ac_cv_func_dlopen=no ac_cv_lib_dl_dlopen=yes" - EXTRA_OECONF:class-native = " \ --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ --without-iconv \
Signature · 1 line
2.25.1
PATCH 2/2 php: upgrade from 8.2.26 to 8.4.4
From: Chen Qi <[email protected]>
0001-ext-opcache-config.m4-enable-opcache.patch is dropped. This patch could be dropped because the new version now uses AC_CACHE_CHECK, and we can just pass ac_cv_xxx to it instead of using a local patch.
0008-ext-imap-config.m4-fix-include-paths.patch is dropped. ext/imap has been removed from php in this new version. See
https://github.com/php/php-src/pull/13190. As a result of this removal, the corresponding PACKAGECONFIG is removed from this new version.
0001-Change-whether-to-inline-XXH3_hashLong_withSecret-to.patch is dropped. It has been merged in this new version.
---
...o-inline-XXH3_hashLong_withSecret-to.patch | 93 -------
...e.ac-don-t-include-build-libtool.m4.patch} | 6 +-
...ext-opcache-config.m4-enable-opcache.patch | 254 ------------------
...ar-Makefile.frag-Fix-phar-packaging.patch} | 9 +-
...n.patch => 0003-iconv-fix-detection.patch} | 19 +-
...04-pear-fix-Makefile.frag-for-Yocto.patch} | 10 +-
...i-cli-config.m4-fix-build-directory.patch} | 17 +-
...ext-imap-config.m4-fix-include-paths.patch | 45 ----
.../php/{php_8.2.26.bb => php_8.4.4.bb} | 24 +-
9 files changed, 45 insertions(+), 432 deletions(-)
delete mode 100644 meta-oe/recipes-devtools/php/php/0001-Change-whether-to-inline-XXH3_hashLong_withSecret-to.patch
rename meta-oe/recipes-devtools/php/php/{0004-configure.ac-don-t-include-build-libtool.m4.patch => 0001-configure.ac-don-t-include-build-libtool.m4.patch} (83%)
delete mode 100644 meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch
rename meta-oe/recipes-devtools/php/php/{0006-ext-phar-Makefile.frag-Fix-phar-packaging.patch => 0002-ext-phar-Makefile.frag-Fix-phar-packaging.patch} (91%)
rename meta-oe/recipes-devtools/php/php/{0010-iconv-fix-detection.patch => 0003-iconv-fix-detection.patch} (64%)
rename meta-oe/recipes-devtools/php/php/{0005-pear-fix-Makefile.frag-for-Yocto.patch => 0004-pear-fix-Makefile.frag-for-Yocto.patch} (86%)
rename meta-oe/recipes-devtools/php/php/{0007-sapi-cli-config.m4-fix-build-directory.patch => 0005-sapi-cli-config.m4-fix-build-directory.patch} (63%)
delete mode 100644 meta-oe/recipes-devtools/php/php/0008-ext-imap-config.m4-fix-include-paths.patch
rename meta-oe/recipes-devtools/php/{php_8.2.26.bb => php_8.4.4.bb} (93%)meta-oe/recipes-devtools/php/php/0001-Change-whether-to-inline-XXH3_hashLong_withSecret-to.patch deleted +0 -93
@@ -1,93 +0,0 @@ -From 1eeb59366d6140a799f6051fb9f57d988b81fd5b Mon Sep 17 00:00:00 2001 -From: easyaspi314 <[email protected]> -Date: Wed, 12 Apr 2023 13:33:07 +0800 -Subject: [PATCH] Change whether to inline XXH3_hashLong_withSecret to a config - option - -Change whether to inline XXH3_hashLong_withSecret to a config option to fix -GCC 12 -Og. - -Upstream-Status: Submitted [https://github.com/php/php-src/pull/11062] - -Signed-off-by: Mingli Yu <[email protected]> ---- - ext/hash/xxhash/xxhash.h | 35 +++++++++++++++++++++++++++++++++-- - 1 file changed, 33 insertions(+), 2 deletions(-) - -diff --git a/ext/hash/xxhash/xxhash.h b/ext/hash/xxhash/xxhash.h -index b5bd2864..8e816c05 100644 ---- a/ext/hash/xxhash/xxhash.h -+++ b/ext/hash/xxhash/xxhash.h -@@ -1375,6 +1375,23 @@ XXH3_128bits_reset_withSecretandSeed(XXH3_state_t* statePtr, - */ - # define XXH_NO_INLINE_HINTS 0 - -+/*! -+ * @def XXH3_INLINE_SECRET -+ * @brief Determines whether to inline the XXH3 withSecret code. -+ * -+ * When the secret size is known, the compiler can improve the performance -+ * of XXH3_64bits_withSecret() and XXH3_128bits_withSecret(). -+ * -+ * However, if the secret size is not known, it doesn't have any benefit. This -+ * happens when xxHash is compiled into a global symbol. Therefore, if -+ * @ref XXH_INLINE_ALL is *not* defined, this will be defined to 0. -+ * -+ * Additionally, this defaults to 0 on GCC 12+, which has an issue with function pointers -+ * that are *sometimes* force inline on -Og, and it is impossible to automatically -+ * detect this optimization level. -+ */ -+# define XXH3_INLINE_SECRET 0 -+ - /*! - * @def XXH32_ENDJMP - * @brief Whether to use a jump for `XXH32_finalize`. -@@ -1439,6 +1456,15 @@ XXH3_128bits_reset_withSecretandSeed(XXH3_state_t* statePtr, - # endif - #endif - -+#ifndef XXH3_INLINE_SECRET -+# if (defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 12) \ -+ || !defined(XXH_INLINE_ALL) -+# define XXH3_INLINE_SECRET 0 -+# else -+# define XXH3_INLINE_SECRET 1 -+# endif -+#endif -+ - #ifndef XXH32_ENDJMP - /* generally preferable for performance */ - # define XXH32_ENDJMP 0 -@@ -1515,6 +1541,11 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size) - # define XXH_NO_INLINE static - #endif - -+#if XXH3_INLINE_SECRET -+# define XXH3_WITH_SECRET_INLINE XXH_FORCE_INLINE -+#else -+# define XXH3_WITH_SECRET_INLINE XXH_NO_INLINE -+#endif - - - /* ************************************* -@@ -4465,7 +4496,7 @@ XXH3_hashLong_64b_internal(const void* XXH_RESTRICT input, size_t len, - * so that the compiler can properly optimize the vectorized loop. - * This makes a big performance difference for "medium" keys (<1 KB) when using AVX instruction set. - */ --XXH_FORCE_INLINE XXH64_hash_t -+XXH3_WITH_SECRET_INLINE XXH64_hash_t - XXH3_hashLong_64b_withSecret(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, const xxh_u8* XXH_RESTRICT secret, size_t secretLen) - { -@@ -5263,7 +5294,7 @@ XXH3_hashLong_128b_default(const void* XXH_RESTRICT input, size_t len, - * It's important for performance to pass @secretLen (when it's static) - * to the compiler, so that it can properly optimize the vectorized loop. - */ --XXH_FORCE_INLINE XXH128_hash_t -+XXH3_WITH_SECRET_INLINE XXH128_hash_t - XXH3_hashLong_128b_withSecret(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, - const void* XXH_RESTRICT secret, size_t secretLen) --- -2.25.1 -
meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch renamed from meta-oe/recipes-devtools/php/php/0004-configure.ac-don-t-include-build-libtool.m4.patch +3 -3
@@ -1,7 +1,7 @@ -From 41ef1121682c245b10df7de4b78c45baf9114c04 Mon Sep 17 00:00:00 2001 +From 6da78888b934dc10720a6e0e520536077cc2aac2 Mon Sep 17 00:00:00 2001 From: Claude Bing <[email protected]> Date: Tue, 9 Nov 2021 13:03:46 -0500 -Subject: [PATCH 04/11] configure.ac: don't include build/libtool.m4 +Subject: [PATCH 1/5] configure.ac: don't include build/libtool.m4 we delete build/libtool.m4 before do_configure, we will use libtool.m4 under ACLOCALDIR
@@ -17,7 +17,7 @@ Signed-off-by: Claude Bing <[email protected]> 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 90c94323aa..161e7c3f53 100644 +index 9d79720a2..9353e2f6e 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,6 @@ dnl ----------------------------------------------------------------------------
meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch deleted +0 -254
254 lines not on this page · raw message
meta-oe/recipes-devtools/php/php/0002-ext-phar-Makefile.frag-Fix-phar-packaging.patch renamed from meta-oe/recipes-devtools/php/php/0006-ext-phar-Makefile.frag-Fix-phar-packaging.patch +6 -3
@@ -1,7 +1,7 @@ -From eab5babdadea487bbbef025068c553f5ba741774 Mon Sep 17 00:00:00 2001 +From f7724d7ccd157058630e6a887798ab6d3e34c6b7 Mon Sep 17 00:00:00 2001 From: Claude Bing <[email protected]> Date: Tue, 9 Nov 2021 13:07:25 -0500 -Subject: [PATCH 06/11] ext/phar/Makefile.frag: Fix phar packaging +Subject: [PATCH 2/5] ext/phar/Makefile.frag: Fix phar packaging Inherited from OE-Classic, with some additions to fix host paths leaking into the target package.
@@ -19,7 +19,7 @@ Signed-off-by: Claude Bing <[email protected]> 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag -index 7a867dd7..4dbcafd4 100644 +index cedde76df..09d577d73 100644 --- a/ext/phar/Makefile.frag +++ b/ext/phar/Makefile.frag @@ -10,20 +10,9 @@ pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
@@ -46,3 +46,6 @@ index 7a867dd7..4dbcafd4 100644 $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc -@test -d $(builddir)/phar || mkdir $(builddir)/phar +-- +2.25.1 +
meta-oe/recipes-devtools/php/php/0003-iconv-fix-detection.patch renamed from meta-oe/recipes-devtools/php/php/0010-iconv-fix-detection.patch +11 -8
@@ -1,7 +1,7 @@ -From a04aabc5b80371e579fbaffdd417627390d22722 Mon Sep 17 00:00:00 2001 +From 35ac74fce1a60025f8d126783b8aa7014eefdf53 Mon Sep 17 00:00:00 2001 From: Claude Bing <[email protected]> Date: Tue, 9 Nov 2021 13:10:33 -0500 -Subject: [PATCH 10/11] iconv: fix detection +Subject: [PATCH 3/5] iconv: fix detection Upstream-Status: Pending
@@ -12,23 +12,26 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 Signed-off-by: Claude Bing <[email protected]> + +update patch to version 8.4.4 +Signed-off-by: Chen Qi <[email protected]> --- build/php.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/php.m4 b/build/php.m4 -index 93551d9ca7..dba50825fb 100644 +index e45b22b76..1bd3ccceb 100644 --- a/build/php.m4 +++ b/build/php.m4 -@@ -1945,7 +1945,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [ - unset ICONV_DIR +@@ -1820,7 +1820,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [ + [Define to 1 if you have the 'libiconv' function.]) dnl Check libc first if no path is provided in --with-iconv. -- if test "$PHP_ICONV" = "yes"; then +- AS_VAR_IF([PHP_ICONV], [yes], [ + dnl must check against no, not against yes as PHP_ICONV can also include a path, which implies yes -+ if test "$PHP_ICONV" != "no"; then ++ AS_VAR_IF([PHP_ICONV], [no], [], [ dnl Reset LIBS temporarily as it may have already been included -liconv in. - LIBS_save="$LIBS" + LIBS_save=$LIBS LIBS= -- 2.25.1
meta-oe/recipes-devtools/php/php/0004-pear-fix-Makefile.frag-for-Yocto.patch renamed from meta-oe/recipes-devtools/php/php/0005-pear-fix-Makefile.frag-for-Yocto.patch +5 -5
@@ -1,20 +1,20 @@ -From f22958b4c1348eec3bb4c0f2cbe2d22676e0ad23 Mon Sep 17 00:00:00 2001 +From 35d7d40ac49c96b7a9a19b2f6593abb9f18ade2b Mon Sep 17 00:00:00 2001 From: Claude Bing <[email protected]> Date: Tue, 9 Nov 2021 13:04:29 -0500 -Subject: [PATCH 05/11] pear: fix Makefile.frag for Yocto +Subject: [PATCH 4/5] pear: fix Makefile.frag for Yocto + +Upstream-Status: Pending Signed-off-by: Koen Kooi <[email protected]> update patch to 8.0.12 Signed-off-by: Claude Bing <[email protected]> --- -Upstream-Status: Pending - pear/Makefile.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pear/Makefile.frag b/pear/Makefile.frag -index 9408757a3a..69072f39e0 100644 +index 9408757a3..69072f39e 100644 --- a/pear/Makefile.frag +++ b/pear/Makefile.frag @@ -10,7 +10,7 @@ PEAR_SUFFIX = -ds a$(program_suffix)
meta-oe/recipes-devtools/php/php/0005-sapi-cli-config.m4-fix-build-directory.patch renamed from meta-oe/recipes-devtools/php/php/0007-sapi-cli-config.m4-fix-build-directory.patch +10 -7
@@ -1,7 +1,7 @@ -From 03aa51625e0d1aa156c2f7cd71503b1f435d35a4 Mon Sep 17 00:00:00 2001 +From 581751f8b612c381a4a7914a33bfc4130853d305 Mon Sep 17 00:00:00 2001 From: Claude Bing <[email protected]> Date: Tue, 9 Nov 2021 13:08:06 -0500 -Subject: [PATCH 07/11] sapi/cli/config.m4: fix build directory +Subject: [PATCH 5/5] sapi/cli/config.m4: fix build directory Upstream-Status: Inappropriate
@@ -10,23 +10,26 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 Signed-off-by: Claude Bing <[email protected]> + +update patch for version 8.4.4 +Signed-off-by: Chen Qi <[email protected]> --- sapi/cli/config.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 -index d17d531683..f2f87f9164 100644 +index 76c2d64e8..0c7436fd9 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 -@@ -47,7 +47,7 @@ if test "$PHP_CLI" != "no"; then - esac +@@ -50,7 +50,7 @@ if test "$PHP_CLI" != "no"; then + ]) dnl Set executable for tests. - PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" + PHP_EXECUTABLE="${PHP_NATIVE_DIR}/php" - PHP_SUBST(PHP_EXECUTABLE) - dnl Expose to Makefile. + PHP_SUBST([PHP_EXECUTABLE]) + PHP_SUBST([SAPI_CLI_PATH]) -- 2.25.1
meta-oe/recipes-devtools/php/php/0008-ext-imap-config.m4-fix-include-paths.patch deleted +0 -45
45 lines not on this page · raw message
meta-oe/recipes-devtools/php/php_8.4.4.bb renamed from meta-oe/recipes-devtools/php/php_8.2.26.bb +10 -14
@@ -13,17 +13,14 @@ DEPENDS:class-native = "zlib-native libxml2-native" PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}" SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ - file://0004-configure.ac-don-t-include-build-libtool.m4.patch \ - file://0006-ext-phar-Makefile.frag-Fix-phar-packaging.patch \ - file://0010-iconv-fix-detection.patch \ - file://0001-Change-whether-to-inline-XXH3_hashLong_withSecret-to.patch \ + file://0001-configure.ac-don-t-include-build-libtool.m4.patch \ + file://0002-ext-phar-Makefile.frag-Fix-phar-packaging.patch \ " SRC_URI:append:class-target = " \ - file://0001-ext-opcache-config.m4-enable-opcache.patch \ - file://0005-pear-fix-Makefile.frag-for-Yocto.patch \ - file://0007-sapi-cli-config.m4-fix-build-directory.patch \ - file://0008-ext-imap-config.m4-fix-include-paths.patch \ + file://0003-iconv-fix-detection.patch \ + file://0004-pear-fix-Makefile.frag-for-Yocto.patch \ + file://0005-sapi-cli-config.m4-fix-build-directory.patch \ file://php-fpm.conf \ file://php-fpm-apache.conf \ file://70_mod_php${PHP_MAJOR_VERSION}.conf \
@@ -32,7 +29,7 @@ SRC_URI:append:class-target = " \ S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "be57c347d451c905bcb4336832a864d9928dd0e20989b872705fea0ba6476c6b" +SRC_URI[sha256sum] = "192a325fd3ca09b6c528dd6014ee07d803c3162514d4bb0d3e0981d00ac700ec" CVE_STATUS_GROUPS += "CVE_STATUS_PHP" CVE_STATUS_PHP[status] = "fixed-version: The name of this product is exactly the same as github.com/emlog/emlog. CVE can be safely ignored."
@@ -74,6 +71,9 @@ EXTRA_OECONF = "--enable-mbstring \ ${COMMON_EXTRA_OECONF} \ " +# Set these values directly to avoid AC_RUN_IFELSE which does not work in cross compilation environment +CACHED_CONFIGUREVARS += "ac_cv_php_cv_shm_ipc=yes ac_cv_php_cv_shm_mmap_anon=yes ac_cv_php_cv_shm_mmap_posix=yes" + EXTRA_OECONF:append:riscv64 = " --with-pcre-jit=no" EXTRA_OECONF:append:riscv32 = " --with-pcre-jit=no" # Needs fibers assembly implemented for rv32
@@ -87,7 +87,7 @@ EXTRA_OECONF:class-native = " \ ${COMMON_EXTRA_OECONF} \ " -PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ +PACKAGECONFIG ??= "mysql sqlite3 opcache openssl \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ " PACKAGECONFIG:class-native = ""
@@ -107,10 +107,6 @@ PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--witho PACKAGECONFIG[soap] = "--enable-soap, --disable-soap, libxml2" PACKAGECONFIG[apache2] = "--with-apxs2=${STAGING_BINDIR_CROSS}/apxs,,apache2-native apache2" PACKAGECONFIG[pam] = ",,libpam" -PACKAGECONFIG[imap] = "--with-imap=${STAGING_DIR_HOST} \ - --with-imap-ssl=${STAGING_DIR_HOST} \ - ,--without-imap --without-imap-ssl \ - ,uw-imap" PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache" PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl"
Signature · 1 line
2.25.1