diff options
| -rw-r--r-- | meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch | 50 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch | 11 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/php/php_8.1.0.bb (renamed from meta-oe/recipes-devtools/php/php_8.0.12.bb) | 20 |
3 files changed, 34 insertions, 47 deletions
diff --git a/meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch b/meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch index 44534cc062..a967d64120 100644 --- a/meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch +++ b/meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From 8cabcf1043953a0fe48107204a2212609b8e6516 Mon Sep 17 00:00:00 2001 | 1 | From ca9b419f2c146061f73ee045cb0a069c18b40cd0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Claude Bing <cbing@cybernetics.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
| 3 | Date: Tue, 9 Nov 2021 12:59:15 -0500 | 3 | Date: Wed, 15 Dec 2021 14:00:08 +0800 |
| 4 | Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache | 4 | Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache |
| 5 | 5 | ||
| 6 | We can't use AC_TRY_RUN to run programs in a cross compile | 6 | We can't use AC_TRY_RUN to run programs in a cross compile |
| @@ -17,15 +17,18 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
| 17 | update patch to version 8.0.12 | 17 | update patch to version 8.0.12 |
| 18 | fix issue linking with librt | 18 | fix issue linking with librt |
| 19 | Signed-off-by: Claude Bing <cbing@cybernetics.com> | 19 | Signed-off-by: Claude Bing <cbing@cybernetics.com> |
| 20 | |||
| 21 | update patch to version 8.1.0 | ||
| 22 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 20 | --- | 23 | --- |
| 21 | ext/opcache/config.m4 | 197 ++---------------------------------------- | 24 | ext/opcache/config.m4 | 204 ++---------------------------------------- |
| 22 | 1 file changed, 8 insertions(+), 189 deletions(-) | 25 | 1 file changed, 8 insertions(+), 196 deletions(-) |
| 23 | 26 | ||
| 24 | diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 | 27 | diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 |
| 25 | index 5492fd920c..95158ccfd9 100644 | 28 | index 2a83fa2..9471b5d 100644 |
| 26 | --- a/ext/opcache/config.m4 | 29 | --- a/ext/opcache/config.m4 |
| 27 | +++ b/ext/opcache/config.m4 | 30 | +++ b/ext/opcache/config.m4 |
| 28 | @@ -101,202 +101,21 @@ if test "$PHP_OPCACHE" != "no"; then | 31 | @@ -108,209 +108,21 @@ if test "$PHP_OPCACHE" != "no"; then |
| 29 | AC_CHECK_FUNCS([mprotect]) | 32 | AC_CHECK_FUNCS([mprotect]) |
| 30 | 33 | ||
| 31 | AC_MSG_CHECKING(for sysvipc shared memory support) | 34 | AC_MSG_CHECKING(for sysvipc shared memory support) |
| @@ -93,9 +96,10 @@ index 5492fd920c..95158ccfd9 100644 | |||
| 93 | - } | 96 | - } |
| 94 | - return 0; | 97 | - return 0; |
| 95 | -} | 98 | -} |
| 96 | -]])],[dnl | 99 | -]])],[have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) |
| 100 | - if test "$have_shm_ipc" = "yes"; then | ||
| 97 | - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) | 101 | - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) |
| 98 | - have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) | 102 | - fi |
| 99 | + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) | 103 | + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) |
| 100 | + have_shm_ipc=yes | 104 | + have_shm_ipc=yes |
| 101 | AC_MSG_RESULT([$have_shm_ipc]) | 105 | AC_MSG_RESULT([$have_shm_ipc]) |
| @@ -147,9 +151,19 @@ index 5492fd920c..95158ccfd9 100644 | |||
| 147 | - } | 151 | - } |
| 148 | - return 0; | 152 | - return 0; |
| 149 | -} | 153 | -} |
| 150 | -]])],[dnl | 154 | -]])],[have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[ |
| 155 | - case $host_alias in | ||
| 156 | - *linux*) | ||
| 157 | - have_shm_mmap_anon=yes | ||
| 158 | - ;; | ||
| 159 | - *) | ||
| 160 | - have_shm_mmap_anon=no | ||
| 161 | - ;; | ||
| 162 | - esac | ||
| 163 | -]) | ||
| 164 | - if test "$have_shm_mmap_anon" = "yes"; then | ||
| 151 | - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) | 165 | - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) |
| 152 | - have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no]) | 166 | - fi |
| 153 | + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) | 167 | + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) |
| 154 | + have_shm_mmap_anon=yes | 168 | + have_shm_mmap_anon=yes |
| 155 | AC_MSG_RESULT([$have_shm_mmap_anon]) | 169 | AC_MSG_RESULT([$have_shm_mmap_anon]) |
| @@ -219,16 +233,12 @@ index 5492fd920c..95158ccfd9 100644 | |||
| 219 | - } | 233 | - } |
| 220 | - return 0; | 234 | - return 0; |
| 221 | -} | 235 | -} |
| 222 | -]])],[dnl | 236 | -]])],[have_shm_mmap_posix=yes],[have_shm_mmap_posix=no],[have_shm_mmap_posix=no]) |
| 237 | - if test "$have_shm_mmap_posix" = "yes"; then | ||
| 223 | - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) | 238 | - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) |
| 224 | - AC_MSG_RESULT([yes]) | ||
| 225 | - have_shm_mmap_posix=yes | ||
| 226 | - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) | 239 | - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) |
| 227 | - ],[ | 240 | - fi |
| 228 | - AC_MSG_RESULT([no]) | 241 | - AC_MSG_RESULT([$have_shm_mmap_posix]) |
| 229 | - ],[ | ||
| 230 | - AC_MSG_RESULT([no]) | ||
| 231 | - ]) | ||
| 232 | + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) | 242 | + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) |
| 233 | + AC_MSG_RESULT([yes]) | 243 | + AC_MSG_RESULT([yes]) |
| 234 | + have_shm_mmap_posix=yes | 244 | + have_shm_mmap_posix=yes |
| @@ -237,5 +247,5 @@ index 5492fd920c..95158ccfd9 100644 | |||
| 237 | PHP_NEW_EXTENSION(opcache, | 247 | PHP_NEW_EXTENSION(opcache, |
| 238 | ZendAccelerator.c \ | 248 | ZendAccelerator.c \ |
| 239 | -- | 249 | -- |
| 240 | 2.25.1 | 250 | 2.17.1 |
| 241 | 251 | ||
diff --git a/meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch b/meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch deleted file mode 100644 index 892a0460cf..0000000000 --- a/meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | --- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 | ||
| 2 | +++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 | ||
| 3 | @@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas | ||
| 4 | $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ | ||
| 5 | |||
| 6 | $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua | ||
| 7 | - $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc | ||
| 8 | + $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc | ||
| 9 | |||
| 10 | $(builddir)/jit/zend_jit.lo: \ | ||
| 11 | $(builddir)/jit/zend_jit_x86.c \ | ||
diff --git a/meta-oe/recipes-devtools/php/php_8.0.12.bb b/meta-oe/recipes-devtools/php/php_8.1.0.bb index 38771948f1..593eb39550 100644 --- a/meta-oe/recipes-devtools/php/php_8.0.12.bb +++ b/meta-oe/recipes-devtools/php/php_8.1.0.bb | |||
| @@ -6,7 +6,7 @@ LICENSE = "PHP-3.0" | |||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=99532e0f6620bc9bca34f12fadaee33c" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=99532e0f6620bc9bca34f12fadaee33c" |
| 7 | 7 | ||
| 8 | BBCLASSEXTEND = "native" | 8 | BBCLASSEXTEND = "native" |
| 9 | DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native qemu-native" | 9 | DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native" |
| 10 | DEPENDS:class-native = "zlib-native libxml2-native" | 10 | DEPENDS:class-native = "zlib-native libxml2-native" |
| 11 | 11 | ||
| 12 | PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}" | 12 | PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}" |
| @@ -25,7 +25,6 @@ SRC_URI:append:class-target = " \ | |||
| 25 | file://0006-ext-phar-Makefile.frag-Fix-phar-packaging.patch \ | 25 | file://0006-ext-phar-Makefile.frag-Fix-phar-packaging.patch \ |
| 26 | file://0007-sapi-cli-config.m4-fix-build-directory.patch \ | 26 | file://0007-sapi-cli-config.m4-fix-build-directory.patch \ |
| 27 | file://0008-ext-imap-config.m4-fix-include-paths.patch \ | 27 | file://0008-ext-imap-config.m4-fix-include-paths.patch \ |
| 28 | file://0011-use-qemuwrapper-for-minilua.patch \ | ||
| 29 | file://php-fpm.conf \ | 28 | file://php-fpm.conf \ |
| 30 | file://php-fpm-apache.conf \ | 29 | file://php-fpm-apache.conf \ |
| 31 | file://70_mod_php${PHP_MAJOR_VERSION}.conf \ | 30 | file://70_mod_php${PHP_MAJOR_VERSION}.conf \ |
| @@ -33,10 +32,10 @@ SRC_URI:append:class-target = " \ | |||
| 33 | " | 32 | " |
| 34 | 33 | ||
| 35 | S = "${WORKDIR}/php-${PV}" | 34 | S = "${WORKDIR}/php-${PV}" |
| 36 | SRC_URI[sha256sum] = "b4886db1df322dc8fb128d8b34ae7e94f6fc682ecb29ff4f5a591d4de9feadbf" | 35 | SRC_URI[sha256sum] = "0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61" |
| 37 | 36 | ||
| 38 | 37 | ||
| 39 | inherit autotools pkgconfig python3native gettext qemu | 38 | inherit autotools pkgconfig python3native gettext |
| 40 | 39 | ||
| 41 | # phpize is not scanned for absolute paths by default (but php-config is). | 40 | # phpize is not scanned for absolute paths by default (but php-config is). |
| 42 | # | 41 | # |
| @@ -77,7 +76,7 @@ EXTRA_OECONF:class-native = " \ | |||
| 77 | ${COMMON_EXTRA_OECONF} \ | 76 | ${COMMON_EXTRA_OECONF} \ |
| 78 | " | 77 | " |
| 79 | 78 | ||
| 80 | PACKAGECONFIG ??= "mysql sqlite3 imap opcache \ | 79 | PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ |
| 81 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ | 80 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ |
| 82 | " | 81 | " |
| 83 | PACKAGECONFIG:class-native = "" | 82 | PACKAGECONFIG:class-native = "" |
| @@ -128,17 +127,6 @@ do_configure:prepend () { | |||
| 128 | find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_SBINDIR_NATIVE}/httpd!' | 127 | find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_SBINDIR_NATIVE}/httpd!' |
| 129 | } | 128 | } |
| 130 | 129 | ||
| 131 | do_configure:prepend:class-target () { | ||
| 132 | # Write out a qemu wrapper that will be used by the makefile | ||
| 133 | # so that it can run minilua through that. | ||
| 134 | qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" | ||
| 135 | cat > ${S}/qemuwrapper << EOF | ||
| 136 | #!/bin/sh | ||
| 137 | $qemu_binary "\$@" | ||
| 138 | EOF | ||
| 139 | chmod +x ${S}/qemuwrapper | ||
| 140 | } | ||
| 141 | |||
| 142 | do_configure:append() { | 130 | do_configure:append() { |
| 143 | # No, libtool, we really don't want rpath set... | 131 | # No, libtool, we really don't want rpath set... |
| 144 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool | 132 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
