diff options
author | manu <manu@pkgsrc.org> | 2018-12-07 01:54:52 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2018-12-07 01:54:52 +0000 |
commit | 2bdf08b8871a165289891548c3b58fd008505510 (patch) | |
tree | c0da96f1f72658561e48e650bd2365f0ddbac469 /lang | |
parent | 6f24f2ca46764411b1144440bdab223a4ede99ff (diff) | |
download | pkgsrc-2bdf08b8871a165289891548c3b58fd008505510.tar.gz |
Link PHP with shared libsqlite3 isntead of built-in
We used to build PHP with its built-in, statically linked libsqlite3. When
used in an executable with dynamically looaded modules such as Apache, some
module may load a shared libsqlite3, which has the same symbols as PHP's
built-in libsqlite3. This causes unreliable cross-version calls and is
source of crashes.
The fix is to disable PHP's built-in libslite3 and always use an external,
shared libsqlite3.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php70/Makefile.php | 5 | ||||
-rw-r--r-- | lang/php71/Makefile.php | 5 | ||||
-rw-r--r-- | lang/php72/Makefile.php | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/lang/php70/Makefile.php b/lang/php70/Makefile.php index 7b98a24074d..b0be09c283c 100644 --- a/lang/php70/Makefile.php +++ b/lang/php70/Makefile.php @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.php,v 1.11 2018/07/31 01:17:56 maya Exp $ +# $NetBSD: Makefile.php,v 1.12 2018/12/07 01:54:52 manu Exp $ # used by lang/php70/Makefile # used by www/ap-php/Makefile # used by www/php-fpm/Makefile @@ -46,6 +46,9 @@ CONFIGURE_ARGS+= --enable-xml CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX} .include "../../textproc/libxml2/buildlink3.mk" +CONFIGURE_ARGS+= --with-sqlite3=shared +.include "../../databases/sqlite3/buildlink3.mk" + PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline disable-filter-url PKG_SUGGESTED_OPTIONS+= inet6 ssl readline diff --git a/lang/php71/Makefile.php b/lang/php71/Makefile.php index a161e9b47ff..ae681b8b3a9 100644 --- a/lang/php71/Makefile.php +++ b/lang/php71/Makefile.php @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.php,v 1.10 2018/07/31 01:17:56 maya Exp $ +# $NetBSD: Makefile.php,v 1.11 2018/12/07 01:54:52 manu Exp $ # used by lang/php71/Makefile # used by www/ap-php/Makefile # used by www/php-fpm/Makefile @@ -46,6 +46,9 @@ CONFIGURE_ARGS+= --enable-xml CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX} .include "../../textproc/libxml2/buildlink3.mk" +CONFIGURE_ARGS+= --with-sqlite3=shared +.include "../../databases/sqlite3/buildlink3.mk" + PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline disable-filter-url PKG_SUGGESTED_OPTIONS+= inet6 ssl readline diff --git a/lang/php72/Makefile.php b/lang/php72/Makefile.php index 7ea0b857a31..d72db7677ab 100644 --- a/lang/php72/Makefile.php +++ b/lang/php72/Makefile.php @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.php,v 1.8 2018/07/31 01:17:56 maya Exp $ +# $NetBSD: Makefile.php,v 1.9 2018/12/07 01:54:53 manu Exp $ # used by lang/php72/Makefile # used by www/ap-php/Makefile # used by www/php-fpm/Makefile @@ -49,6 +49,9 @@ CONFIGURE_ARGS+= --enable-xml CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX} .include "../../textproc/libxml2/buildlink3.mk" +CONFIGURE_ARGS+= --with-sqlite3=shared +.include "../../databases/sqlite3/buildlink3.mk" + CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre} PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} |