Browse Source

php: update to 7.4.24

Waldemar Brodkorb 2 years ago
parent
commit
b8f8a434e2
2 changed files with 43 additions and 2 deletions
  1. 5 2
      package/php/Makefile
  2. 38 0
      package/php/patches/patch-ext_standard_crc32_c

+ 5 - 2
package/php/Makefile

@@ -4,11 +4,13 @@
 include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		php
-PKG_VERSION:=		7.4.11
+PKG_VERSION:=		7.4.24
 PKG_RELEASE:=		1
-PKG_HASH:=		5d31675a9b9c21b5bd03389418218c30b26558246870caba8eb54f5856e2d6ce
+PKG_HASH:=		ff7658ee2f6d8af05b48c21146af5f502e121def4e76e862df5ec9fa06e98734
 PKG_DESCR:=		php language interpreter
 PKG_SECTION:=		dev/lang
+PKG_BUILDDEP:=		libpng
+PKG_DEPENDS:=		libpng
 PKG_NEEDS:=		threads
 PHP_URL:=		http://www.php.net/
 PKG_SITES:=		http://de2.php.net/distributions/
@@ -146,6 +148,7 @@ PKG_CONFIGURE_OPTS+=	--without-ldap
 endif
 ifneq ($(ADK_PACKAGE_PHP_MOD_MARIADB),)
 PKG_CONFIGURE_OPTS+=	--with-pdo-mysql=shared,"$(STAGING_TARGET_DIR)/usr"
+TARGET_CFLAGS+=		-I$(STAGING_TARGET_DIR)/usr/include/mysql
 else
 PKG_CONFIGURE_OPTS+=	--without-pdo-mysql
 endif

+ 38 - 0
package/php/patches/patch-ext_standard_crc32_c

@@ -0,0 +1,38 @@
+--- php-7.4.24.orig/ext/standard/crc32.c	2021-09-21 13:23:20.000000000 +0200
++++ php-7.4.24/ext/standard/crc32.c	2021-09-29 10:27:37.144637295 +0200
+@@ -23,7 +23,6 @@
+ #if HAVE_AARCH64_CRC32
+ # include <arm_acle.h>
+ # if defined(__linux__)
+-#  include <sys/auxv.h>
+ #  include <asm/hwcap.h>
+ # endif
+ 
+@@ -32,13 +31,6 @@ static inline int has_crc32_insn() {
+ 	static int res = -1;
+ 	if (res != -1)
+ 		return res;
+-# if defined(HWCAP_CRC32)
+-	res = getauxval(AT_HWCAP) & HWCAP_CRC32;
+-	return res;
+-# elif defined(HWCAP2_CRC32)
+-	res = getauxval(AT_HWCAP2) & HWCAP2_CRC32;
+-	return res;
+-# else
+ 	res = 0;
+ 	return res;
+ # endif
+@@ -85,13 +77,6 @@ PHP_NAMED_FUNCTION(php_if_crc32)
+ 
+ 	crc = crcinit^0xFFFFFFFF;
+ 
+-#if HAVE_AARCH64_CRC32
+-	if (has_crc32_insn()) {
+-		crc = crc32_aarch64(crc, p, nr);
+-		RETURN_LONG(crc^0xFFFFFFFF);
+-	}
+-#endif
+-
+ 	for (; nr--; ++p) {
+ 		crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ];
+ 	}