1e056f0606
09 Jun 2022, PHP 8.1.7 - CLI: . Fixed bug GH-8575 (CLI closes standard streams too early). (Levi Morrison) - Date: . Fixed bug #51934 (strtotime plurals / incorrect time). (Derick) . Fixed bug #51987 (Datetime fails to parse an ISO 8601 ordinal date (extended format)). (Derick) . Fixed bug #66019 (DateTime object does not support short ISO 8601 time format - YYYY-MM-DDTHH) (cmb, Derick) . Fixed bug #68549 (Timezones and offsets are not properly used when working with dates) (Derick, Roel Harbers) . Fixed bug #81565 (date parsing fails when provided with timezones including seconds). (Derick) . Fixed bug GH-7758 (Problems with negative timestamps and fractions). (Derick, Ilija) - FPM: . Fixed ACL build check on MacOS. (David Carlier) . Fixed bug #72185: php-fpm writes empty fcgi record causing nginx 502. (Jakub Zelenka, loveharmful) - mysqlnd: . Fixed bug #81719: mysqlnd/pdo password buffer overflow. (CVE-2022-31626) (c dot fol at ambionics dot io) - OPcache: . Fixed bug GH-8461 (tracing JIT crash after function/method change). (Arnaud, Dmitry) - OpenSSL: . Fixed bug #79589 (error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading). (Jakub Zelenka) - Pcntl: . Fixed Haiku build. (David Carlier) - pgsql . Fixed bug #81720: Uninitialized array in pg_query_params(). (CVE-2022-31625) (cmb) - Soap: . Fixed bug GH-8578 (Error on wrong parameter on SoapHeader constructor). (robertnisipeanu) . Fixed bug GH-8538 (SoapClient may strip parts of nmtokens). (cmb) - SPL: . Fixed bug GH-8235 (iterator_count() may run indefinitely). (cmb) - Standard: . Fixed bug GH-8185 (Crash during unloading of extension after dl() in ZTS). (Arnaud) - Zip: . Fixed type for index in ZipArchive::replaceFile. (Martin Rehberger)
77 lines
2.1 KiB
Makefile
77 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2022/06/09 15:10:50 taca Exp $
|
|
|
|
#
|
|
# We can't omit PKGNAME here to handle PKG_OPTIONS.
|
|
#
|
|
PKGNAME= php-${PHP_VERSION:S/RC/rc/}
|
|
|
|
COMMENT= PHP Hypertext Preprocessor version 8.1
|
|
LICENSE= php
|
|
|
|
TEST_TARGET= test
|
|
|
|
USE_TOOLS+= gmake lex
|
|
LIBTOOL_OVERRIDE= # empty
|
|
PHP_CHECK_INSTALLED= No
|
|
|
|
PHP_VERSIONS_ACCEPTED= 81
|
|
|
|
.include "Makefile.php"
|
|
|
|
CGIDIR= ${PREFIX}/libexec/cgi-bin
|
|
EGDIR= ${PREFIX}/share/examples/php
|
|
MESSAGE_SUBST+= CGIDIR=${CGIDIR}
|
|
|
|
CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q}
|
|
MAKE_ENV+= INSTALL_ROOT=${DESTDIR}
|
|
|
|
CONF_FILES= ${EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
|
|
PLIST_SUBST+= PHPEXTDIR="${PHP_EXTENSION_DIR}"
|
|
|
|
# taken from devel/pkgconf/Makefile
|
|
PKGCONFIG_PATHS= ${PREFIX}/lib/pkgconfig
|
|
PKGCONFIG_PATHS+= ${PREFIX}/share/pkgconfig
|
|
PKGCONFIG_PATHS+= /usr/lib/pkgconfig
|
|
|
|
# At this point, PREFIX is not set yet.
|
|
.if ${LOCALBASE} != ${X11BASE}
|
|
PKGCONFIG_PATHS+= ${X11BASE}/lib/pkgconfig
|
|
.endif
|
|
|
|
PHP_PKGCONFIG_PATH= ${PKGCONFIG_PATHS:ts:}
|
|
|
|
REPLACE_PHP= ext/phar/phar/phar.php run-tests.php
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_MESSAGE.path= Fixing common paths.
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_FILES.path= configure
|
|
SUBST_FILES.path+= php.ini-development php.ini-production
|
|
SUBST_FILES.path+= sapi/cgi/Makefile.frag
|
|
SUBST_VARS.path= CGIDIR
|
|
SUBST_VARS.path+= PREFIX
|
|
SUBST_VARS.path+= TOOLS_PATH.pkg-config PHP_PKGCONFIG_PATH
|
|
|
|
INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
|
|
|
|
# Make sure modules can link correctly
|
|
.if ${OPSYS} == "Darwin"
|
|
INSTALL_UNSTRIPPED= yes
|
|
.endif
|
|
|
|
# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
|
|
# and lacks the zone memory allocator
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
|
|
CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${DESTDIR}${PREFIX}/bin/php
|
|
${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/php.1
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sapi/cgi/php-cgi ${DESTDIR}${CGIDIR}/php
|
|
cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
|
|
${DESTDIR}${EGDIR}
|
|
|
|
.include "../../lang/php/replace.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|