Also add the required package dependencies. See also ticket #7237 for
reference.
A simple test case is the following php script:
<?php
$db = new SQLite3("test.db");
?>
It hangs and triggers the max execution time without this patch.
Signed-off-by: Michael Heimpold <mhei at heimpold.de>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23585
3c298f89-4303-0410-b956-
a3cf2f4a3e73
define Package/php5-mod-pdo-sqlite
$(call Package/php5/Default)
define Package/php5-mod-pdo-sqlite
$(call Package/php5/Default)
- DEPENDS:=php5-mod-pdo +libsqlite3
+ DEPENDS:=php5-mod-pdo +libsqlite3 +libpthread
TITLE:=PDO driver for SQLite (3.x)
endef
TITLE:=PDO driver for SQLite (3.x)
endef
define Package/php5-mod-sqlite3
$(call Package/php5/Default)
define Package/php5-mod-sqlite3
$(call Package/php5/Default)
- DEPENDS:=php5 +libsqlite3
+ DEPENDS:=php5 +libsqlite3 +libpthread
TITLE:=SQLite3 shared module (3.x)
endef
define Package/php5-mod-sqlite3/config
TITLE:=SQLite3 shared module (3.x)
endef
define Package/php5-mod-sqlite3/config
--disable-phar
ifneq ($(SDK),)
--disable-phar
ifneq ($(SDK),)
- PKG_BUILD_DEPENDS:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libsqlite3 libpcre libxml2
+ PKG_BUILD_DEPENDS:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libpthread libsqlite3 libpcre libxml2
# force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK
CONFIG_PACKAGE_php5-cli:=m
CONFIG_PACKAGE_php5-cgi:=m
# force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK
CONFIG_PACKAGE_php5-cli:=m
CONFIG_PACKAGE_php5-cgi:=m
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite),)
PKG_CONFIGURE_OPTS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr"
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite),)
PKG_CONFIGURE_OPTS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr"
- PKG_CONFIGURE_LIBS+= -lsqlite3
+ PKG_CONFIGURE_LIBS+= -lsqlite3 -lpthread
else
PKG_CONFIGURE_OPTS+= --without-pdo-sqlite
endif
else
PKG_CONFIGURE_OPTS+= --without-pdo-sqlite
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3),)
PKG_CONFIGURE_OPTS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr"
ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3),)
PKG_CONFIGURE_OPTS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr"
- PKG_CONFIGURE_LIBS+= -lsqlite3
+ PKG_CONFIGURE_LIBS+= -lsqlite3 -lpthread
else
PKG_CONFIGURE_OPTS+= --without-sqlite3
endif
else
PKG_CONFIGURE_OPTS+= --without-sqlite3
endif