Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "A server-side, HTML-embedded scripting language" |
| 2 | HOMEPAGE = "http://www.php.net" |
| 3 | SECTION = "console/network" |
| 4 | |
| 5 | LICENSE = "PHP-3.0" |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fb07bfc51f6d5e0c30b65d9701233b2e" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 7 | |
| 8 | BBCLASSEXTEND = "native" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | DEPENDS_class-native = "zlib-native libxml2-native" |
| 11 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \ |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 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 \ |
| 20 | file://CVE-2019-6978.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | " |
| 22 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 23 | SRC_URI_append_class-target = " \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | file://iconv.patch \ |
| 25 | file://imap-fix-autofoo.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | file://php_exec_native.patch \ |
| 27 | file://php-fpm.conf \ |
| 28 | file://php-fpm-apache.conf \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | file://70_mod_php${PHP_MAJOR_VERSION}.conf \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 30 | file://php-fpm.service \ |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 31 | file://pear-makefile.patch \ |
| 32 | file://phar-makefile.patch \ |
| 33 | file://0001-opcache-config.m4-enable-opcache.patch \ |
| 34 | file://xfail_two_bug_tests.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 35 | " |
| 36 | S = "${WORKDIR}/php-${PV}" |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 37 | SRC_URI[md5sum] = "21b710b4126d4d54714de9693a6c7b0d" |
| 38 | SRC_URI[sha256sum] = "92d1ff4b13c7093635f1ec338a5e6891ca99b10e65fbcadd527e5bb84d11b5e7" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 39 | |
| 40 | inherit autotools pkgconfig pythonnative gettext |
| 41 | |
| 42 | # phpize is not scanned for absolute paths by default (but php-config is). |
| 43 | # |
| 44 | SSTATE_SCAN_FILES += "phpize" |
| 45 | SSTATE_SCAN_FILES += "build-defs.h" |
| 46 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 47 | PHP_LIBDIR = "${libdir}/php${PHP_MAJOR_VERSION}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 48 | |
| 49 | # Common EXTRA_OECONF |
| 50 | COMMON_EXTRA_OECONF = "--enable-sockets \ |
| 51 | --enable-pcntl \ |
| 52 | --enable-shared \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 53 | --disable-rpath \ |
| 54 | --with-pic \ |
| 55 | --libdir=${PHP_LIBDIR} \ |
| 56 | " |
| 57 | EXTRA_OECONF = "--enable-mbstring \ |
| 58 | --enable-wddx \ |
| 59 | --enable-fpm \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 60 | --with-libdir=${baselib} \ |
| 61 | --with-gettext=${STAGING_LIBDIR}/.. \ |
Brad Bishop | 90ca747 | 2019-08-20 09:15:15 -0400 | [diff] [blame] | 62 | --with-zlib=${STAGING_LIBDIR}/.. \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 63 | --with-iconv=${STAGING_LIBDIR}/.. \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 64 | --with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 65 | --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 66 | ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'ac_cv_c_bigendian_php=no', 'ac_cv_c_bigendian_php=yes', d)} \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 67 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '', 'ac_cv_lib_pam_pam_start=no', d)} \ |
| 68 | ${COMMON_EXTRA_OECONF} \ |
| 69 | " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 70 | |
Brad Bishop | a891d15 | 2019-09-13 06:17:45 -0400 | [diff] [blame] | 71 | EXTRA_OECONF_append_riscv64 = " --with-pcre-jit=no" |
| 72 | EXTRA_OECONF_append_riscv32 = " --with-pcre-jit=no" |
| 73 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 74 | CACHED_CONFIGUREVARS += "ac_cv_func_dlopen=no ac_cv_lib_dl_dlopen=yes" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 75 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 76 | EXTRA_OECONF_class-native = " \ |
| 77 | --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ |
| 78 | --without-iconv \ |
| 79 | ${COMMON_EXTRA_OECONF} \ |
| 80 | " |
| 81 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 82 | PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 83 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 84 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 85 | PACKAGECONFIG_class-native = "" |
| 86 | |
Brad Bishop | 90ca747 | 2019-08-20 09:15:15 -0400 | [diff] [blame] | 87 | PACKAGECONFIG[zip] = "--enable-zip --with-libzip=${STAGING_EXECPREFIXDIR},,libzip" |
| 88 | |
Brad Bishop | a891d15 | 2019-09-13 06:17:45 -0400 | [diff] [blame] | 89 | PACKAGECONFIG[mysql] = "--with-mysqli=mysqlnd \ |
| 90 | --with-pdo-mysql=mysqlnd \ |
| 91 | ,--without-mysqli --without-pdo-mysql \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 92 | ,mysql5" |
| 93 | |
| 94 | PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ |
| 95 | --with-pdo-sqlite=${STAGING_LIBDIR}/.. \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 96 | ,--without-sqlite3 --without-pdo-sqlite \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 97 | ,sqlite3" |
| 98 | PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--without-pgsql,postgresql" |
| 99 | PACKAGECONFIG[soap] = "--enable-libxml --enable-soap, --disable-soap, libxml2" |
| 100 | PACKAGECONFIG[apache2] = "--with-apxs2=${STAGING_BINDIR_CROSS}/apxs,,apache2-native apache2" |
| 101 | PACKAGECONFIG[pam] = ",,libpam" |
| 102 | PACKAGECONFIG[imap] = "--with-imap=${STAGING_DIR_HOST} \ |
| 103 | --with-imap-ssl=${STAGING_DIR_HOST} \ |
| 104 | ,--without-imap --without-imap-ssl \ |
| 105 | ,uw-imap" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 106 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 107 | PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache" |
| 108 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" |
Brad Bishop | a891d15 | 2019-09-13 06:17:45 -0400 | [diff] [blame] | 109 | PACKAGECONFIG[valgrind] = "--with-valgrind=${STAGING_DIR_TARGET}/usr,--with-valgrind=no,valgrind" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 110 | |
| 111 | export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" |
| 112 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" |
| 113 | CFLAGS += " -D_GNU_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR}/apache2" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 114 | |
| 115 | EXTRA_OEMAKE = "INSTALL_ROOT=${D}" |
| 116 | |
| 117 | acpaths = "" |
| 118 | |
| 119 | do_configure_prepend () { |
| 120 | rm -f ${S}/build/libtool.m4 ${S}/ltmain.sh ${S}/aclocal.m4 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 121 | find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_SBINDIR_NATIVE}/httpd!' |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | do_configure_append() { |
| 125 | # No, libtool, we really don't want rpath set... |
| 126 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool |
| 127 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool |
| 128 | } |
| 129 | |
| 130 | do_install_append_class-native() { |
| 131 | rm -rf ${D}/${PHP_LIBDIR}/php/.registry |
| 132 | rm -rf ${D}/${PHP_LIBDIR}/php/.channels |
| 133 | rm -rf ${D}/${PHP_LIBDIR}/php/.[a-z]* |
| 134 | } |
| 135 | |
| 136 | do_install_prepend() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 137 | cat ${ACLOCALDIR}/libtool.m4 ${ACLOCALDIR}/lt~obsolete.m4 ${ACLOCALDIR}/ltoptions.m4 \ |
| 138 | ${ACLOCALDIR}/ltsugar.m4 ${ACLOCALDIR}/ltversion.m4 > ${S}/build/libtool.m4 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | do_install_prepend_class-target() { |
| 142 | if ${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'true', 'false', d)}; then |
| 143 | # Install dummy config file so apxs doesn't fail |
| 144 | install -d ${D}${sysconfdir}/apache2 |
| 145 | printf "\nLoadModule dummy_module modules/mod_dummy.so\n" > ${D}${sysconfdir}/apache2/httpd.conf |
| 146 | fi |
| 147 | } |
| 148 | |
| 149 | # fixme |
| 150 | do_install_append_class-target() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 151 | install -d ${D}${sysconfdir}/ |
| 152 | if [ -d ${RECIPE_SYSROOT_NATIVE}${sysconfdir} ];then |
| 153 | install -m 0644 ${RECIPE_SYSROOT_NATIVE}${sysconfdir}/pear.conf ${D}${sysconfdir}/ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 154 | fi |
| 155 | rm -rf ${D}/${TMPDIR} |
| 156 | rm -rf ${D}/.registry |
| 157 | rm -rf ${D}/.channels |
| 158 | rm -rf ${D}/.[a-z]* |
| 159 | rm -rf ${D}/var |
| 160 | rm -f ${D}/${sysconfdir}/php-fpm.conf.default |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 161 | sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}${sysconfdir}/pear.conf |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 162 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf |
| 163 | install -d ${D}/${sysconfdir}/apache2/conf.d |
| 164 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf |
| 165 | install -d ${D}${sysconfdir}/init.d |
| 166 | sed -i 's:=/usr/sbin:=${sbindir}:g' ${B}/sapi/fpm/init.d.php-fpm |
| 167 | sed -i 's:=/etc:=${sysconfdir}:g' ${B}/sapi/fpm/init.d.php-fpm |
| 168 | sed -i 's:=/var:=${localstatedir}:g' ${B}/sapi/fpm/init.d.php-fpm |
| 169 | install -m 0755 ${B}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm |
| 170 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf |
| 171 | |
| 172 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then |
| 173 | install -d ${D}${systemd_unitdir}/system |
| 174 | install -m 0644 ${WORKDIR}/php-fpm.service ${D}${systemd_unitdir}/system/ |
| 175 | sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \ |
| 176 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ |
| 177 | ${D}${systemd_unitdir}/system/php-fpm.service |
| 178 | fi |
| 179 | |
| 180 | TMP=`dirname ${D}/${TMPDIR}` |
| 181 | while test ${TMP} != ${D}; do |
| 182 | if [ -d ${TMP} ]; then |
| 183 | rmdir ${TMP} |
| 184 | fi |
| 185 | TMP=`dirname ${TMP}`; |
| 186 | done |
| 187 | |
| 188 | if ${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'true', 'false', d)}; then |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 189 | install -d ${D}${sysconfdir}/apache2/modules.d |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 190 | install -d ${D}${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 191 | install -m 644 ${WORKDIR}/70_mod_php${PHP_MAJOR_VERSION}.conf ${D}${sysconfdir}/apache2/modules.d |
Brad Bishop | a891d15 | 2019-09-13 06:17:45 -0400 | [diff] [blame] | 192 | sed -i s,lib/,${libexecdir}/, ${D}${sysconfdir}/apache2/modules.d/70_mod_php${PHP_MAJOR_VERSION}.conf |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 193 | cat ${S}/php.ini-production | \ |
| 194 | sed -e 's,extension_dir = \"\./\",extension_dir = \"/usr/lib/extensions\",' \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 195 | > ${D}${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION}/php.ini |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 196 | rm -f ${D}${sysconfdir}/apache2/httpd.conf* |
| 197 | fi |
| 198 | } |
| 199 | |
| 200 | SYSROOT_PREPROCESS_FUNCS += "php_sysroot_preprocess" |
| 201 | |
| 202 | php_sysroot_preprocess () { |
| 203 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 204 | install -m 755 ${D}${bindir}/phpize ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 205 | install -m 755 ${D}${bindir}/php-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 206 | |
| 207 | sed -i 's!eval echo /!eval echo ${STAGING_DIR_HOST}/!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/phpize |
| 208 | sed -i 's!^include_dir=.*!include_dir=${STAGING_INCDIR}/php!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/php-config |
| 209 | } |
| 210 | |
| 211 | MODPHP_PACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp', '', d)}" |
| 212 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 213 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-phar ${MODPHP_PACKAGE} ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}-opcache ${PN}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 214 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 215 | RDEPENDS_${PN} += "libgcc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 216 | RDEPENDS_${PN}-pear = "${PN}" |
| 217 | RDEPENDS_${PN}-phar = "${PN}-cli" |
| 218 | RDEPENDS_${PN}-cli = "${PN}" |
| 219 | RDEPENDS_${PN}-modphp = "${PN} apache2" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 220 | RDEPENDS_${PN}-opcache = "${PN}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 221 | |
| 222 | INITSCRIPT_PACKAGES = "${PN}-fpm" |
| 223 | inherit update-rc.d |
| 224 | |
| 225 | FILES_${PN}-dbg =+ "${bindir}/.debug \ |
Brad Bishop | c1d3433 | 2019-09-09 14:56:00 -0400 | [diff] [blame] | 226 | ${libexecdir}/apache2/modules/.debug" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 227 | FILES_${PN}-doc += "${PHP_LIBDIR}/php/doc" |
| 228 | FILES_${PN}-cli = "${bindir}/php" |
| 229 | FILES_${PN}-phar = "${bindir}/phar*" |
| 230 | FILES_${PN}-cgi = "${bindir}/php-cgi" |
Brad Bishop | a891d15 | 2019-09-13 06:17:45 -0400 | [diff] [blame] | 231 | FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm ${systemd_unitdir}/system/php-fpm.service ${sysconfdir}/php-fpm.d/www.conf.default" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 232 | FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" |
| 233 | CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" |
| 234 | CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" |
| 235 | INITSCRIPT_NAME_${PN}-fpm = "php-fpm" |
| 236 | INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" |
| 237 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${PHP_LIBDIR}/php/PEAR \ |
| 238 | ${PHP_LIBDIR}/php/PEAR*.php ${PHP_LIBDIR}/php/System.php \ |
| 239 | ${PHP_LIBDIR}/php/peclcmd.php ${PHP_LIBDIR}/php/pearcmd.php \ |
| 240 | ${PHP_LIBDIR}/php/.channels ${PHP_LIBDIR}/php/.channels/.alias \ |
| 241 | ${PHP_LIBDIR}/php/.registry ${PHP_LIBDIR}/php/Archive/Tar.php \ |
| 242 | ${PHP_LIBDIR}/php/Console/Getopt.php ${PHP_LIBDIR}/php/OS/Guess.php \ |
| 243 | ${PHP_LIBDIR}/php/data/PEAR \ |
| 244 | ${sysconfdir}/pear.conf" |
| 245 | FILES_${PN}-dev = "${includedir}/php ${PHP_LIBDIR}/build ${bindir}/phpize \ |
| 246 | ${bindir}/php-config ${PHP_LIBDIR}/php/.depdb \ |
| 247 | ${PHP_LIBDIR}/php/.depdblock ${PHP_LIBDIR}/php/.filemap \ |
| 248 | ${PHP_LIBDIR}/php/.lock ${PHP_LIBDIR}/php/test" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 249 | FILES_${PN}-staticdev += "${PHP_LIBDIR}/extensions/*/*.a" |
| 250 | FILES_${PN}-opcache = "${PHP_LIBDIR}/extensions/*/opcache${SOLIBSDEV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 251 | FILES_${PN} = "${PHP_LIBDIR}/php" |
Brad Bishop | c1d3433 | 2019-09-09 14:56:00 -0400 | [diff] [blame] | 252 | FILES_${PN} += "${bindir} ${libexecdir}/apache2" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 253 | |
| 254 | SUMMARY_${PN}-modphp = "PHP module for the Apache HTTP server" |
| 255 | FILES_${PN}-modphp = "${libdir}/apache2 ${sysconfdir}" |
| 256 | |
| 257 | MODPHP_OLDPACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'modphp', '', d)}" |
| 258 | RPROVIDES_${PN}-modphp = "${MODPHP_OLDPACKAGE}" |
| 259 | RREPLACES_${PN}-modphp = "${MODPHP_OLDPACKAGE}" |
| 260 | RCONFLICTS_${PN}-modphp = "${MODPHP_OLDPACKAGE}" |
| 261 | |
| 262 | do_install_append_class-native() { |
| 263 | create_wrapper ${D}${bindir}/php \ |
| 264 | PHP_PEAR_SYSCONF_DIR=${sysconfdir}/ |
| 265 | } |
| 266 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 267 | |
| 268 | # Fails to build with thumb-1 (qemuarm) |
| 269 | # | {standard input}: Assembler messages: |
| 270 | # | {standard input}:3719: Error: selected processor does not support Thumb mode `smull r0,r2,r9,r3' |
| 271 | # | {standard input}:3720: Error: unshifted register required -- `sub r2,r2,r0,asr#31' |
| 272 | # | {standard input}:3796: Error: selected processor does not support Thumb mode `smull r0,r2,r3,r3' |
| 273 | # | {standard input}:3797: Error: unshifted register required -- `sub r2,r2,r0,asr#31' |
| 274 | # | make: *** [ext/standard/math.lo] Error 1 |
| 275 | ARM_INSTRUCTION_SET = "arm" |