Bump buildroot to 2019.02
This commit is contained in:
@@ -8,7 +8,7 @@ Terminate them with extreme prejudice.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||
[aduskett@gmail.com: Update for 7.2.2]
|
||||
[aduskett@gmail.com: Update for 7.3.0]
|
||||
---
|
||||
acinclude.m4 | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
@@ -17,7 +17,7 @@ diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index 28506b6..af4aa06 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -1890,8 +1890,6 @@ define([phpshift],[ifelse(index([$@],[,]),-1,,[substr([$@],incr(index([$@],[,]))
|
||||
@@ -1921,8 +1921,6 @@ define([phpshift],[ifelse(index([$@],[,]),-1,,[substr([$@],incr(index([$@],[,]))
|
||||
dnl
|
||||
AC_DEFUN([PHP_CHECK_FUNC_LIB],[
|
||||
ifelse($2,,:,[
|
||||
@@ -26,7 +26,7 @@ index 28506b6..af4aa06 100644
|
||||
unset found
|
||||
AC_CHECK_LIB($2, $1, [found=yes], [
|
||||
AC_CHECK_LIB($2, __$1, [found=yes], [found=no])
|
||||
@@ -1923,8 +1921,6 @@ dnl in the default libraries and as a fall back in the specified library.
|
||||
@@ -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.
|
||||
dnl
|
||||
AC_DEFUN([PHP_CHECK_FUNC],[
|
||||
|
||||
@@ -14,7 +14,7 @@ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
[Gustavo: convert to nice m4 instead of patching configure]
|
||||
[Gustavo: update for 5.6.10]
|
||||
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||
[aduskett@gmail.com: Update for 7.2.2]
|
||||
[aduskett@gmail.com: Update for 7.3.0]
|
||||
---
|
||||
acinclude.m4 | 2 +-
|
||||
ext/iconv/config.m4 | 22 ----------------------
|
||||
@@ -24,7 +24,7 @@ diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index af4aa06..1bd2652 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -2463,7 +2463,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
||||
@@ -2444,7 +2444,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
||||
dnl
|
||||
if test "$found_iconv" = "no"; then
|
||||
|
||||
@@ -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 6a05697..694fcb8 100644
|
||||
index 72334f79..29c358ad 100644
|
||||
--- a/ext/iconv/config.m4
|
||||
+++ b/ext/iconv/config.m4
|
||||
@@ -14,28 +14,6 @@ if test "$PHP_ICONV" != "no"; then
|
||||
@@ -12,28 +12,6 @@ if test "$PHP_ICONV" != "no"; then
|
||||
])
|
||||
|
||||
if test "$iconv_avail" != "no"; then
|
||||
@@ -65,7 +65,7 @@ index 6a05697..694fcb8 100644
|
||||
- fi
|
||||
|
||||
AC_MSG_CHECKING([if iconv is glibc's])
|
||||
AC_TRY_LINK([#include <gnu/libc-version.h>],[gnu_get_libc_version();],
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gnu/libc-version.h>]], [[gnu_get_libc_version();]])],[
|
||||
--
|
||||
2.7.4
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ on the target.
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
[Gustavo: update for autoreconf/configure.in]
|
||||
Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
|
||||
[Aduskett: update for 7.2.2]
|
||||
[Aduskett: update for 7.3.0]
|
||||
---
|
||||
configure.ac | 9 ++-------
|
||||
1 file changed, 2 insertions(+), 7 deletions(-)
|
||||
@@ -20,7 +20,7 @@ diff --git a/configure.ac b/configure.ac
|
||||
index d20af76..7f02f1a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1420,13 +1420,8 @@ CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
|
||||
@@ -1472,13 +1472,8 @@ CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
|
||||
INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
|
||||
CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)"
|
||||
|
||||
|
||||
@@ -4,6 +4,10 @@ Date: Tue, 9 Aug 2016 11:52:19 +0200
|
||||
Subject: [PATCH] OPcache: flock mechanism is obviously linux so force it.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[Bernd: update for 7.2.12 & 7.3.2]
|
||||
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||
[aduskett@gmail.com: Update for 7.3.0]
|
||||
---
|
||||
ext/opcache/config.m4 | 34 ++--------------------------------
|
||||
1 file changed, 2 insertions(+), 32 deletions(-)
|
||||
@@ -12,42 +16,62 @@ diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
|
||||
index fbb9b21..ffddc8e 100644
|
||||
--- a/ext/opcache/config.m4
|
||||
+++ b/ext/opcache/config.m4
|
||||
@@ -343,38 +343,8 @@ int main() {
|
||||
msg=yes,msg=no,msg=no)
|
||||
@@ -334,58 +334,8 @@ int main() {
|
||||
msg=yes],[msg=no],[msg=no])
|
||||
AC_MSG_RESULT([$msg])
|
||||
|
||||
-flock_type=unknown
|
||||
-AC_MSG_CHECKING("whether flock struct is linux ordered")
|
||||
-AC_TRY_RUN([
|
||||
-AC_MSG_CHECKING(for struct flock layout)
|
||||
-
|
||||
-if test "$flock_type" = "unknown"; then
|
||||
-AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
- #include <fcntl.h>
|
||||
- struct flock lock = { 1, 2, 3, 4, 5, 6, 7 };
|
||||
- int main() {
|
||||
- if(lock.l_type == 1 && lock.l_whence == 2 && lock.l_start == 6 && lock.l_len== 7) {
|
||||
- return 0;
|
||||
- }
|
||||
- return 1;
|
||||
- }
|
||||
-]])], [
|
||||
- flock_type=aix64
|
||||
- AC_DEFINE([HAVE_FLOCK_AIX64], [], [Struct flock is 64-bit AIX-type])
|
||||
-], [])
|
||||
-fi
|
||||
-
|
||||
-if test "$flock_type" = "unknown"; then
|
||||
-AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
- #include <fcntl.h>
|
||||
- struct flock lock = { 1, 2, 3, 4, 5 };
|
||||
- int main() {
|
||||
- int main() {
|
||||
- if(lock.l_type == 1 && lock.l_whence == 2 && lock.l_start == 3 && lock.l_len == 4) {
|
||||
- return 0;
|
||||
- }
|
||||
- return 1;
|
||||
- }
|
||||
-], [
|
||||
- }
|
||||
-]])], [
|
||||
- flock_type=linux
|
||||
- AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
|
||||
- AC_MSG_RESULT("yes")
|
||||
-], AC_MSG_RESULT("no") )
|
||||
-], [])
|
||||
-fi
|
||||
-
|
||||
-AC_MSG_CHECKING("whether flock struct is BSD ordered")
|
||||
-AC_TRY_RUN([
|
||||
-if test "$flock_type" = "unknown"; then
|
||||
-AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
- #include <fcntl.h>
|
||||
- struct flock lock = { 1, 2, 3, 4, 5 };
|
||||
- int main() {
|
||||
- int main() {
|
||||
- if(lock.l_start == 1 && lock.l_len == 2 && lock.l_type == 4 && lock.l_whence == 5) {
|
||||
- return 0;
|
||||
- }
|
||||
- return 1;
|
||||
- }
|
||||
-], [
|
||||
- }
|
||||
-]])], [
|
||||
- flock_type=bsd
|
||||
- AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type])
|
||||
- AC_MSG_RESULT("yes")
|
||||
-], AC_MSG_RESULT("no") )
|
||||
- AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type])
|
||||
-], [])
|
||||
-fi
|
||||
-
|
||||
-AC_MSG_RESULT([$flock_type])
|
||||
+flock_type=linux
|
||||
+AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ To fix this, add -S PREFIX='$(INSTALL_ROOT)/usr' to apxs call in configure
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
|
||||
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||
[aduskett@gmail.com: Update for 7.2.2]
|
||||
[aduskett@gmail.com: Update for 7.3.0]
|
||||
---
|
||||
sapi/apache2handler/config.m4 | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
@@ -25,7 +25,7 @@ diff --git a/sapi/apache2handler/config.m4 b/sapi/apache2handler/config.m4
|
||||
index 2e64b21..f5bf002 100644
|
||||
--- a/sapi/apache2handler/config.m4
|
||||
+++ b/sapi/apache2handler/config.m4
|
||||
@@ -66,10 +66,12 @@ if test "$PHP_APXS2" != "no"; then
|
||||
@@ -64,10 +64,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`
|
||||
@@ -77,6 +79,7 @@ if test "$PHP_APXS2" != "no"; then
|
||||
@@ -75,6 +77,7 @@ if test "$PHP_APXS2" != "no"; then
|
||||
\$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
|
||||
$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
|
||||
-S SYSCONFDIR='$APXS_SYSCONFDIR' \
|
||||
@@ -1,37 +0,0 @@
|
||||
From a874ba472151c6811018de322a5787d0ca6148c9 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Tue, 9 Aug 2016 11:52:51 +0200
|
||||
Subject: [PATCH] ext/fileinfo/config.m4: allow cache answer for strcasestr
|
||||
discovery
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
[aduskett@gmail.com: Update for 7.2.2]
|
||||
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||
---
|
||||
ext/fileinfo/config.m4 | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ext/fileinfo/config.m4 b/ext/fileinfo/config.m4
|
||||
index 7e98d62..8561962 100644
|
||||
--- a/ext/fileinfo/config.m4
|
||||
+++ b/ext/fileinfo/config.m4
|
||||
@@ -15,6 +15,7 @@ libmagic/readcdf.c libmagic/softmagic.c libmagic/der.c"
|
||||
|
||||
AC_MSG_CHECKING([for strcasestr])
|
||||
+ AC_CACHE_VAL(ac_cv_func_strcasestr,
|
||||
AC_TRY_RUN([
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <stdlib.h>
|
||||
@@ -46,7 +47,7 @@ int main(void)
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_NOTICE(using libmagic strcasestr implementation)
|
||||
libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
|
||||
- ])
|
||||
+ ]))
|
||||
|
||||
PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
|
||||
PHP_ADD_BUILD_DIR($ext_builddir/libmagic)
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
Avoid gcc segmentation fault
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||
[aduskett@gmail.com: Update for 7.2.2]
|
||||
diff -Nur php-7.0.12.orig/Zend/zend_portability.h php-7.0.12/Zend/zend_portability.h
|
||||
--- php-7.0.12.orig/Zend/zend_portability.h 2016-10-13 16:04:17.000000000 +0200
|
||||
+++ php-7.0.12/Zend/zend_portability.h 2016-11-08 02:49:39.118388999 +0100
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
#if defined(ZEND_WIN32) && !defined(__clang__)
|
||||
# define ZEND_ASSUME(c) __assume(c)
|
||||
-#elif ((defined(__GNUC__) && ZEND_GCC_VERSION >= 4005) || __has_builtin(__builtin_unreachable)) && PHP_HAVE_BUILTIN_EXPECT
|
||||
+#elif ((defined(__GNUC__) && ZEND_GCC_VERSION >= 4005) || __has_builtin(__builtin_unreachable)) && PHP_HAVE_BUILTIN_EXPECT && !defined(__bfin__)
|
||||
# define ZEND_ASSUME(c) do { \
|
||||
if (__builtin_expect(!(c), 0)) __builtin_unreachable(); \
|
||||
} while (0)
|
||||
@@ -1,71 +0,0 @@
|
||||
From fb1f0e17eed729204a6d5caf590715d6257dceb3 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Thu, 5 Apr 2018 22:50:00 +0200
|
||||
Subject: [PATCH] ext/xml/expat_compat.h: add missing php.h include
|
||||
|
||||
When expat support is disabled and libxml support is enabled, the
|
||||
following part of the code in expat_compat.h gets used:
|
||||
|
||||
and therefore "php".h" is included. However, when libexpat support is
|
||||
enabled, HAVE_LIBEXPAT is defined, and therefore the following part of
|
||||
the code is used:
|
||||
|
||||
In this case, "php.h" is not included. Due to this, zend_alloc.h is
|
||||
never included when building the ext/xmlrpc/libxmlrpc/xml_element.c
|
||||
file, and therefore the estrdup -> _estrdup macros are never defined,
|
||||
causing the following link time failure:
|
||||
|
||||
ext/xmlrpc/libxmlrpc/xml_element.o: In function `xml_element_serialize':
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:462: undefined reference to `efree'
|
||||
ext/xmlrpc/libxmlrpc/xml_element.o: In function `xml_elem_entity_escape':
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:347: undefined reference to `emalloc'
|
||||
ext/xmlrpc/libxmlrpc/xml_element.o: In function `_xmlrpc_charHandler':
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:646: undefined reference to `efree'
|
||||
ext/xmlrpc/libxmlrpc/xml_element.o: In function `xml_elem_free_non_recurse':
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:198: undefined reference to `efree'
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:199: undefined reference to `efree'
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:200: undefined reference to `efree'
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:207: undefined reference to `efree'
|
||||
ext/xmlrpc/libxmlrpc/xml_element.o: In function `xml_elem_new':
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:263: undefined reference to `ecalloc'
|
||||
ext/xmlrpc/libxmlrpc/xml_element.o: In function `_xmlrpc_startElement':
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:602: undefined reference to `estrdup'
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:607: undefined reference to `emalloc'
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:609: undefined reference to `estrdup'
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:610: undefined reference to `estrdup'
|
||||
ext/xmlrpc/libxmlrpc/xml_element.o: In function `xml_elem_free_non_recurse':
|
||||
/home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:211: undefined reference to `efree'
|
||||
collect2: error: ld returned 1 exit status
|
||||
make: *** [Makefile:248: sapi/cgi/php-cgi] Error 1
|
||||
|
||||
This link time failure can be produced with:
|
||||
|
||||
./configure --prefix=/usr --with-libdir=/usr/lib64 --disable-all \
|
||||
--without-pear --with-config-file-path=/etc --disable-phpdbg \
|
||||
--disable-cli --enable-cgi --disable-fpm --enable-xmlreader \
|
||||
--enable-xmlwriter --enable-libxml --enable-wddx --with-xmlrpc \
|
||||
--with-libexpat-dir=/
|
||||
|
||||
We fix it by including "php.h" in the HAVE_LIBEXPAT case.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Upstream-status: https://github.com/php/php-src/pull/3212
|
||||
---
|
||||
ext/xml/expat_compat.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/ext/xml/expat_compat.h b/ext/xml/expat_compat.h
|
||||
index ed621ab53d..29fe48a7dd 100644
|
||||
--- a/ext/xml/expat_compat.h
|
||||
+++ b/ext/xml/expat_compat.h
|
||||
@@ -154,6 +154,7 @@ PHP_XML_API const XML_Char *XML_ExpatVersion(void);
|
||||
PHP_XML_API void XML_ParserFree(XML_Parser);
|
||||
|
||||
#elif defined(HAVE_LIBEXPAT)
|
||||
+#include "php.h"
|
||||
#include <expat.h>
|
||||
#endif /* HAVE_LIBEXPAT */
|
||||
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -45,9 +45,14 @@ config BR2_PACKAGE_PHP_EXT_PHAR
|
||||
help
|
||||
PHP Archive support
|
||||
|
||||
comment "zip needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_PHP_EXT_ZIP
|
||||
bool "zip"
|
||||
depends on !BR2_STATIC_LIBS # libzip
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_LIBZIP
|
||||
help
|
||||
Zip read/write support
|
||||
|
||||
@@ -117,6 +122,19 @@ config BR2_PACKAGE_PHP_EXT_MYSQLI
|
||||
help
|
||||
MySQL Improved extension support
|
||||
|
||||
config BR2_PACKAGE_PHP_EXT_PGSQL
|
||||
bool "PostgreSQL"
|
||||
depends on BR2_USE_MMU # postgresql
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR # postgresql
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
help
|
||||
PostgreSQL support
|
||||
|
||||
comment "PostgreSQL extension needs a toolchain w/ dynamic library, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_PHP_EXT_SQLITE
|
||||
bool "SQLite3"
|
||||
select BR2_PACKAGE_SQLITE
|
||||
@@ -140,13 +158,14 @@ config BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL
|
||||
bool "PostgreSQL"
|
||||
depends on BR2_USE_MMU # postgresql
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR # postgresql
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
help
|
||||
PDO driver for PostgreSQL
|
||||
|
||||
comment "PostgreSQL drivers need a toolchain w/ dynamic library"
|
||||
comment "PostgreSQL drivers need a toolchain w/ wchar, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_PHP_EXT_PDO_SQLITE
|
||||
bool "SQLite3"
|
||||
@@ -156,10 +175,14 @@ config BR2_PACKAGE_PHP_EXT_PDO_SQLITE
|
||||
|
||||
config BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC
|
||||
bool "unixODBC"
|
||||
depends on !BR2_STATIC_LIBS # unixodbc
|
||||
select BR2_PACKAGE_UNIXODBC
|
||||
help
|
||||
unixODBC driver for PDO
|
||||
|
||||
comment "unixodbc driver needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
|
||||
comment "Human language and character encoding support"
|
||||
@@ -187,14 +210,15 @@ config BR2_PACKAGE_PHP_EXT_INTL
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
|
||||
depends on !BR2_BINFMT_FLAT # icu
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # icu
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_ICU
|
||||
help
|
||||
Internationalization support
|
||||
|
||||
comment "intl support needs a toolchain w/ C++, wchar, threads, gcc >= 4.8, host gcc >= 4.8"
|
||||
comment "intl support needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.8, host gcc >= 4.8"
|
||||
depends on !BR2_BINFMT_FLAT
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_4_8
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
config BR2_PACKAGE_PHP
|
||||
bool "php"
|
||||
# PHP uses -export-dynamic, which breaks with elf2flt with a
|
||||
# message like "ld.real: section .junk LMA [...,...] overlaps
|
||||
# section .text LMA [...,...]"
|
||||
depends on !BR2_BINFMT_FLAT
|
||||
select BR2_PACKAGE_PHP_SAPI_CGI if \
|
||||
!BR2_PACKAGE_PHP_SAPI_APACHE && \
|
||||
!BR2_PACKAGE_PHP_SAPI_CLI && \
|
||||
!BR2_PACKAGE_PHP_SAPI_FPM && \
|
||||
BR2_USE_MMU
|
||||
select BR2_PACKAGE_PHP_SAPI_CLI if !BR2_USE_MMU
|
||||
# PHP uses -export-dynamic, which breaks with elf2flt with a
|
||||
# message like "ld.real: section .junk LMA [...,...] overlaps
|
||||
# section .text LMA [...,...]"
|
||||
depends on !BR2_BINFMT_FLAT
|
||||
help
|
||||
PHP is a widely-used general-purpose scripting
|
||||
language that is especially suited for Web development
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# From http://php.net/downloads.php
|
||||
sha256 01c2154a3a8e3c0818acbdbc1a956832c828a0380ce6d1d14fea495ea21804f0 php-7.2.10.tar.xz
|
||||
sha256 010b868b4456644ae227d05ad236c8b0a1f57dc6320e7e5ad75e86c5baf0a9a8 php-7.3.2.tar.xz
|
||||
|
||||
# License file
|
||||
sha256 00e567a8d50359d93ee1f9afdd9511277660c1e70a0cbf3229f84403aa9aebb1 LICENSE
|
||||
sha256 f689b8fa63bea7950ce6a21bf52ed88ea0d77673ee76e6de12f51191174d91b8 LICENSE
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PHP_VERSION = 7.2.10
|
||||
PHP_VERSION = 7.3.2
|
||||
PHP_SITE = http://www.php.net/distributions
|
||||
PHP_SOURCE = php-$(PHP_VERSION).tar.xz
|
||||
PHP_INSTALL_STAGING = YES
|
||||
@@ -22,7 +22,6 @@ PHP_CONF_OPTS = \
|
||||
--disable-phpdbg \
|
||||
--disable-rpath
|
||||
PHP_CONF_ENV = \
|
||||
ac_cv_func_strcasestr=yes \
|
||||
EXTRA_LIBS="$(PHP_EXTRA_LIBS)"
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
@@ -153,6 +152,10 @@ PHP_CONF_OPTS += \
|
||||
PHP_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PHP_EXT_ZIP),y)
|
||||
PHP_DEPENDENCIES += libzip
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_PHP_EXT_ZLIB)$(BR2_PACKAGE_PHP_EXT_ZIP),)
|
||||
PHP_CONF_OPTS += --with-zlib=$(STAGING_DIR)/usr
|
||||
PHP_DEPENDENCIES += zlib
|
||||
@@ -196,6 +199,12 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_PHP_EXT_MYSQLI),y)
|
||||
PHP_CONF_OPTS += --with-mysqli
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PHP_EXT_PGSQL),y)
|
||||
PHP_CONF_OPTS += --with-pgsql=$(STAGING_DIR)/usr
|
||||
PHP_DEPENDENCIES += postgresql
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
|
||||
PHP_CONF_OPTS += --with-sqlite3=$(STAGING_DIR)/usr
|
||||
PHP_DEPENDENCIES += sqlite
|
||||
@@ -234,9 +243,9 @@ endef
|
||||
PHP_POST_CONFIGURE_HOOKS += PHP_DISABLE_VALGRIND
|
||||
|
||||
### Use external PCRE if it's available
|
||||
ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||
ifeq ($(BR2_PACKAGE_PCRE2),y)
|
||||
PHP_CONF_OPTS += --with-pcre-regex=$(STAGING_DIR)/usr
|
||||
PHP_DEPENDENCIES += pcre
|
||||
PHP_DEPENDENCIES += pcre2
|
||||
else
|
||||
# The bundled pcre library is not configurable through ./configure options,
|
||||
# and by default is configured to be thread-safe, so it wants pthreads. So
|
||||
@@ -253,7 +262,7 @@ endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PHP_EXT_CURL),y)
|
||||
PHP_CONF_OPTS += --with-curl=$(STAGING_DIR)/usr
|
||||
PHP_CONF_OPTS += --with-curl
|
||||
PHP_DEPENDENCIES += libcurl
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user