package/php: bump version to 7.4.2
PATCH 1/1 package/php: bump version to 7.4.2
patch 0005 has been sourced from upstream,
and can be dropped when 7.4.3 is released.
--- .../0001-acinclude.m4-don-t-unset-variables.patch | 18 ++--- package/php/0002-iconv-tweak-iconv-detection.patch | 20 ++--- .../php/0003-configure-disable-the-phar-tool.patch | 4 +- .../php/0004-Call-apxs-with-correct-prefix.patch | 6 +- ...ompilation-failure-due-to-size_t-typecast.patch | 46 +++++++++++ ...nfig0.m4-add-ac_cv_have_pcre2_jit-variabl.patch | 91 ---------------------- package/php/Config.ext | 1 + package/php/php.hash | 5 +- package/php/php.mk | 10 ++- 9 files changed, 81 insertions(+), 120 deletions(-) create mode 100644 package/php/0005-fix-cross-compilation-failure-due-to-size_t-typecast.patch delete mode 100644 package/php/0006-ext-pcre-config0.m4-add-ac_cv_have_pcre2_jit-variabl.patch
package/php/0001-acinclude.m4-don-t-unset-variables.patch +9 -9
@@ -10,14 +10,14 @@ Signed-off-by: Gustavo Zacarias <[email protected]> Signed-off-by: Adam Duskett <[email protected]> [aduskett at gmail.com: Update for 7.3.0] --- - acinclude.m4 | 4 ---- + build/php.m4 | 4 ---- 1 file changed, 4 deletions(-) -diff --git a/acinclude.m4 b/acinclude.m4 -index 28506b6..af4aa06 100644 ---- a/acinclude.m4 -+++ b/acinclude.m4 -@@ -1921,8 +1921,6 @@ define([phpshift],[ifelse(index([$@],[,]),-1,,[substr([$@],incr(index([$@],[,])) +diff --git a/build/php.m4 b/build/php.m4 +index e91ef988..9586c490 100644 +--- a/build/php.m4 ++++ b/build/php.m4 +@@ -1587,8 +1587,6 @@ dnl PHP_CHECK_FUNC_LIB dnl AC_DEFUN([PHP_CHECK_FUNC_LIB],[ ifelse($2,,:,[
@@ -26,14 +26,14 @@ index 28506b6..af4aa06 100644 unset found AC_CHECK_LIB($2, $1, [found=yes], [ AC_CHECK_LIB($2, __$1, [found=yes], [found=no]) -@@ -1954,8 +1952,6 @@ dnl in the default libraries and as a fall back in the specified library. - dnl Defines HAVE_func and HAVE_library if found and adds the library to LIBS. +@@ -1620,8 +1618,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.7.4
package/php/0002-iconv-tweak-iconv-detection.patch +10 -10
@@ -3,7 +3,7 @@ From: Gustavo Zacarias <[email protected]> Date: Tue, 9 Aug 2016 11:50:49 +0200 Subject: [PATCH] iconv: tweak iconv detection -Tweak PHP_SETUP_ICONV from aclocal/acinclude.m4 to not +Tweak PHP_SETUP_ICONV from aclocal/build/php.m4 to not PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use test instead of AC_TRY_LINK to find headers which is bad, specially when adding /usr and /usr/local to the mix.
@@ -16,16 +16,16 @@ Signed-off-by: Gustavo Zacarias <[email protected]> Signed-off-by: Adam Duskett <[email protected]> [aduskett at gmail.com: Update for 7.3.0] --- - acinclude.m4 | 2 +- + build/php.m4 | 2 +- ext/iconv/config.m4 | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) -diff --git a/acinclude.m4 b/acinclude.m4 -index af4aa06..1bd2652 100644 ---- a/acinclude.m4 -+++ b/acinclude.m4 -@@ -2444,7 +2444,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [ - dnl +diff --git a/build/php.m4 b/build/php.m4 +index 9586c490..8b3d47ed 100644 +--- a/build/php.m4 ++++ b/build/php.m4 +@@ -1971,7 +1971,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [ + dnl Check external libs for iconv funcs. if test "$found_iconv" = "no"; then - for i in $PHP_ICONV /usr/local /usr; do
@@ -34,10 +34,10 @@ index af4aa06..1bd2652 100644 AC_DEFINE(HAVE_GICONV_H, 1, [ ]) ICONV_DIR=$i diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4 -index 72334f79..29c358ad 100644 +index fe9b47aa..70599694 100644 --- a/ext/iconv/config.m4 +++ b/ext/iconv/config.m4 -@@ -12,28 +12,6 @@ if test "$PHP_ICONV" != "no"; then +@@ -13,28 +13,6 @@ if test "$PHP_ICONV" != "no"; then ]) if test "$iconv_avail" != "no"; then
package/php/0003-configure-disable-the-phar-tool.patch +2 -2
@@ -17,10 +17,10 @@ Signed-off-by: Adam Duskett <[email protected]> 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac -index d20af76..7f02f1a 100644 +index 0dfab302..6026fb66 100644 --- a/configure.ac +++ b/configure.ac -@@ -1472,13 +1472,8 @@ CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag" +@@ -1430,13 +1430,8 @@ CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag" INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag" CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)"
package/php/0004-Call-apxs-with-correct-prefix.patch +3 -3
@@ -22,10 +22,10 @@ Signed-off-by: Adam Duskett <[email protected]> 1 file changed, 3 insertions(+) diff --git a/sapi/apache2handler/config.m4 b/sapi/apache2handler/config.m4 -index 2e64b21..f5bf002 100644 +index 55c16179..68ce66c0 100644 --- a/sapi/apache2handler/config.m4 +++ b/sapi/apache2handler/config.m4 -@@ -64,10 +64,12 @@ if test "$PHP_APXS2" != "no"; then +@@ -63,10 +63,12 @@ if test "$PHP_APXS2" != "no"; then AC_MSG_ERROR([Please note that Apache version >= 2.0.44 is required]) fi
@@ -38,7 +38,7 @@ index 2e64b21..f5bf002 100644 -i -n php7" else APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` -@@ -75,6 +77,7 @@ if test "$PHP_APXS2" != "no"; then +@@ -74,6 +76,7 @@ if test "$PHP_APXS2" != "no"; then \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ -S SYSCONFDIR='$APXS_SYSCONFDIR' \
package/php/0005-fix-cross-compilation-failure-due-to-size_t-typecast.patch new file +46 -0
46 lines not on this page · raw message
package/php/0006-ext-pcre-config0.m4-add-ac_cv_have_pcre2_jit-variabl.patch deleted +0 -91
91 lines not on this page · raw message
package/php/Config.ext +1 -0
@@ -240,6 +240,7 @@ comment "intl support needs a toolchain w/ C++, wchar, threads, dynamic library, config BR2_PACKAGE_PHP_EXT_MBSTRING bool "mbstring" + select BR2_PACKAGE_ONIGURUMA help multibyte string support
package/php/php.hash +3 -2
@@ -1,5 +1,6 @@ # From https://www.php.net/downloads.php -sha256 cc05dd373ca5d36652800762f65c10e828a17de35aaf246262e3efa99d00cdb0 php-7.3.14.tar.xz +sha256 98284deac017da0d426117ecae7599a1f1bf62ae3911e8bc16c4403a8f4bdf13 php-7.4.2.tar.xz # License file -sha256 f689b8fa63bea7950ce6a21bf52ed88ea0d77673ee76e6de12f51191174d91b8 LICENSE +sha256 0967ad6cf4b7fe81d38709d7aaef3fecb3bd685be7eebb37b864aa34c991baa7 LICENSE +
package/php/php.mk +7 -3
@@ -4,7 +4,7 @@ # ################################################################################ -PHP_VERSION = 7.3.14 +PHP_VERSION = 7.4.2 PHP_SITE = http://www.php.net/distributions PHP_SOURCE = php-$(PHP_VERSION).tar.xz PHP_INSTALL_STAGING = YES
@@ -119,7 +119,6 @@ PHP_CONF_OPTS += \ $(if $(BR2_PACKAGE_PHP_EXT_CALENDAR),--enable-calendar) \ $(if $(BR2_PACKAGE_PHP_EXT_FILEINFO),--enable-fileinfo) \ $(if $(BR2_PACKAGE_PHP_EXT_BCMATH),--enable-bcmath) \ - $(if $(BR2_PACKAGE_PHP_EXT_MBSTRING),--enable-mbstring) \ $(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar) ifeq ($(BR2_PACKAGE_PHP_EXT_LIBARGON2),y)
@@ -132,6 +131,11 @@ PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr PHP_DEPENDENCIES += libsodium endif +ifeq ($(BR2_PACKAGE_PHP_EXT_MBSTRING),y) +PHP_CONF_OPTS += --enable-mbstring +PHP_DEPENDENCIES += oniguruma +endif + ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y) PHP_CONF_OPTS += --with-mcrypt=$(STAGING_DIR)/usr PHP_DEPENDENCIES += libmcrypt
@@ -147,7 +151,7 @@ endif ifeq ($(BR2_PACKAGE_PHP_EXT_LIBXML2),y) PHP_CONF_ENV += php_cv_libxml_build_works=yes -PHP_CONF_OPTS += --enable-libxml --with-libxml-dir=$(STAGING_DIR)/usr +PHP_CONF_OPTS += --with-libxml --with-libxml-dir=$(STAGING_DIR)/usr PHP_DEPENDENCIES += libxml2 endif
Signature · 1 line
2.7.4
PATCH 1/1 package/php: bump version to 7.4.2
Hello Pascal,
Thanks for this update. One question below.
Quoted 14 lines · On Fri, 31 Jan 2020 10:09:55 +0100 Pascal de Bruijn <[email protected]>…
package/php/php.mk +1
-2-PHP_VERSION = 7.3.14 +PHP_VERSION = 7.4.2 PHP_SITE = http://www.php.net/distributions PHP_SOURCE = php-$(PHP_VERSION).tar.xz PHP_INSTALL_STAGING = YES@@ -119,7 +119,6 @@ PHP_CONF_OPTS += \ $(if $(BR2_PACKAGE_PHP_EXT_CALENDAR),--enable-calendar) \ $(if $(BR2_PACKAGE_PHP_EXT_FILEINFO),--enable-fileinfo) \ $(if $(BR2_PACKAGE_PHP_EXT_BCMATH),--enable-bcmath) \ - $(if $(BR2_PACKAGE_PHP_EXT_MBSTRING),--enable-mbstring) \ $(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar) ifeq ($(BR2_PACKAGE_PHP_EXT_LIBARGON2),y)
package/php/php.mk PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr · line 137
Quoted 7 lines
package/php/php.mk +4
-0@@ -132,6 +131,11 @@ PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr PHP_DEPENDENCIES += libsodium endif +ifeq ($(BR2_PACKAGE_PHP_EXT_MBSTRING),y) +PHP_CONF_OPTS += --enable-mbstring +PHP_DEPENDENCIES += oniguruma +endif
Even in the current 7.3.x version it seems like mbstrings uses oniguruma. So is this really new? Or is it that what is new is the ability to use an external oniguruma instead of the bundled one ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/php: bump version to 7.4.2
In reply to Pascal de BruijnQuoted 4 lines · On Fri, 31 Jan 2020 10:09:55 +0100 Pascal de Bruijn <[email protected]>…
patch 0005 has been sourced from upstream,
and can be dropped when 7.4.3 is released.Signed-off-by Pascal de Bruijn <[email protected]>
Quoted 13 lines
--- .../0001-acinclude.m4-don-t-unset-variables.patch | 18 ++--- package/php/0002-iconv-tweak-iconv-detection.patch | 20 ++--- .../php/0003-configure-disable-the-phar-tool.patch | 4 +- .../php/0004-Call-apxs-with-correct-prefix.patch | 6 +- ...ompilation-failure-due-to-size_t-typecast.patch | 46 +++++++++++ ...nfig0.m4-add-ac_cv_have_pcre2_jit-variabl.patch | 91 ---------------------- package/php/Config.ext | 1 + package/php/php.hash | 5 +- package/php/php.mk | 10 ++- 9 files changed, 81 insertions(+), 120 deletions(-) create mode 100644 package/php/0005-fix-cross-compilation-failure-due-to-size_t-typecast.patch delete mode 100644 package/php/0006-ext-pcre-config0.m4-add-ac_cv_have_pcre2_jit-variabl.patch
So Adam replied to me about the oniguruma dependency, and I updated the commit log accordingly.
Also, you forgot to explain why the license file hash has changed, so I extended the commit log.
Generally, I would recommend writing a bit more detailed commit logs, to cover the different aspects of the patch.
Applied with those changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com