mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
php7: upgrade to 7.2.4
* For changes, see: http://www.php.net/ChangeLog-7.php#7.2.4 * Remove patches as they've been upstreamed: - 0001-Specify-tag-with-libtool.patch - CVE-2017-16642.patch - CVE-2018-5711.patch * mcrypt module has been deprecated and as such dependency has been moved from php.inc to php5 recipe. * Refresh patches to avoid fuzz warnings. * New patches to: - Make sure libxml is detected using pkg-config instead of binconfig. - Fix link time warnings (backport, see patch for details) * Move the following patches to php5 from inc as they were getting applied out of context: - acinclude-xml2-config.patch - 0001-acinclude-use-pkgconfig-for-libxml2-config.patch License-Update: License is same, just a change in copyright year to 2018. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
08c5797ccb
commit
2768c1deb3
@@ -6,15 +6,13 @@ LICENSE = "PHP-3.0"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native \
|
||||
openssl libmcrypt"
|
||||
openssl"
|
||||
DEPENDS_class-native = "zlib-native libxml2-native"
|
||||
|
||||
PHP_MAJOR_VERSION = "${@d.getVar('PV', True).split('.')[0]}"
|
||||
|
||||
SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \
|
||||
file://acinclude-xml2-config.patch \
|
||||
file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \
|
||||
file://0001-acinclude-use-pkgconfig-for-libxml2-config.patch \
|
||||
"
|
||||
|
||||
SRC_URI_append_class-target = " \
|
||||
@@ -57,7 +55,6 @@ EXTRA_OECONF = "--enable-mbstring \
|
||||
--with-gettext=${STAGING_LIBDIR}/.. \
|
||||
--with-zlib=${STAGING_LIBDIR}/.. \
|
||||
--with-iconv=${STAGING_LIBDIR}/.. \
|
||||
--with-mcrypt=${STAGING_DIR_TARGET}${exec_prefix} \
|
||||
--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)} \
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
From 5c84b039e97abd88f6a18da0e6d27383c00fea92 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 26 Jul 2017 23:06:56 -0700
|
||||
Subject: [PATCH] Specify --tag with libtool
|
||||
|
||||
This helps in compiling with external toolchains
|
||||
with -fPIE appended to CC e.g. via hardening flags
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
acinclude.m4 | 8 ++++----
|
||||
configure.in | 4 ++--
|
||||
2 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index a114a98..1cc7a26 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -806,10 +806,10 @@ dnl
|
||||
dnl PHP_BUILD_PROGRAM
|
||||
dnl
|
||||
AC_DEFUN([PHP_BUILD_PROGRAM],[
|
||||
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
|
||||
+ php_c_pre='$(LIBTOOL) --tag=CC --mode=compile $(CC)'
|
||||
php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
|
||||
php_c_post=
|
||||
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
|
||||
+ php_cxx_pre='$(LIBTOOL) --tag=CXX --mode=compile $(CXX)'
|
||||
php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
|
||||
php_cxx_post=
|
||||
php_lo=lo
|
||||
@@ -819,10 +819,10 @@ AC_DEFUN([PHP_BUILD_PROGRAM],[
|
||||
no) pic_setting='-prefer-non-pic';;
|
||||
esac
|
||||
|
||||
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
|
||||
+ shared_c_pre='$(LIBTOOL) --tag=CC --mode=compile $(CC)'
|
||||
shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
|
||||
shared_c_post=
|
||||
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
|
||||
+ shared_cxx_pre='$(LIBTOOL) --tag=CXX --mode=compile $(CXX)'
|
||||
shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
|
||||
shared_cxx_post=
|
||||
shared_lo=lo
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 7d65b63..7221af9 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -1431,8 +1431,8 @@ PHP_SET_LIBTOOL_VARIABLE([--silent])
|
||||
dnl libtool 1.4.3 needs this.
|
||||
PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps])
|
||||
|
||||
-test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
|
||||
-test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
|
||||
+test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) -c $<'
|
||||
+test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --tag=CXX --mode=compile $(CXX_COMPILE) -c $<'
|
||||
SHARED_LIBTOOL='$(LIBTOOL)'
|
||||
|
||||
CC=$old_CC
|
||||
--
|
||||
2.13.3
|
||||
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
From a2d146b8dd9d02f523d1e205d79792626a71dec3 Mon Sep 17 00:00:00 2001
|
||||
From: Anuj Mittal <anuj.mittal@intel.com>
|
||||
Date: Mon, 2 Apr 2018 15:27:09 +0800
|
||||
Subject: [PATCH] acinclude.m4: skip binconfig check for libxml
|
||||
|
||||
We want libxml flags to be picked up using pkg-config instead of the
|
||||
xml2-config file.
|
||||
|
||||
Upstream-Status: Inappropriate [OE-specific]
|
||||
|
||||
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
||||
|
||||
---
|
||||
acinclude.m4 | 29 -----------------------------
|
||||
1 file changed, 29 deletions(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index d42d708..d32766a 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -2525,35 +2525,6 @@ dnl
|
||||
AC_DEFUN([PHP_SETUP_LIBXML], [
|
||||
found_libxml=no
|
||||
|
||||
- dnl First try to find xml2-config
|
||||
- AC_CACHE_CHECK([for xml2-config path], ac_cv_php_xml2_config_path,
|
||||
- [
|
||||
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
|
||||
- if test -x "$i/bin/xml2-config"; then
|
||||
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
|
||||
- break
|
||||
- fi
|
||||
- done
|
||||
- ])
|
||||
-
|
||||
- if test -x "$ac_cv_php_xml2_config_path"; then
|
||||
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
|
||||
- libxml_full_version=`$XML2_CONFIG --version`
|
||||
- ac_IFS=$IFS
|
||||
- IFS="."
|
||||
- set $libxml_full_version
|
||||
- IFS=$ac_IFS
|
||||
- LIBXML_VERSION=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3`
|
||||
- if test "$LIBXML_VERSION" -ge "2006011"; then
|
||||
- found_libxml=yes
|
||||
- LIBXML_LIBS=`$XML2_CONFIG --libs`
|
||||
- LIBXML_INCS=`$XML2_CONFIG --cflags`
|
||||
- else
|
||||
- AC_MSG_ERROR([libxml2 version 2.6.11 or greater required.])
|
||||
- fi
|
||||
- fi
|
||||
-
|
||||
- dnl If xml2-config fails, try pkg-config
|
||||
if test "$found_libxml" = "no"; then
|
||||
if test -z "$PKG_CONFIG"; then
|
||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
From 2842aa2a078eb1cad55540b61e7edf111395150d Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Mon, 26 Feb 2018 19:30:55 +0100
|
||||
Subject: [PATCH] main/php_ini.c: build empty php_load_zend_extension_cb() when
|
||||
!HAVE_LIBDL
|
||||
|
||||
Commit 0782a7fc6314c8bd3cbfd57f12d0479bf9cc8dc7 ("Fixed bug #74866
|
||||
extension_dir = "./ext" now use current directory for base") modified
|
||||
the php_load_zend_extension_cb() function to use php_load_shlib(), and
|
||||
pass a handle to the newly introduced zend_load_extension_handle()
|
||||
function instead of passing the extension path to
|
||||
zend_load_extension().
|
||||
|
||||
While doing so, it introduced a call to php_load_shlib() from code
|
||||
that is built even when HAVE_LIBDL is not defined. However,
|
||||
php_load_shlib() is not implemented when HAVE_LIBDL is not defined,
|
||||
for obvious reasons.
|
||||
|
||||
It turns out that zend_load_extension_handle() anyway doesn't do
|
||||
anything when ZEND_EXTENSIONS_SUPPORT is defined to 0, and
|
||||
ZEND_EXTENSIONS_SUPPORT is not defined when HAVE_LIBDL is not defined
|
||||
(Zend/zend_portability.h).
|
||||
|
||||
Fixes the following build failure when building on a system that
|
||||
doesn't have libdl:
|
||||
|
||||
main/php_ini.o: In function `php_load_zend_extension_cb':
|
||||
php_ini.c:(.text+0x478): undefined reference to `php_load_shlib'
|
||||
php_ini.c:(.text+0x4b0): undefined reference to `php_load_shlib'
|
||||
collect2: error: ld returned 1 exit status
|
||||
|
||||
Upstream-Status: Backport [http://git.php.net/?p=php-src.git;a=commit;h=2842aa2a078eb1cad55540b61e7edf111395150d]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
||||
---
|
||||
main/php_ini.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/main/php_ini.c b/main/php_ini.c
|
||||
index ba58eb1..fca263e 100644
|
||||
--- a/main/php_ini.c
|
||||
+++ b/main/php_ini.c
|
||||
@@ -350,6 +350,7 @@ static void php_load_php_extension_cb(void *arg)
|
||||
|
||||
/* {{{ php_load_zend_extension_cb
|
||||
*/
|
||||
+#ifdef HAVE_LIBDL
|
||||
static void php_load_zend_extension_cb(void *arg)
|
||||
{
|
||||
char *filename = *((char **) arg);
|
||||
@@ -409,6 +410,9 @@ static void php_load_zend_extension_cb(void *arg)
|
||||
efree(libpath);
|
||||
}
|
||||
}
|
||||
+#else
|
||||
+static void php_load_zend_extension_cb(void *arg) { }
|
||||
+#endif
|
||||
/* }}} */
|
||||
|
||||
/* {{{ php_init_config
|
||||
--
|
||||
2.7.4
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,56 +0,0 @@
|
||||
From b04cd19b76374ebce8f3326275bdfd7e9b9aeab5 Mon Sep 17 00:00:00 2001
|
||||
From: Li Zhou <li.zhou@windriver.com>
|
||||
Date: Sun, 11 Feb 2018 15:03:21 +0800
|
||||
Subject: [PATCH] Fixed bug #75571: Potential infinite loop in
|
||||
gdImageCreateFromGifCtx
|
||||
|
||||
Due to a signedness confusion in `GetCode_` a corrupt GIF file can
|
||||
trigger an infinite loop. Furthermore we make sure that a GIF without
|
||||
any palette entries is treated as invalid *after* open palette entries
|
||||
have been removed.
|
||||
|
||||
Upstream-Status: Backport
|
||||
CVE: CVE-2018-5711
|
||||
Signed-off-by: Li Zhou <li.zhou@windriver.com>
|
||||
---
|
||||
ext/gd/libgd/gd_gif_in.c | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/ext/gd/libgd/gd_gif_in.c b/ext/gd/libgd/gd_gif_in.c
|
||||
index 76ba152..7156e4b 100644
|
||||
--- a/ext/gd/libgd/gd_gif_in.c
|
||||
+++ b/ext/gd/libgd/gd_gif_in.c
|
||||
@@ -261,10 +261,6 @@ terminated:
|
||||
if (!im) {
|
||||
return 0;
|
||||
}
|
||||
- if (!im->colorsTotal) {
|
||||
- gdImageDestroy(im);
|
||||
- return 0;
|
||||
- }
|
||||
/* Check for open colors at the end, so
|
||||
we can reduce colorsTotal and ultimately
|
||||
BitsPerPixel */
|
||||
@@ -275,6 +271,10 @@ terminated:
|
||||
break;
|
||||
}
|
||||
}
|
||||
+ if (!im->colorsTotal) {
|
||||
+ gdImageDestroy(im);
|
||||
+ return 0;
|
||||
+ }
|
||||
return im;
|
||||
}
|
||||
/* }}} */
|
||||
@@ -375,7 +375,7 @@ static int
|
||||
GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP)
|
||||
{
|
||||
int i, j, ret;
|
||||
- unsigned char count;
|
||||
+ int count;
|
||||
|
||||
if (flag) {
|
||||
scd->curbit = 0;
|
||||
--
|
||||
1.9.1
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
[PATCH] config.m4: change AC_TRY_RUN to AC_TRY_LINK
|
||||
From 3bfcc7fdd22261eaed10949714de0a90d31e10ab Mon Sep 17 00:00:00 2001
|
||||
From: Roy Li <rongqing.li@windriver.com>
|
||||
Date: Thu, 20 Aug 2015 16:29:35 +0800
|
||||
Subject: [PATCH] [PATCH] config.m4: change AC_TRY_RUN to AC_TRY_LINK
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
AC_TRY_RUN is not suitable for cross-compile
|
||||
|
||||
Signed-off-by: Roy Li <rongqing.li@windriver.com>
|
||||
|
||||
%% original patch: change-AC_TRY_RUN-to-AC_TRY_LINK.patch
|
||||
---
|
||||
ext/fileinfo/config.m4 | 31 ++++++-------------------------
|
||||
1 file changed, 6 insertions(+), 25 deletions(-)
|
||||
|
||||
diff --git a/ext/fileinfo/config.m4 b/ext/fileinfo/config.m4
|
||||
index 7e98d62..8a8ea0e 100644
|
||||
index 523b4fd..0aaa4c8 100644
|
||||
--- a/ext/fileinfo/config.m4
|
||||
+++ b/ext/fileinfo/config.m4
|
||||
@@ -14,31 +14,12 @@ if test "$PHP_FILEINFO" != "no"; then
|
||||
libmagic/readcdf.c libmagic/softmagic.c"
|
||||
libmagic/readcdf.c libmagic/softmagic.c libmagic/der.c"
|
||||
|
||||
AC_MSG_CHECKING([for strcasestr])
|
||||
- AC_TRY_RUN([
|
||||
@@ -52,5 +57,5 @@ index 7e98d62..8a8ea0e 100644
|
||||
dnl using the platform implementation
|
||||
AC_MSG_RESULT(yes)
|
||||
--
|
||||
1.9.1
|
||||
2.7.4
|
||||
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
--- php-5.1.6/configure.old 2006-09-12 07:54:14.000000000 -0700
|
||||
+++ php-5.1.6/configure 2006-09-12 07:54:37.000000000 -0700
|
||||
@@ -14715,8 +14715,6 @@
|
||||
From 617d01ef2ac2f436cd8e06555b608db56079b851 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Eggleton <paul.eggleton@linux.intel.com>
|
||||
Date: Tue, 17 Jul 2012 11:31:54 +0100
|
||||
|
||||
---
|
||||
configure | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 1f1ef32..392fb76 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -11642,8 +11642,6 @@ $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
|
||||
|
||||
|
||||
|
||||
- unset ac_cv_func_dlopen
|
||||
- unset ac_cv_func___dlopen
|
||||
unset found
|
||||
|
||||
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
|
||||
|
||||
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
Upstream-status: Unknown
|
||||
From 17cc5645f3acf943a5a06465d09d0ebcfea987bd Mon Sep 17 00:00:00 2001
|
||||
From: Koen Kooi <koen@dominion.thruhere.net>
|
||||
Date: Wed, 2 Nov 2011 16:54:57 +0100
|
||||
Subject: [PATCH] Upstream-status: Unknown
|
||||
|
||||
---
|
||||
acinclude.m4 | 3 ++-
|
||||
ext/iconv/config.m4 | 2 +-
|
||||
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index a6c0d84..df11abd 100644
|
||||
index d32766a..ad5166e 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -2452,7 +2452,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
||||
@@ -2445,7 +2445,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
||||
dnl Check libc first if no path is provided in --with-iconv
|
||||
dnl
|
||||
|
||||
@@ -15,7 +23,7 @@ index a6c0d84..df11abd 100644
|
||||
dnl -liconv in.
|
||||
LIBS_save="$LIBS"
|
||||
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4
|
||||
index d673b0a..1fbef13 100644
|
||||
index 6a05697..973e750 100644
|
||||
--- a/ext/iconv/config.m4
|
||||
+++ b/ext/iconv/config.m4
|
||||
@@ -15,7 +15,7 @@ if test "$PHP_ICONV" != "no"; then
|
||||
@@ -27,6 +35,3 @@ index d673b0a..1fbef13 100644
|
||||
if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
|
||||
PHP_ICONV_PREFIX="$i"
|
||||
break
|
||||
--
|
||||
1.9.3
|
||||
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
Upstream-status: Unknown
|
||||
From c084c8349d1780980e232cb28b60a109e3d89438 Mon Sep 17 00:00:00 2001
|
||||
From: Koen Kooi <koen@dominion.thruhere.net>
|
||||
Date: Wed, 2 Nov 2011 16:54:57 +0100
|
||||
Subject: [PATCH] Upstream-status: Unknown
|
||||
|
||||
---
|
||||
acinclude.m4 | 2 +-
|
||||
ext/imap/config.m4 | 10 ++--------
|
||||
2 files changed, 3 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index df11abd..06e7236 100644
|
||||
index ad5166e..f6a55ec 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -2357,7 +2357,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
|
||||
@@ -2350,7 +2350,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
|
||||
PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
|
||||
fi
|
||||
|
||||
@@ -14,7 +22,7 @@ index df11abd..06e7236 100644
|
||||
OPENSSL_INCDIR=$i/include
|
||||
fi
|
||||
diff --git a/ext/imap/config.m4 b/ext/imap/config.m4
|
||||
index 3fcf674..f08caf7 100644
|
||||
index badb6e2..8ff803c 100644
|
||||
--- a/ext/imap/config.m4
|
||||
+++ b/ext/imap/config.m4
|
||||
@@ -109,7 +109,7 @@ if test "$PHP_IMAP" != "no"; then
|
||||
@@ -41,6 +49,3 @@ index 3fcf674..f08caf7 100644
|
||||
IMAP_LIB=$lib
|
||||
IMAP_LIB_CHK($PHP_LIBDIR)
|
||||
IMAP_LIB_CHK(c-client)
|
||||
--
|
||||
1.9.3
|
||||
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
Upstream-status: Unknown
|
||||
From edd575a546d56bb5683aff19782b16963d61fd0b Mon Sep 17 00:00:00 2001
|
||||
From: Koen Kooi <koen@dominion.thruhere.net>
|
||||
Date: Wed, 2 Nov 2011 16:54:57 +0100
|
||||
Subject: [PATCH] Upstream-status: Unknown
|
||||
|
||||
---
|
||||
pear/Makefile.frag | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pear/Makefile.frag b/pear/Makefile.frag
|
||||
index 00bacae..739eeca 100644
|
||||
index bbe8ec3..16f43e2 100644
|
||||
--- a/pear/Makefile.frag
|
||||
+++ b/pear/Makefile.frag
|
||||
@@ -11,7 +11,7 @@ PEAR_PREFIX = -dp a${program_prefix}
|
||||
PEAR_SUFFIX = -ds a$(program_suffix)
|
||||
@@ -12,7 +12,7 @@ PEAR_SUFFIX = -ds a$(program_suffix)
|
||||
PEAR_INSTALLER_URL = https://pear.php.net/install-pear-nozlib.phar
|
||||
|
||||
install-pear-installer: $(SAPI_CLI_PATH)
|
||||
- @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX}
|
||||
@@ -13,6 +20,3 @@ index 00bacae..739eeca 100644
|
||||
|
||||
install-pear:
|
||||
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
|
||||
--
|
||||
1.9.3
|
||||
|
||||
|
||||
@@ -1,17 +1,24 @@
|
||||
Fix phar packaging
|
||||
From 08962a56f69963e01892d98ca5b75de8354bd3f5 Mon Sep 17 00:00:00 2001
|
||||
From: Koen Kooi <koen@dominion.thruhere.net>
|
||||
Date: Wed, 2 Nov 2011 16:54:57 +0100
|
||||
Subject: [PATCH] Fix phar packaging
|
||||
|
||||
Inherited from OE-Classic, with some additions to fix host paths leaking
|
||||
into the target package.
|
||||
|
||||
Upstream-Status: Inappropriate [config]
|
||||
|
||||
---
|
||||
ext/phar/Makefile.frag | 17 +++--------------
|
||||
1 file changed, 3 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag
|
||||
index 6516ddf..36e6cf4 100644
|
||||
index 0e3713f..22f7898 100644
|
||||
--- a/ext/phar/Makefile.frag
|
||||
+++ b/ext/phar/Makefile.frag
|
||||
@@ -5,20 +5,9 @@ pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
|
||||
@@ -10,20 +10,9 @@ pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
|
||||
|
||||
PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0'
|
||||
PHP_PHARCMD_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0'
|
||||
PHP_PHARCMD_EXECUTABLE = ` \
|
||||
- if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \
|
||||
- $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \
|
||||
|
||||
@@ -1,10 +1,17 @@
|
||||
Upstream-status: Inappriate
|
||||
From d251b5aa3d23803d016ca16818e2e1d2f2b70a02 Mon Sep 17 00:00:00 2001
|
||||
From: Koen Kooi <koen@dominion.thruhere.net>
|
||||
Date: Wed, 2 Nov 2011 16:54:57 +0100
|
||||
Subject: [PATCH] Upstream-status: Inappriate
|
||||
|
||||
---
|
||||
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 cdfa1f7..0fe11e3 100644
|
||||
index 2168151..20a81db 100644
|
||||
--- a/sapi/cli/config.m4
|
||||
+++ b/sapi/cli/config.m4
|
||||
@@ -36,7 +36,7 @@ if test "$PHP_CLI" != "no"; then
|
||||
@@ -50,7 +50,7 @@ if test "$PHP_CLI" != "no"; then
|
||||
esac
|
||||
|
||||
dnl Set executable for tests
|
||||
@@ -13,6 +20,3 @@ index cdfa1f7..0fe11e3 100644
|
||||
PHP_SUBST(PHP_EXECUTABLE)
|
||||
|
||||
dnl Expose to Makefile
|
||||
--
|
||||
1.9.3
|
||||
|
||||
|
||||
@@ -5,6 +5,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b602636d46a61c0ac0432bbf5c078fe4"
|
||||
SRC_URI += "file://change-AC_TRY_RUN-to-AC_TRY_LINK.patch \
|
||||
file://pthread-check-threads-m4.patch \
|
||||
file://0001-Add-lpthread-to-link.patch \
|
||||
"
|
||||
file://acinclude-xml2-config.patch \
|
||||
file://0001-acinclude-use-pkgconfig-for-libxml2-config.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "1ba84d9881521065f6398e665786f9e2"
|
||||
SRC_URI[sha256sum] = "07f696a9761dcd839e2045c95c3a4d2ffb52c54417477cca9d30a14975b831cc"
|
||||
|
||||
DEPENDS += "libmcrypt"
|
||||
EXTRA_OECONF += "--with-mcrypt=${STAGING_DIR_TARGET}${exec_prefix} \
|
||||
"
|
||||
|
||||
+6
-6
@@ -1,14 +1,14 @@
|
||||
require php.inc
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c0af599f66d0461c5837c695fcbc5c1e"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=67e369bc8d1f2e641236b8002039a6a2"
|
||||
|
||||
SRC_URI += "file://change-AC_TRY_RUN-to-AC_TRY_LINK.patch \
|
||||
file://0001-Specify-tag-with-libtool.patch \
|
||||
file://CVE-2017-16642.patch \
|
||||
file://CVE-2018-5711.patch \
|
||||
file://0001-acinclude.m4-skip-binconfig-check-for-libxml.patch \
|
||||
file://0001-main-php_ini.c-build-empty-php_load_zend_extension_c.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "2397be54f3281cdf30c7ef076b28f7d0"
|
||||
SRC_URI[sha256sum] = "314dcc10dfdd7c4443edb4fe1e133a44f2b2a8351be8c9eb6ab9222d45fd9bae"
|
||||
|
||||
SRC_URI[md5sum] = "864c64ffd2f1686b035ef8ce6a6d8478"
|
||||
SRC_URI[sha256sum] = "11658a0d764dc94023b9fb60d4b5eb75d438ad17981efe70abb0d0d09a447ef3"
|
||||
|
||||
PACKAGECONFIG[mysql] = "--with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \
|
||||
--with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \
|
||||
Reference in New Issue
Block a user