diff options
author | Changqing Li <changqing.li@windriver.com> | 2020-04-24 08:57:11 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-04-27 07:48:47 -0700 |
commit | 7cc7a9ec88f43a818cb5daf9ca27ab9140268934 (patch) | |
tree | 3c2f57051e7fb868580e125b364cc5f457ae8649 /meta-oe | |
parent | 30f1da6f267f3b8c04cd8fd03a55f6c74a30985b (diff) | |
download | meta-openembedded-7cc7a9ec88f43a818cb5daf9ca27ab9140268934.tar.gz |
php: upgrade 7.3.16 -> 7.4.4
License-Update: License updated (year updated)
note: for 7.4, pear is disabled by default,
and it will be deprecated in future.
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
12 files changed, 132 insertions, 498 deletions
diff --git a/meta-oe/recipes-devtools/php/php/0001-Use-pkg-config-for-libxml2-detection.patch b/meta-oe/recipes-devtools/php/php/0001-Use-pkg-config-for-libxml2-detection.patch deleted file mode 100644 index ccc6d4ede..000000000 --- a/meta-oe/recipes-devtools/php/php/0001-Use-pkg-config-for-libxml2-detection.patch +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | Use pkg-config for libxml2 detection. | ||
2 | |||
3 | xml2-config does not work. Use pkgconfig to set CPPFLAGS and LIBS. | ||
4 | |||
5 | Upstream-Status: Inappropriate [configuration] | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | configure.in | 15 ++------------- | ||
10 | 1 file changed, 2 insertions(+), 13 deletions(-) | ||
11 | --- a/acinclude.m4 | ||
12 | +++ b/acinclude.m4 | ||
13 | @@ -2481,8 +2481,8 @@ AC_DEFUN([PHP_SETUP_LIBXML], [ | ||
14 | LIBXML_VERSION=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3` | ||
15 | if test "$LIBXML_VERSION" -ge "2006011"; then | ||
16 | found_libxml=yes | ||
17 | - LIBXML_LIBS=`$XML2_CONFIG --libs` | ||
18 | - LIBXML_INCS=`$XML2_CONFIG --cflags` | ||
19 | + LIBXML_LIBS=`pkg-config --libs libxml-2.0` | ||
20 | + LIBXML_INCS=`pkg-config --cflags libxml-2.0` | ||
21 | else | ||
22 | AC_MSG_ERROR([libxml2 version 2.6.11 or greater required.]) | ||
23 | fi | ||
diff --git a/meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch b/meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch new file mode 100644 index 000000000..2861366a6 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From f5a34e771532b8433f307b679500c26af328ba35 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Fri, 17 Apr 2020 15:01:57 +0800 | ||
4 | Subject: [PATCH] configure.ac: don't include build/libtool.m4 | ||
5 | |||
6 | we delete build/libtool.m4 before do_configure, | ||
7 | we will use libtool.m4 under ACLOCALDIR | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe-specific] | ||
10 | |||
11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
12 | --- | ||
13 | configure.ac | 1 - | ||
14 | 1 file changed, 1 deletion(-) | ||
15 | |||
16 | diff --git a/configure.ac b/configure.ac | ||
17 | index 06c6a27..f85144e 100644 | ||
18 | --- a/configure.ac | ||
19 | +++ b/configure.ac | ||
20 | @@ -6,7 +6,6 @@ dnl ---------------------------------------------------------------------------- | ||
21 | m4_include([build/ax_check_compile_flag.m4]) | ||
22 | m4_include([build/ax_func_which_gethostbyname_r.m4]) | ||
23 | m4_include([build/ax_gcc_func_attribute.m4]) | ||
24 | -m4_include([build/libtool.m4]) | ||
25 | m4_include([build/php_cxx_compile_stdcxx.m4]) | ||
26 | m4_include([build/php.m4]) | ||
27 | m4_include([build/pkg.m4]) | ||
28 | -- | ||
29 | 2.7.4 | ||
30 | |||
diff --git a/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch b/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch index 34f433f40..ee0d5edcd 100644 --- a/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch +++ b/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch | |||
@@ -1,30 +1,27 @@ | |||
1 | From 8de5ba69d20d049b8ca983a9470c7303142ec0b3 Mon Sep 17 00:00:00 2001 | 1 | opcache/config.m4: enable opcache |
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Sun, 28 Apr 2019 16:55:13 +0800 | ||
4 | Subject: [PATCH] From fb139d9707dabe1684b472a08a6eb5761ede4a3a Mon Sep 17 | ||
5 | 00:00:00 2001 From: Changqing Li <changqing.li@windriver.com> Date: Tue, 12 | ||
6 | Feb 2019 14:56:16 +0800 Subject: [PATCH] opcache/config.m4: enable opcache | ||
7 | 2 | ||
8 | We can't use AC_TRY_RUN to run programs in a cross compile environment. Set | 3 | We can't use AC_TRY_RUN to run programs in a cross compile environment. |
9 | the variables directly instead since we know that we'd be running on latest | 4 | Set |
5 | the variables directly instead since we know that we'd be running on | ||
6 | latest | ||
10 | enough linux kernel. | 7 | enough linux kernel. |
11 | 8 | ||
12 | Upstream-Status: Inappropriate [Configuration] | 9 | Upstream-Status: Inappropriate [Configuration] |
13 | 10 | ||
14 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | 11 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> |
15 | 12 | ||
16 | update patch to version 7.3.4 | 13 | update patch to version 7.4.4 |
17 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 14 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
18 | --- | 15 | --- |
19 | ext/opcache/config.m4 | 312 +------------------------------------------------- | 16 | ext/opcache/config.m4 | 194 +------------------------------------------------- |
20 | 1 file changed, 6 insertions(+), 306 deletions(-) | 17 | 1 file changed, 3 insertions(+), 191 deletions(-) |
21 | 18 | ||
22 | diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 | 19 | diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 |
23 | index 4810217..22c3d61 100644 | 20 | index 6c40caf..84ddf1e 100644 |
24 | --- a/ext/opcache/config.m4 | 21 | --- a/ext/opcache/config.m4 |
25 | +++ b/ext/opcache/config.m4 | 22 | +++ b/ext/opcache/config.m4 |
26 | @@ -27,319 +27,19 @@ if test "$PHP_OPCACHE" != "no"; then | 23 | @@ -23,201 +23,13 @@ if test "$PHP_OPCACHE" != "no"; then |
27 | AC_CHECK_HEADERS([unistd.h sys/uio.h]) | 24 | AC_CHECK_FUNCS([mprotect]) |
28 | 25 | ||
29 | AC_MSG_CHECKING(for sysvipc shared memory support) | 26 | AC_MSG_CHECKING(for sysvipc shared memory support) |
30 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ | 27 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
@@ -95,9 +92,8 @@ index 4810217..22c3d61 100644 | |||
95 | - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) | 92 | - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) |
96 | - msg=yes],[msg=no],[msg=no]) | 93 | - msg=yes],[msg=no],[msg=no]) |
97 | - AC_MSG_RESULT([$msg]) | 94 | - AC_MSG_RESULT([$msg]) |
98 | - | ||
99 | + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) | 95 | + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) |
100 | + | 96 | |
101 | AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support) | 97 | AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support) |
102 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ | 98 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
103 | -#include <sys/types.h> | 99 | -#include <sys/types.h> |
@@ -114,7 +110,8 @@ index 4810217..22c3d61 100644 | |||
114 | -#ifndef MAP_FAILED | 110 | -#ifndef MAP_FAILED |
115 | -# define MAP_FAILED ((void*)-1) | 111 | -# define MAP_FAILED ((void*)-1) |
116 | -#endif | 112 | -#endif |
117 | - | 113 | + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) |
114 | |||
118 | -int main() { | 115 | -int main() { |
119 | - pid_t pid; | 116 | - pid_t pid; |
120 | - int status; | 117 | - int status; |
@@ -149,64 +146,8 @@ index 4810217..22c3d61 100644 | |||
149 | - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) | 146 | - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) |
150 | - msg=yes],[msg=no],[msg=no]) | 147 | - msg=yes],[msg=no],[msg=no]) |
151 | - AC_MSG_RESULT([$msg]) | 148 | - AC_MSG_RESULT([$msg]) |
152 | + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) | ||
153 | |||
154 | AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support) | ||
155 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
156 | -#include <sys/types.h> | ||
157 | -#include <sys/wait.h> | ||
158 | -#include <sys/mman.h> | ||
159 | -#include <sys/stat.h> | ||
160 | -#include <fcntl.h> | ||
161 | -#include <unistd.h> | ||
162 | -#include <string.h> | ||
163 | - | ||
164 | -#ifndef MAP_FAILED | ||
165 | -# define MAP_FAILED ((void*)-1) | ||
166 | -#endif | ||
167 | - | ||
168 | -int main() { | ||
169 | - pid_t pid; | ||
170 | - int status; | ||
171 | - int fd; | ||
172 | - char *shm; | ||
173 | - | ||
174 | - fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR); | ||
175 | - if (fd == -1) { | ||
176 | - return 1; | ||
177 | - } | ||
178 | - | ||
179 | - shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); | ||
180 | - if (shm == MAP_FAILED) { | ||
181 | - return 2; | ||
182 | - } | ||
183 | - | ||
184 | - strcpy(shm, "hello"); | ||
185 | - | 149 | - |
186 | - pid = fork(); | 150 | - PHP_CHECK_FUNC_LIB(shm_open, rt) |
187 | - if (pid < 0) { | ||
188 | - return 5; | ||
189 | - } else if (pid == 0) { | ||
190 | - strcpy(shm, "bye"); | ||
191 | - return 6; | ||
192 | - } | ||
193 | - if (wait(&status) != pid) { | ||
194 | - return 7; | ||
195 | - } | ||
196 | - if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { | ||
197 | - return 8; | ||
198 | - } | ||
199 | - if (strcmp(shm, "bye") != 0) { | ||
200 | - return 9; | ||
201 | - } | ||
202 | - return 0; | ||
203 | -} | ||
204 | -]])],[dnl | ||
205 | - AC_DEFINE(HAVE_SHM_MMAP_ZERO, 1, [Define if you have mmap("/dev/zero") SHM support]) | ||
206 | - msg=yes],[msg=no],[msg=no]) | ||
207 | - AC_MSG_RESULT([$msg]) | ||
208 | + AC_DEFINE(HAVE_SHM_MMAP_ZERO, 1, [Define if you have mmap("/dev/zero") SHM support]) | ||
209 | |||
210 | AC_MSG_CHECKING(for mmap() using shm_open() shared memory support) | 151 | AC_MSG_CHECKING(for mmap() using shm_open() shared memory support) |
211 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ | 152 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
212 | -#include <sys/types.h> | 153 | -#include <sys/types.h> |
@@ -230,7 +171,7 @@ index 4810217..22c3d61 100644 | |||
230 | - char *shm; | 171 | - char *shm; |
231 | - char tmpname[4096]; | 172 | - char tmpname[4096]; |
232 | - | 173 | - |
233 | - sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); | 174 | - sprintf(tmpname,"/opcache.test.shm.%dXXXXXX", getpid()); |
234 | - if (mktemp(tmpname) == NULL) { | 175 | - if (mktemp(tmpname) == NULL) { |
235 | - return 1; | 176 | - return 1; |
236 | - } | 177 | - } |
@@ -273,80 +214,15 @@ index 4810217..22c3d61 100644 | |||
273 | -} | 214 | -} |
274 | -]])],[dnl | 215 | -]])],[dnl |
275 | - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) | 216 | - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) |
276 | - msg=yes],[msg=no],[msg=no]) | 217 | - AC_MSG_RESULT([yes]) |
277 | - AC_MSG_RESULT([$msg]) | 218 | - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) |
219 | - ],[ | ||
220 | - AC_MSG_RESULT([no]) | ||
221 | - ],[ | ||
222 | - AC_MSG_RESULT([no]) | ||
223 | - ]) | ||
278 | + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) | 224 | + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) |
279 | 225 | ||
280 | AC_MSG_CHECKING(for mmap() using regular file shared memory support) | ||
281 | - AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
282 | -#include <sys/types.h> | ||
283 | -#include <sys/wait.h> | ||
284 | -#include <sys/mman.h> | ||
285 | -#include <sys/stat.h> | ||
286 | -#include <fcntl.h> | ||
287 | -#include <unistd.h> | ||
288 | -#include <string.h> | ||
289 | -#include <stdlib.h> | ||
290 | -#include <stdio.h> | ||
291 | - | ||
292 | -#ifndef MAP_FAILED | ||
293 | -# define MAP_FAILED ((void*)-1) | ||
294 | -#endif | ||
295 | - | ||
296 | -int main() { | ||
297 | - pid_t pid; | ||
298 | - int status; | ||
299 | - int fd; | ||
300 | - char *shm; | ||
301 | - char tmpname[4096]; | ||
302 | - | ||
303 | - sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); | ||
304 | - if (mktemp(tmpname) == NULL) { | ||
305 | - return 1; | ||
306 | - } | ||
307 | - fd = open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
308 | - if (fd == -1) { | ||
309 | - return 2; | ||
310 | - } | ||
311 | - if (ftruncate(fd, 4096) < 0) { | ||
312 | - close(fd); | ||
313 | - unlink(tmpname); | ||
314 | - return 3; | ||
315 | - } | ||
316 | - | ||
317 | - shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); | ||
318 | - if (shm == MAP_FAILED) { | ||
319 | - return 4; | ||
320 | - } | ||
321 | - unlink(tmpname); | ||
322 | - close(fd); | ||
323 | - | ||
324 | - strcpy(shm, "hello"); | ||
325 | - | ||
326 | - pid = fork(); | ||
327 | - if (pid < 0) { | ||
328 | - return 5; | ||
329 | - } else if (pid == 0) { | ||
330 | - strcpy(shm, "bye"); | ||
331 | - return 6; | ||
332 | - } | ||
333 | - if (wait(&status) != pid) { | ||
334 | - return 7; | ||
335 | - } | ||
336 | - if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { | ||
337 | - return 8; | ||
338 | - } | ||
339 | - if (strcmp(shm, "bye") != 0) { | ||
340 | - return 9; | ||
341 | - } | ||
342 | - return 0; | ||
343 | -} | ||
344 | -]])],[dnl | ||
345 | - AC_DEFINE(HAVE_SHM_MMAP_FILE, 1, [Define if you have mmap() SHM support]) | ||
346 | - msg=yes],[msg=no],[msg=no]) | ||
347 | - AC_MSG_RESULT([$msg]) | ||
348 | + AC_DEFINE(HAVE_SHM_MMAP_FILE, 1, [Define if you have mmap() SHM support]) | ||
349 | |||
350 | PHP_NEW_EXTENSION(opcache, | 226 | PHP_NEW_EXTENSION(opcache, |
351 | ZendAccelerator.c \ | 227 | ZendAccelerator.c \ |
352 | -- | 228 | -- |
diff --git a/meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch b/meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch index 2f7d58155..d68737366 100644 --- a/meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch +++ b/meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch | |||
@@ -4,17 +4,20 @@ Date: Thu, 3 Nov 2011 14:27:15 +0100 | |||
4 | Subject: [PATCH 2/8] php: don't use broken wrapper for mkdir | 4 | Subject: [PATCH 2/8] php: don't use broken wrapper for mkdir |
5 | 5 | ||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | 6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> |
7 | |||
8 | update patch to version 7.4.4 | ||
9 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
7 | --- | 10 | --- |
8 | 11 | ||
9 | Upstream-Status: Inappropriate | 12 | Upstream-Status: Inappropriate |
10 | 13 | ||
11 | Makefile.global | 2 +- | 14 | build/Makefile.global | 2 +- |
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
13 | 16 | ||
14 | diff --git a/Makefile.global b/Makefile.global | 17 | diff --git a/build/Makefile.global b/build/Makefile.global |
15 | index ff858c2..ae554b4 100644 | 18 | index ff858c2..ae554b4 100644 |
16 | --- a/Makefile.global | 19 | --- a/build/Makefile.global |
17 | +++ b/Makefile.global | 20 | +++ b/build/Makefile.global |
18 | @@ -1,4 +1,4 @@ | 21 | @@ -1,4 +1,4 @@ |
19 | -mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p | 22 | -mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p |
20 | +mkinstalldirs = mkdir -p | 23 | +mkinstalldirs = mkdir -p |
diff --git a/meta-oe/recipes-devtools/php/php/0001-acinclude.m4-don-t-unset-cache-variables.patch b/meta-oe/recipes-devtools/php/php/0001-php.m4-don-t-unset-cache-variables.patch index 51dbe269c..0d721ec50 100644 --- a/meta-oe/recipes-devtools/php/php/0001-acinclude.m4-don-t-unset-cache-variables.patch +++ b/meta-oe/recipes-devtools/php/php/0001-php.m4-don-t-unset-cache-variables.patch | |||
@@ -1,7 +1,4 @@ | |||
1 | From d2679c89c0b15b90e5360b4863258a7955e5f4e5 Mon Sep 17 00:00:00 2001 | 1 | php.m4: don't unset cache variables |
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Tue, 12 Feb 2019 15:59:19 +0800 | ||
4 | Subject: [PATCH] acinclude.m4: don't unset cache variables | ||
5 | 2 | ||
6 | Unsetting prevents cache variable from being passed to configure. | 3 | Unsetting prevents cache variable from being passed to configure. |
7 | 4 | ||
@@ -9,17 +6,17 @@ Upstream-Status: Inappropriate [OE-specific] | |||
9 | 6 | ||
10 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | 7 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> |
11 | 8 | ||
12 | update patch to version 7.3.2 | 9 | update this patch to 7.4.4, acinclude.m4 move to build/php.m4 |
13 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 10 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
14 | --- | 11 | --- |
15 | acinclude.m4 | 4 ---- | 12 | build/php.m4 | 4 ---- |
16 | 1 file changed, 4 deletions(-) | 13 | 1 file changed, 4 deletions(-) |
17 | 14 | ||
18 | diff --git a/acinclude.m4 b/acinclude.m4 | 15 | diff --git a/build/php.m4 b/build/php.m4 |
19 | index 25f900d..2641969 100644 | 16 | index 5c45d13..218ec47 100644 |
20 | --- a/acinclude.m4 | 17 | --- a/build/php.m4 |
21 | +++ b/acinclude.m4 | 18 | +++ b/build/php.m4 |
22 | @@ -1921,8 +1921,6 @@ define([phpshift],[ifelse(index([$@],[,]),-1,,[substr([$@],incr(index([$@],[,])) | 19 | @@ -1587,8 +1587,6 @@ dnl PHP_CHECK_FUNC_LIB |
23 | dnl | 20 | dnl |
24 | AC_DEFUN([PHP_CHECK_FUNC_LIB],[ | 21 | AC_DEFUN([PHP_CHECK_FUNC_LIB],[ |
25 | ifelse($2,,:,[ | 22 | ifelse($2,,:,[ |
@@ -28,8 +25,8 @@ index 25f900d..2641969 100644 | |||
28 | unset found | 25 | unset found |
29 | AC_CHECK_LIB($2, $1, [found=yes], [ | 26 | AC_CHECK_LIB($2, $1, [found=yes], [ |
30 | AC_CHECK_LIB($2, __$1, [found=yes], [found=no]) | 27 | AC_CHECK_LIB($2, __$1, [found=yes], [found=no]) |
31 | @@ -1954,8 +1952,6 @@ dnl in the default libraries and as a fall back in the specified library. | 28 | @@ -1620,8 +1618,6 @@ dnl and as a fall back in the specified library. Defines HAVE_func and |
32 | dnl Defines HAVE_func and HAVE_library if found and adds the library to LIBS. | 29 | dnl HAVE_library if found and adds the library to LIBS. |
33 | dnl | 30 | dnl |
34 | AC_DEFUN([PHP_CHECK_FUNC],[ | 31 | AC_DEFUN([PHP_CHECK_FUNC],[ |
35 | - unset ac_cv_func_$1 | 32 | - unset ac_cv_func_$1 |
diff --git a/meta-oe/recipes-devtools/php/php/0048-Use-pkg-config-for-FreeType2-detection.patch b/meta-oe/recipes-devtools/php/php/0048-Use-pkg-config-for-FreeType2-detection.patch deleted file mode 100644 index f36ddac26..000000000 --- a/meta-oe/recipes-devtools/php/php/0048-Use-pkg-config-for-FreeType2-detection.patch +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= <ondrej@sury.org> | ||
2 | Date: Mon, 22 Oct 2018 06:54:31 +0000 | ||
3 | Subject: Use pkg-config for FreeType2 detection | ||
4 | |||
5 | --- | ||
6 | ext/gd/config.m4 | 30 +++++++++++++++++++----------- | ||
7 | 1 file changed, 19 insertions(+), 11 deletions(-) | ||
8 | |||
9 | diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 | ||
10 | index 498d870..d28c6ae 100644 | ||
11 | --- a/ext/gd/config.m4 | ||
12 | +++ b/ext/gd/config.m4 | ||
13 | @@ -184,21 +184,29 @@ AC_DEFUN([PHP_GD_XPM],[ | ||
14 | AC_DEFUN([PHP_GD_FREETYPE2],[ | ||
15 | if test "$PHP_FREETYPE_DIR" != "no"; then | ||
16 | |||
17 | - for i in $PHP_FREETYPE_DIR /usr/local /usr; do | ||
18 | - if test -f "$i/bin/freetype-config"; then | ||
19 | - FREETYPE2_DIR=$i | ||
20 | - FREETYPE2_CONFIG="$i/bin/freetype-config" | ||
21 | - break | ||
22 | + if test -z "$PKG_CONFIG"; then | ||
23 | + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
24 | + fi | ||
25 | + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists freetype2 ; then | ||
26 | + FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags freetype2` | ||
27 | + FREETYPE2_LIBS=`$PKG_CONFIG --libs freetype2` | ||
28 | + else | ||
29 | + for i in $PHP_FREETYPE_DIR /usr/local /usr; do | ||
30 | + if test -f "$i/bin/freetype-config"; then | ||
31 | + FREETYPE2_DIR=$i | ||
32 | + FREETYPE2_CONFIG="$i/bin/freetype-config" | ||
33 | + break | ||
34 | + fi | ||
35 | + done | ||
36 | + | ||
37 | + if test -z "$FREETYPE2_DIR"; then | ||
38 | + AC_MSG_ERROR([freetype-config not found.]) | ||
39 | fi | ||
40 | - done | ||
41 | |||
42 | - if test -z "$FREETYPE2_DIR"; then | ||
43 | - AC_MSG_ERROR([freetype-config not found.]) | ||
44 | + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` | ||
45 | + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` | ||
46 | fi | ||
47 | |||
48 | - FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` | ||
49 | - FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` | ||
50 | - | ||
51 | PHP_EVAL_INCLINE($FREETYPE2_CFLAGS) | ||
52 | PHP_EVAL_LIBLINE($FREETYPE2_LIBS, GD_SHARED_LIBADD) | ||
53 | AC_DEFINE(HAVE_LIBFREETYPE,1,[ ]) | ||
diff --git a/meta-oe/recipes-devtools/php/php/CVE-2019-6978.patch b/meta-oe/recipes-devtools/php/php/CVE-2019-6978.patch deleted file mode 100644 index b7cdfd964..000000000 --- a/meta-oe/recipes-devtools/php/php/CVE-2019-6978.patch +++ /dev/null | |||
@@ -1,192 +0,0 @@ | |||
1 | From 089f7c0bc28d399b0420aa6ef058e4c1c120b2ae Mon Sep 17 00:00:00 2001 | ||
2 | From: "Christoph M. Becker" <cmbecker69@gmx.de> | ||
3 | Date: Sat, 19 Jan 2019 10:35:39 +0100 | ||
4 | Subject: [PATCH] Sync with upstream | ||
5 | |||
6 | Even though libgd/libgd#492 is not a relevant bug fix for PHP, since | ||
7 | the binding doesn't use the `gdImage*Ptr()` functions at all, we're | ||
8 | porting the fix to stay in sync here. | ||
9 | --- | ||
10 | ext/gd/libgd/gd_gif_out.c | 20 +++++++++++++++++--- | ||
11 | ext/gd/libgd/gd_jpeg.c | 17 ++++++++++++++--- | ||
12 | ext/gd/libgd/gd_wbmp.c | 18 +++++++++++++++--- | ||
13 | 3 files changed, 46 insertions(+), 9 deletions(-) | ||
14 | |||
15 | Upstream-Status: Backport [http://git.php.net/?p=php-src.git;a=commit;h=089f7c0bc28d399b0420aa6ef058e4c1c120b2ae] | ||
16 | CVE: CVE-2019-6978 | ||
17 | |||
18 | Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> | ||
19 | |||
20 | diff --git a/ext/gd/libgd/gd_gif_out.c b/ext/gd/libgd/gd_gif_out.c | ||
21 | index 1f2a6b936a..2e1f38af70 100644 | ||
22 | --- a/ext/gd/libgd/gd_gif_out.c | ||
23 | +++ b/ext/gd/libgd/gd_gif_out.c | ||
24 | @@ -97,12 +97,18 @@ static void cl_hash (register count_int chsize, GifCtx *ctx); | ||
25 | static void char_init (GifCtx *ctx); | ||
26 | static void char_out (int c, GifCtx *ctx); | ||
27 | static void flush_char (GifCtx *ctx); | ||
28 | + | ||
29 | +static int _gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out); | ||
30 | + | ||
31 | void * gdImageGifPtr (gdImagePtr im, int *size) | ||
32 | { | ||
33 | void *rv; | ||
34 | gdIOCtx *out = gdNewDynamicCtx (2048, NULL); | ||
35 | - gdImageGifCtx (im, out); | ||
36 | - rv = gdDPExtractData (out, size); | ||
37 | + if (!_gdImageGifCtx(im, out)) { | ||
38 | + rv = gdDPExtractData(out, size); | ||
39 | + } else { | ||
40 | + rv = NULL; | ||
41 | + } | ||
42 | out->gd_free (out); | ||
43 | return rv; | ||
44 | } | ||
45 | @@ -115,6 +121,12 @@ void gdImageGif (gdImagePtr im, FILE * outFile) | ||
46 | } | ||
47 | |||
48 | void gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out) | ||
49 | +{ | ||
50 | + _gdImageGifCtx(im, out); | ||
51 | +} | ||
52 | + | ||
53 | +/* returns 0 on success, 1 on failure */ | ||
54 | +static int _gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out) | ||
55 | { | ||
56 | gdImagePtr pim = 0, tim = im; | ||
57 | int interlace, BitsPerPixel; | ||
58 | @@ -125,7 +137,7 @@ void gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out) | ||
59 | based temporary image. */ | ||
60 | pim = gdImageCreatePaletteFromTrueColor(im, 1, 256); | ||
61 | if (!pim) { | ||
62 | - return; | ||
63 | + return 1; | ||
64 | } | ||
65 | tim = pim; | ||
66 | } | ||
67 | @@ -138,6 +150,8 @@ void gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out) | ||
68 | /* Destroy palette based temporary image. */ | ||
69 | gdImageDestroy( pim); | ||
70 | } | ||
71 | + | ||
72 | + return 0; | ||
73 | } | ||
74 | |||
75 | static int | ||
76 | diff --git a/ext/gd/libgd/gd_jpeg.c b/ext/gd/libgd/gd_jpeg.c | ||
77 | index 8cf71fcbc9..ef46c4a22c 100644 | ||
78 | --- a/ext/gd/libgd/gd_jpeg.c | ||
79 | +++ b/ext/gd/libgd/gd_jpeg.c | ||
80 | @@ -132,6 +132,7 @@ const char * gdJpegGetVersionString() | ||
81 | } | ||
82 | } | ||
83 | |||
84 | +static int _gdImageJpegCtx(gdImagePtr im, gdIOCtx *outfile, int quality); | ||
85 | |||
86 | /* | ||
87 | * Write IM to OUTFILE as a JFIF-formatted JPEG image, using quality | ||
88 | @@ -153,8 +154,11 @@ void *gdImageJpegPtr (gdImagePtr im, int *size, int quality) | ||
89 | { | ||
90 | void *rv; | ||
91 | gdIOCtx *out = gdNewDynamicCtx (2048, NULL); | ||
92 | - gdImageJpegCtx (im, out, quality); | ||
93 | - rv = gdDPExtractData (out, size); | ||
94 | + if (!_gdImageJpegCtx(im, out, quality)) { | ||
95 | + rv = gdDPExtractData(out, size); | ||
96 | + } else { | ||
97 | + rv = NULL; | ||
98 | + } | ||
99 | out->gd_free (out); | ||
100 | |||
101 | return rv; | ||
102 | @@ -163,6 +167,12 @@ void *gdImageJpegPtr (gdImagePtr im, int *size, int quality) | ||
103 | void jpeg_gdIOCtx_dest (j_compress_ptr cinfo, gdIOCtx * outfile); | ||
104 | |||
105 | void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) | ||
106 | +{ | ||
107 | + _gdImageJpegCtx(im, outfile, quality); | ||
108 | +} | ||
109 | + | ||
110 | +/* returns 0 on success, 1 on failure */ | ||
111 | +static int _gdImageJpegCtx(gdImagePtr im, gdIOCtx *outfile, int quality) | ||
112 | { | ||
113 | struct jpeg_compress_struct cinfo; | ||
114 | struct jpeg_error_mgr jerr; | ||
115 | @@ -184,7 +194,7 @@ void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) | ||
116 | if (row) { | ||
117 | gdFree (row); | ||
118 | } | ||
119 | - return; | ||
120 | + return 1; | ||
121 | } | ||
122 | |||
123 | cinfo.err->error_exit = fatal_jpeg_error; | ||
124 | @@ -277,6 +287,7 @@ void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) | ||
125 | jpeg_finish_compress (&cinfo); | ||
126 | jpeg_destroy_compress (&cinfo); | ||
127 | gdFree (row); | ||
128 | + return 0; | ||
129 | } | ||
130 | |||
131 | gdImagePtr gdImageCreateFromJpeg (FILE * inFile) | ||
132 | diff --git a/ext/gd/libgd/gd_wbmp.c b/ext/gd/libgd/gd_wbmp.c | ||
133 | index 55ced3443d..fd9edad2ca 100644 | ||
134 | --- a/ext/gd/libgd/gd_wbmp.c | ||
135 | +++ b/ext/gd/libgd/gd_wbmp.c | ||
136 | @@ -82,6 +82,7 @@ int gd_getin (void *in) | ||
137 | return (gdGetC((gdIOCtx *) in)); | ||
138 | } | ||
139 | |||
140 | +static int _gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out); | ||
141 | |||
142 | /* gdImageWBMPCtx | ||
143 | ** -------------- | ||
144 | @@ -93,6 +94,12 @@ int gd_getin (void *in) | ||
145 | ** out: the stream where to write | ||
146 | */ | ||
147 | void gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtx * out) | ||
148 | +{ | ||
149 | + _gdImageWBMPCtx(image, fg, out); | ||
150 | +} | ||
151 | + | ||
152 | +/* returns 0 on success, 1 on failure */ | ||
153 | +static int _gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out) | ||
154 | { | ||
155 | int x, y, pos; | ||
156 | Wbmp *wbmp; | ||
157 | @@ -100,7 +107,7 @@ void gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtx * out) | ||
158 | /* create the WBMP */ | ||
159 | if ((wbmp = createwbmp (gdImageSX (image), gdImageSY (image), WBMP_WHITE)) == NULL) { | ||
160 | gd_error("Could not create WBMP"); | ||
161 | - return; | ||
162 | + return 1; | ||
163 | } | ||
164 | |||
165 | /* fill up the WBMP structure */ | ||
166 | @@ -116,7 +123,9 @@ void gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtx * out) | ||
167 | |||
168 | /* write the WBMP to a gd file descriptor */ | ||
169 | if (writewbmp (wbmp, &gd_putout, out)) { | ||
170 | + freewbmp(wbmp); | ||
171 | gd_error("Could not save WBMP"); | ||
172 | + return 1; | ||
173 | } | ||
174 | /* des submitted this bugfix: gdFree the memory. */ | ||
175 | freewbmp(wbmp); | ||
176 | @@ -204,8 +213,11 @@ void * gdImageWBMPPtr (gdImagePtr im, int *size, int fg) | ||
177 | { | ||
178 | void *rv; | ||
179 | gdIOCtx *out = gdNewDynamicCtx(2048, NULL); | ||
180 | - gdImageWBMPCtx(im, fg, out); | ||
181 | - rv = gdDPExtractData(out, size); | ||
182 | + if (!_gdImageWBMPCtx(im, fg, out)) { | ||
183 | + rv = gdDPExtractData(out, size); | ||
184 | + } else { | ||
185 | + rv = NULL; | ||
186 | + } | ||
187 | out->gd_free(out); | ||
188 | |||
189 | return rv; | ||
190 | -- | ||
191 | 2.17.1 | ||
192 | |||
diff --git a/meta-oe/recipes-devtools/php/php/iconv.patch b/meta-oe/recipes-devtools/php/php/iconv.patch index ecf7d8720..9ec8a89b5 100644 --- a/meta-oe/recipes-devtools/php/php/iconv.patch +++ b/meta-oe/recipes-devtools/php/php/iconv.patch | |||
@@ -1,32 +1,33 @@ | |||
1 | From 17cc5645f3acf943a5a06465d09d0ebcfea987bd Mon Sep 17 00:00:00 2001 | 1 | Subject: [PATCH] From 17cc5645f3acf943a5a06465d09d0ebcfea987bd Mon Sep 17 |
2 | From: Koen Kooi <koen@dominion.thruhere.net> | 2 | 00:00:00 2001 From: Koen Kooi <koen@dominion.thruhere.net> Date: Wed, 2 Nov |
3 | Date: Wed, 2 Nov 2011 16:54:57 +0100 | 3 | 2011 16:54:57 +0100 Subject: [PATCH] Upstream-Status: Pending |
4 | Subject: [PATCH] Upstream-Status: Pending | ||
5 | 4 | ||
5 | update patch to version 7.4.4 | ||
6 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
6 | --- | 7 | --- |
7 | acinclude.m4 | 3 ++- | 8 | build/php.m4 | 3 ++- |
8 | ext/iconv/config.m4 | 2 +- | 9 | ext/iconv/config.m4 | 2 +- |
9 | 2 files changed, 3 insertions(+), 2 deletions(-) | 10 | 2 files changed, 3 insertions(+), 2 deletions(-) |
10 | 11 | ||
11 | diff --git a/acinclude.m4 b/acinclude.m4 | 12 | diff --git a/build/php.m4 b/build/php.m4 |
12 | index d32766a..ad5166e 100644 | 13 | index 7392876..5c45d13 100644 |
13 | --- a/acinclude.m4 | 14 | --- a/build/php.m4 |
14 | +++ b/acinclude.m4 | 15 | +++ b/build/php.m4 |
15 | @@ -2445,7 +2445,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [ | 16 | @@ -1950,7 +1950,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [ |
16 | dnl Check libc first if no path is provided in --with-iconv | 17 | echo > ext/iconv/php_iconv_supports_errno.h |
17 | dnl | ||
18 | 18 | ||
19 | dnl Check libc first if no path is provided in --with-iconv. | ||
19 | - if test "$PHP_ICONV" = "yes"; then | 20 | - if test "$PHP_ICONV" = "yes"; then |
20 | + dnl must check against no, not against yes as PHP_ICONV can also include a path, which implies yes | 21 | + dnl must check against no, not against yes as PHP_ICONV can also include a path, which implies yes |
21 | + if test "$PHP_ICONV" != "no"; then | 22 | + if test "$PHP_ICONV" != "no"; then |
22 | dnl Reset LIBS temporarily as it may have already been included | 23 | dnl Reset LIBS temporarily as it may have already been included -liconv in. |
23 | dnl -liconv in. | ||
24 | LIBS_save="$LIBS" | 24 | LIBS_save="$LIBS" |
25 | LIBS= | ||
25 | diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4 | 26 | diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4 |
26 | index 6a05697..973e750 100644 | 27 | index fe9b47a..b6b632f 100644 |
27 | --- a/ext/iconv/config.m4 | 28 | --- a/ext/iconv/config.m4 |
28 | +++ b/ext/iconv/config.m4 | 29 | +++ b/ext/iconv/config.m4 |
29 | @@ -15,7 +15,7 @@ if test "$PHP_ICONV" != "no"; then | 30 | @@ -14,7 +14,7 @@ if test "$PHP_ICONV" != "no"; then |
30 | 31 | ||
31 | if test "$iconv_avail" != "no"; then | 32 | if test "$iconv_avail" != "no"; then |
32 | if test -z "$ICONV_DIR"; then | 33 | if test -z "$ICONV_DIR"; then |
@@ -35,3 +36,6 @@ index 6a05697..973e750 100644 | |||
35 | if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then | 36 | if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then |
36 | PHP_ICONV_PREFIX="$i" | 37 | PHP_ICONV_PREFIX="$i" |
37 | break | 38 | break |
39 | -- | ||
40 | 2.7.4 | ||
41 | |||
diff --git a/meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch b/meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch index 16359af9f..ebe5f6a93 100644 --- a/meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch +++ b/meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch | |||
@@ -1,32 +1,19 @@ | |||
1 | From c084c8349d1780980e232cb28b60a109e3d89438 Mon Sep 17 00:00:00 2001 | 1 | Subject: [PATCH] From c084c8349d1780980e232cb28b60a109e3d89438 Mon Sep 17 |
2 | From: Koen Kooi <koen@dominion.thruhere.net> | 2 | 00:00:00 2001 From: Koen Kooi <koen@dominion.thruhere.net> Date: Wed, 2 Nov |
3 | Date: Wed, 2 Nov 2011 16:54:57 +0100 | 3 | 2011 16:54:57 +0100 Subject: [PATCH] Upstream-Status: Pending |
4 | Subject: [PATCH] Upstream-Status: Pending | ||
5 | 4 | ||
5 | update patch to version 7.4.4 | ||
6 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
6 | --- | 7 | --- |
7 | acinclude.m4 | 2 +- | ||
8 | ext/imap/config.m4 | 10 ++-------- | 8 | ext/imap/config.m4 | 10 ++-------- |
9 | 2 files changed, 3 insertions(+), 9 deletions(-) | 9 | 1 file changed, 2 insertions(+), 8 deletions(-) |
10 | 10 | ||
11 | diff --git a/acinclude.m4 b/acinclude.m4 | ||
12 | index ad5166e..f6a55ec 100644 | ||
13 | --- a/acinclude.m4 | ||
14 | +++ b/acinclude.m4 | ||
15 | @@ -2350,7 +2350,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ | ||
16 | PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" | ||
17 | fi | ||
18 | |||
19 | - for i in $PHP_OPENSSL_DIR; do | ||
20 | + for i in $PHP_OPENSSL_DIR $PHP_OPENSSL_DIR/usr; do | ||
21 | if test -r $i/include/openssl/evp.h; then | ||
22 | OPENSSL_INCDIR=$i/include | ||
23 | fi | ||
24 | diff --git a/ext/imap/config.m4 b/ext/imap/config.m4 | 11 | diff --git a/ext/imap/config.m4 b/ext/imap/config.m4 |
25 | index badb6e2..8ff803c 100644 | 12 | index 5086a31..0e938bd 100644 |
26 | --- a/ext/imap/config.m4 | 13 | --- a/ext/imap/config.m4 |
27 | +++ b/ext/imap/config.m4 | 14 | +++ b/ext/imap/config.m4 |
28 | @@ -109,7 +109,7 @@ if test "$PHP_IMAP" != "no"; then | 15 | @@ -110,7 +110,7 @@ if test "$PHP_IMAP" != "no"; then |
29 | PHP_NEW_EXTENSION(imap, php_imap.c, $ext_shared) | 16 | PHP_NEW_EXTENSION(imap, php_imap.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) |
30 | AC_DEFINE(HAVE_IMAP,1,[ ]) | 17 | AC_DEFINE(HAVE_IMAP,1,[ ]) |
31 | 18 | ||
32 | - for i in $PHP_IMAP /usr/local /usr; do | 19 | - for i in $PHP_IMAP /usr/local /usr; do |
@@ -34,7 +21,7 @@ index badb6e2..8ff803c 100644 | |||
34 | IMAP_INC_CHK() | 21 | IMAP_INC_CHK() |
35 | el[]IMAP_INC_CHK(/include/c-client) | 22 | el[]IMAP_INC_CHK(/include/c-client) |
36 | el[]IMAP_INC_CHK(/include/imap) | 23 | el[]IMAP_INC_CHK(/include/imap) |
37 | @@ -198,13 +198,7 @@ if test "$PHP_IMAP" != "no"; then | 24 | @@ -199,13 +199,7 @@ if test "$PHP_IMAP" != "no"; then |
38 | AC_MSG_ERROR(Cannot find rfc822.h. Please check your c-client installation.) | 25 | AC_MSG_ERROR(Cannot find rfc822.h. Please check your c-client installation.) |
39 | fi | 26 | fi |
40 | 27 | ||
@@ -49,3 +36,6 @@ index badb6e2..8ff803c 100644 | |||
49 | IMAP_LIB=$lib | 36 | IMAP_LIB=$lib |
50 | IMAP_LIB_CHK($PHP_LIBDIR) | 37 | IMAP_LIB_CHK($PHP_LIBDIR) |
51 | IMAP_LIB_CHK(c-client) | 38 | IMAP_LIB_CHK(c-client) |
39 | -- | ||
40 | 2.7.4 | ||
41 | |||
diff --git a/meta-oe/recipes-devtools/php/php/phar-makefile.patch b/meta-oe/recipes-devtools/php/php/phar-makefile.patch index 336cf0d62..eb73bc440 100644 --- a/meta-oe/recipes-devtools/php/php/phar-makefile.patch +++ b/meta-oe/recipes-devtools/php/php/phar-makefile.patch | |||
@@ -1,24 +1,25 @@ | |||
1 | From 08962a56f69963e01892d98ca5b75de8354bd3f5 Mon Sep 17 00:00:00 2001 | 1 | Subject: [PATCH] From 08962a56f69963e01892d98ca5b75de8354bd3f5 Mon Sep 17 |
2 | From: Koen Kooi <koen@dominion.thruhere.net> | 2 | 00:00:00 2001 From: Koen Kooi <koen@dominion.thruhere.net> Date: Wed, 2 Nov |
3 | Date: Wed, 2 Nov 2011 16:54:57 +0100 | 3 | 2011 16:54:57 +0100 Subject: [PATCH] Fix phar packaging |
4 | Subject: [PATCH] Fix phar packaging | ||
5 | 4 | ||
6 | Inherited from OE-Classic, with some additions to fix host paths leaking | 5 | Inherited from OE-Classic, with some additions to fix host paths leaking |
7 | into the target package. | 6 | into the target package. |
8 | 7 | ||
9 | Upstream-Status: Inappropriate [config] | 8 | Upstream-Status: Inappropriate [config] |
10 | 9 | ||
10 | update patch to version 7.4.4 | ||
11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
11 | --- | 12 | --- |
12 | ext/phar/Makefile.frag | 17 +++-------------- | 13 | ext/phar/Makefile.frag | 17 +++-------------- |
13 | 1 file changed, 3 insertions(+), 14 deletions(-) | 14 | 1 file changed, 3 insertions(+), 14 deletions(-) |
14 | 15 | ||
15 | diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag | 16 | diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag |
16 | index 0e3713f..22f7898 100644 | 17 | index 6442f33..6145412 100644 |
17 | --- a/ext/phar/Makefile.frag | 18 | --- a/ext/phar/Makefile.frag |
18 | +++ b/ext/phar/Makefile.frag | 19 | +++ b/ext/phar/Makefile.frag |
19 | @@ -10,20 +10,9 @@ pharcmd: $(builddir)/phar.php $(builddir)/phar.phar | 20 | @@ -10,20 +10,9 @@ pharcmd: $(builddir)/phar.php $(builddir)/phar.phar |
20 | 21 | ||
21 | PHP_PHARCMD_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' | 22 | PHP_PHARCMD_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 |
22 | PHP_PHARCMD_EXECUTABLE = ` \ | 23 | PHP_PHARCMD_EXECUTABLE = ` \ |
23 | - if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ | 24 | - if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ |
24 | - $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ | 25 | - $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ |
@@ -34,9 +35,12 @@ index 0e3713f..22f7898 100644 | |||
34 | - $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ | 35 | - $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ |
35 | - fi;` | 36 | - fi;` |
36 | -PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` | 37 | -PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` |
37 | + $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; ` | 38 | + $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; ` |
38 | + | 39 | + |
39 | +PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` | 40 | +PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` |
40 | 41 | ||
41 | $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc | 42 | $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc |
42 | -@test -d $(builddir)/phar || mkdir $(builddir)/phar | 43 | -@test -d $(builddir)/phar || mkdir $(builddir)/phar |
44 | -- | ||
45 | 2.7.4 | ||
46 | |||
diff --git a/meta-oe/recipes-devtools/php/php/php_exec_native.patch b/meta-oe/recipes-devtools/php/php/php_exec_native.patch index 80409000d..4aec4812f 100644 --- a/meta-oe/recipes-devtools/php/php/php_exec_native.patch +++ b/meta-oe/recipes-devtools/php/php/php_exec_native.patch | |||
@@ -1,22 +1,26 @@ | |||
1 | From d251b5aa3d23803d016ca16818e2e1d2f2b70a02 Mon Sep 17 00:00:00 2001 | 1 | Subject: [PATCH] rom d251b5aa3d23803d016ca16818e2e1d2f2b70a02 Mon Sep 17 |
2 | From: Koen Kooi <koen@dominion.thruhere.net> | 2 | 00:00:00 2001 From: Koen Kooi <koen@dominion.thruhere.net> Date: Wed, 2 Nov |
3 | Date: Wed, 2 Nov 2011 16:54:57 +0100 | 3 | 2011 16:54:57 +0100 Subject: [PATCH] Upstream-Status: Inappriate |
4 | Subject: [PATCH] Upstream-Status: Inappriate | ||
5 | 4 | ||
5 | update patch to version 7.4.4 | ||
6 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
6 | --- | 7 | --- |
7 | sapi/cli/config.m4 | 2 +- | 8 | sapi/cli/config.m4 | 2 +- |
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
9 | 10 | ||
10 | diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 | 11 | diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 |
11 | index 2168151..20a81db 100644 | 12 | index 917d45f..aaf1e27 100644 |
12 | --- a/sapi/cli/config.m4 | 13 | --- a/sapi/cli/config.m4 |
13 | +++ b/sapi/cli/config.m4 | 14 | +++ b/sapi/cli/config.m4 |
14 | @@ -50,7 +50,7 @@ if test "$PHP_CLI" != "no"; then | 15 | @@ -47,7 +47,7 @@ if test "$PHP_CLI" != "no"; then |
15 | esac | 16 | esac |
16 | 17 | ||
17 | dnl Set executable for tests | 18 | dnl Set executable for tests. |
18 | - PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" | 19 | - PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" |
19 | + PHP_EXECUTABLE="${PHP_NATIVE_DIR}/php" | 20 | + PHP_EXECUTABLE="${PHP_NATIVE_DIR}/php" |
20 | PHP_SUBST(PHP_EXECUTABLE) | 21 | PHP_SUBST(PHP_EXECUTABLE) |
21 | 22 | ||
22 | dnl Expose to Makefile | 23 | dnl Expose to Makefile. |
24 | -- | ||
25 | 2.7.4 | ||
26 | |||
diff --git a/meta-oe/recipes-devtools/php/php_7.3.16.bb b/meta-oe/recipes-devtools/php/php_7.4.4.bb index 050916bb3..ff4c28e13 100644 --- a/meta-oe/recipes-devtools/php/php_7.3.16.bb +++ b/meta-oe/recipes-devtools/php/php_7.4.4.bb | |||
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.php.net" | |||
3 | SECTION = "console/network" | 3 | SECTION = "console/network" |
4 | 4 | ||
5 | LICENSE = "PHP-3.0" | 5 | LICENSE = "PHP-3.0" |
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fb07bfc51f6d5e0c30b65d9701233b2e" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7e571b888d585b31f9ef5edcc647fa30" |
7 | 7 | ||
8 | BBCLASSEXTEND = "native" | 8 | BBCLASSEXTEND = "native" |
9 | DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native" | 9 | DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native" |
@@ -13,11 +13,9 @@ PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}" | |||
13 | 13 | ||
14 | SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ | 14 | SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ |
15 | file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \ | 15 | file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \ |
16 | file://0001-acinclude.m4-don-t-unset-cache-variables.patch \ | ||
17 | file://0048-Use-pkg-config-for-FreeType2-detection.patch \ | ||
18 | file://0001-Use-pkg-config-for-libxml2-detection.patch \ | ||
19 | file://debian-php-fixheader.patch \ | 16 | file://debian-php-fixheader.patch \ |
20 | file://CVE-2019-6978.patch \ | 17 | file://0001-configure.ac-don-t-include-build-libtool.m4.patch \ |
18 | file://0001-php.m4-don-t-unset-cache-variables.patch \ | ||
21 | " | 19 | " |
22 | 20 | ||
23 | SRC_URI_append_class-target = " \ | 21 | SRC_URI_append_class-target = " \ |
@@ -34,8 +32,8 @@ SRC_URI_append_class-target = " \ | |||
34 | file://xfail_two_bug_tests.patch \ | 32 | file://xfail_two_bug_tests.patch \ |
35 | " | 33 | " |
36 | S = "${WORKDIR}/php-${PV}" | 34 | S = "${WORKDIR}/php-${PV}" |
37 | SRC_URI[md5sum] = "fc72fa1c2a6da38a5a7f8797eaa08c58" | 35 | SRC_URI[md5sum] = "262c258a3b8b5699fcca89a64e58758c" |
38 | SRC_URI[sha256sum] = "b8072d526a283182963b03960b7982392daa43cb31131eca4cf0b996764a042e" | 36 | SRC_URI[sha256sum] = "308e8f4182ec8a2767b0b1b8e1e7c69fb149b37cfb98ee4a37475e082fa9829f" |
39 | 37 | ||
40 | inherit autotools pkgconfig python3native gettext | 38 | inherit autotools pkgconfig python3native gettext |
41 | 39 | ||
@@ -55,7 +53,6 @@ COMMON_EXTRA_OECONF = "--enable-sockets \ | |||
55 | --libdir=${PHP_LIBDIR} \ | 53 | --libdir=${PHP_LIBDIR} \ |
56 | " | 54 | " |
57 | EXTRA_OECONF = "--enable-mbstring \ | 55 | EXTRA_OECONF = "--enable-mbstring \ |
58 | --enable-wddx \ | ||
59 | --enable-fpm \ | 56 | --enable-fpm \ |
60 | --with-libdir=${baselib} \ | 57 | --with-libdir=${baselib} \ |
61 | --with-gettext=${STAGING_LIBDIR}/.. \ | 58 | --with-gettext=${STAGING_LIBDIR}/.. \ |
@@ -107,6 +104,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | |||
107 | PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache" | 104 | PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache" |
108 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" | 105 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" |
109 | PACKAGECONFIG[valgrind] = "--with-valgrind=${STAGING_DIR_TARGET}/usr,--with-valgrind=no,valgrind" | 106 | PACKAGECONFIG[valgrind] = "--with-valgrind=${STAGING_DIR_TARGET}/usr,--with-valgrind=no,valgrind" |
107 | PACKAGECONFIG[mbregex] = "--enable-mbregex, --disable-mbregex, oniguruma" | ||
110 | 108 | ||
111 | export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" | 109 | export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" |
112 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" | 110 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" |
@@ -149,16 +147,12 @@ do_install_prepend_class-target() { | |||
149 | # fixme | 147 | # fixme |
150 | do_install_append_class-target() { | 148 | do_install_append_class-target() { |
151 | install -d ${D}${sysconfdir}/ | 149 | install -d ${D}${sysconfdir}/ |
152 | if [ -d ${RECIPE_SYSROOT_NATIVE}${sysconfdir} ];then | ||
153 | install -m 0644 ${RECIPE_SYSROOT_NATIVE}${sysconfdir}/pear.conf ${D}${sysconfdir}/ | ||
154 | fi | ||
155 | rm -rf ${D}/${TMPDIR} | 150 | rm -rf ${D}/${TMPDIR} |
156 | rm -rf ${D}/.registry | 151 | rm -rf ${D}/.registry |
157 | rm -rf ${D}/.channels | 152 | rm -rf ${D}/.channels |
158 | rm -rf ${D}/.[a-z]* | 153 | rm -rf ${D}/.[a-z]* |
159 | rm -rf ${D}/var | 154 | rm -rf ${D}/var |
160 | rm -f ${D}/${sysconfdir}/php-fpm.conf.default | 155 | rm -f ${D}/${sysconfdir}/php-fpm.conf.default |
161 | sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}${sysconfdir}/pear.conf | ||
162 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf | 156 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf |
163 | install -d ${D}/${sysconfdir}/apache2/conf.d | 157 | install -d ${D}/${sysconfdir}/apache2/conf.d |
164 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf | 158 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf |