mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
php5: update to later minor version 5.4.36
Dizzy is missing several CVE's and upgrading to a later version within the same
series seems reasonable since most changes are bugfixes or Security releated.
if you are ok with this approach, please Ack and I will stage this with the next series of updates I am working on.
- armin
18-Dec-2014
Core:
Upgraded crypt_blowfish to version 1.3.
Fixed bug #68545 (NULL pointer dereference in unserialize.c).
Fixed bug #68594 (Use after free vulnerability in unserialize()). (CVE-2014-8142)
Mcrypt:
Fixed possible read after end of buffer and use after free.
13 Nov 2014
Core:
Fixed bug #68365 (zend_mm_heap corrupted after memory overflow in zend_hash_copy).
Fileinfo:
Fixed bug #68283 (fileinfo: out-of-bounds read in elf note headers). (CVE-2014-3710)
GMP:
Fixed bug #63595 (GMP memory management conflicts with other libraries using GMP).
PDO_pgsql:
Fixed bug #66584 (Segmentation fault on statement deallocation).
16 Oct 2014
Fileinfo:
Fixed bug #66242 (libmagic: don't assume char is signed).
Core:
Fixed bug #67985 (Incorrect last used array index copied to new array after unset).
Fixed bug #68044 (Integer overflow in unserialize() (32-bits only)). (CVE-2014-3669)
cURL:
Fixed bug #68089 (NULL byte injection - cURL lib).
EXIF:
Fixed bug #68113 (Heap corruption in exif_thumbnail()). (CVE-2014-3670)
OpenSSL:
Reverted fixes for bug #41631, due to regressions.
XMLRPC:
Fixed bug #68027 (Global buffer overflow in mkgmtime() function). (CVE-2014-3668)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
200f6cafc8
commit
3ee3d05ce3
@@ -0,0 +1,150 @@
|
||||
DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the CGI."
|
||||
HOMEPAGE = "http://www.php.net"
|
||||
SECTION = "console/network"
|
||||
|
||||
LICENSE = "PHP-3.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb564efdf78cce8ea6e4b5a4f7c05d97"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \
|
||||
libc-client openssl"
|
||||
DEPENDS_virtclass-native = "zlib-native libxml2-native"
|
||||
|
||||
# The new PHP downloads server groups PHP releases by major version so find
|
||||
# the major version of the PHP recipe.
|
||||
PHP_MAJVER = "${@d.getVar('PV',1).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 += " \
|
||||
file://iconv.patch \
|
||||
file://imap-fix-autofoo.patch \
|
||||
file://pear-makefile.patch \
|
||||
file://phar-makefile.patch \
|
||||
file://php_exec_native.patch \
|
||||
file://php-fpm.conf \
|
||||
file://php-fpm-apache.conf \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "70e223be4bb460e465b7a9d7cb5b9cac"
|
||||
SRC_URI[sha256sum] = "b0951608c3e8afb978a624c7f79a889980210f5258f666c1d997bd6491e13241"
|
||||
|
||||
S = "${WORKDIR}/php-${PV}"
|
||||
|
||||
inherit autotools pkgconfig pythonnative gettext
|
||||
|
||||
SSTATE_SCAN_FILES += "build-defs.h"
|
||||
|
||||
# Common EXTRA_OECONF
|
||||
COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared"
|
||||
EXTRA_OECONF = "--enable-mbstring \
|
||||
--enable-wddx \
|
||||
--enable-fpm \
|
||||
--with-imap=${STAGING_DIR_HOST} \
|
||||
--with-gettext=${STAGING_LIBDIR}/.. \
|
||||
--with-imap-ssl=${STAGING_DIR_HOST} \
|
||||
--with-zlib=${STAGING_LIBDIR}/.. \
|
||||
--with-iconv=${STAGING_LIBDIR}/.. \
|
||||
${COMMON_EXTRA_OECONF} \
|
||||
"
|
||||
EXTRA_OECONF_virtclass-native = " \
|
||||
--with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
|
||||
--without-iconv \
|
||||
${COMMON_EXTRA_OECONF} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ??= "mysql sqlite3"
|
||||
PACKAGECONFIG_class-native = ""
|
||||
|
||||
PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \
|
||||
--with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \
|
||||
--with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \
|
||||
, \
|
||||
,mysql5"
|
||||
|
||||
PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \
|
||||
--with-pdo-sqlite=${STAGING_LIBDIR}/.. \
|
||||
, \
|
||||
,sqlite3"
|
||||
|
||||
export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
|
||||
export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php"
|
||||
CFLAGS += " -D_GNU_SOURCE"
|
||||
|
||||
EXTRA_OEMAKE = "INSTALL_ROOT=${D}"
|
||||
|
||||
acpaths = ""
|
||||
|
||||
do_install_append_class-native() {
|
||||
rm -rf ${D}/${libdir}/php/.registry
|
||||
rm -rf ${D}/${libdir}/php/.channels
|
||||
rm -rf ${D}/${libdir}/php/.[a-z]*
|
||||
}
|
||||
|
||||
# fixme
|
||||
do_install_append_class-target() {
|
||||
install -d ${D}/${sysconfdir}/
|
||||
if [ -d ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ];then
|
||||
mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/
|
||||
fi
|
||||
rm -rf ${D}/${TMPDIR}
|
||||
rm -rf ${D}/.registry
|
||||
rm -rf ${D}/.channels
|
||||
rm -rf ${D}/.[a-z]*
|
||||
rm -rf ${D}/var
|
||||
rm -f ${D}/${sysconfdir}/php-fpm.conf.default
|
||||
sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf
|
||||
install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf
|
||||
install -d ${D}/${sysconfdir}/apache2/conf.d
|
||||
install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
sed -i 's:=/usr/sbin:=${sbindir}:g' ${B}/sapi/fpm/init.d.php-fpm
|
||||
sed -i 's:=/etc:=${sysconfdir}:g' ${B}/sapi/fpm/init.d.php-fpm
|
||||
sed -i 's:=/var:=${localstatedir}:g' ${B}/sapi/fpm/init.d.php-fpm
|
||||
install -m 0755 ${B}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm
|
||||
TMP=`dirname ${D}/${TMPDIR}`
|
||||
while test ${TMP} != ${D}; do
|
||||
rmdir ${TMP}
|
||||
TMP=`dirname ${TMP}`;
|
||||
done
|
||||
}
|
||||
|
||||
PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}"
|
||||
|
||||
RDEPENDS_${PN}-pear = "${PN}"
|
||||
RDEPENDS_${PN}-cli = "${PN}"
|
||||
RDEPENDS_${PN}-dev = "${PN}"
|
||||
|
||||
INITSCRIPT_PACKAGES = "${PN}-fpm"
|
||||
inherit update-rc.d
|
||||
|
||||
FILES_${PN}-dbg =+ "${bindir}/.debug"
|
||||
FILES_${PN}-doc += "${libdir}/php/doc"
|
||||
FILES_${PN}-cli = "${bindir}/php"
|
||||
FILES_${PN}-cgi = "${bindir}/php-cgi"
|
||||
FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm"
|
||||
FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf"
|
||||
CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf"
|
||||
CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf"
|
||||
INITSCRIPT_NAME_${PN}-fpm = "php-fpm"
|
||||
INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60"
|
||||
FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \
|
||||
${libdir}/php/PEAR.php ${libdir}/php/System.php \
|
||||
${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \
|
||||
${libdir}/php/.channels ${libdir}/php/.channels/.alias \
|
||||
${libdir}/php/.channels\__uri.reg \
|
||||
${libdir}/php/.channels\pear.php.net.reg \
|
||||
${libdir}/php/.channels/pecl.php.net.reg \
|
||||
${libdir}/php/.registry ${libdir}/php/Archive/Tar.php \
|
||||
${libdir}/php/Console/Getopt.php ${libdir}/php/OS/Guess.php \
|
||||
${sysconfdir}/pear.conf"
|
||||
FILES_${PN}-dev = "${includedir}/php ${libdir}/build ${bindir}/phpize \
|
||||
${bindir}/php-config ${libdir}/php/.depdb \
|
||||
${libdir}/php/.depdblock ${libdir}/php/.filemap \
|
||||
${libdir}/php/.lock ${libdir}/php/test"
|
||||
FILES_${PN} = "${libdir}/php"
|
||||
FILES_${PN} += "${bindir}"
|
||||
Reference in New Issue
Block a user