Changeset 23585


Ignore:
Timestamp:
2010-10-22T18:47:43+02:00 (6 years ago)
Author:
jow
Message:

[PATCH] php5: Php's sqlite3 module needs to be explicite linked to -lpthread with uClibc.
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>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/lang/php5/Makefile

    r23366 r23585  
    267267define Package/php5-mod-pdo-sqlite 
    268268  $(call Package/php5/Default) 
    269   DEPENDS:=php5-mod-pdo +libsqlite3 
     269  DEPENDS:=php5-mod-pdo +libsqlite3 +libpthread 
    270270  TITLE:=PDO driver for SQLite (3.x) 
    271271endef 
     
    319319define Package/php5-mod-sqlite3 
    320320  $(call Package/php5/Default) 
    321   DEPENDS:=php5 +libsqlite3 
     321  DEPENDS:=php5 +libsqlite3 +libpthread 
    322322  TITLE:=SQLite3 shared module (3.x) 
    323323endef 
     
    391391 
    392392ifneq ($(SDK),) 
    393   PKG_BUILD_DEPENDS:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libsqlite3 libpcre libxml2 
     393  PKG_BUILD_DEPENDS:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libpthread libsqlite3 libpcre libxml2 
    394394# force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK 
    395395  CONFIG_PACKAGE_php5-cli:=m 
     
    528528  ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite),) 
    529529    PKG_CONFIGURE_OPTS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr" 
    530     PKG_CONFIGURE_LIBS+= -lsqlite3 
     530    PKG_CONFIGURE_LIBS+= -lsqlite3 -lpthread 
    531531  else 
    532532    PKG_CONFIGURE_OPTS+= --without-pdo-sqlite 
     
    568568ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3),) 
    569569  PKG_CONFIGURE_OPTS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr" 
    570   PKG_CONFIGURE_LIBS+= -lsqlite3 
     570  PKG_CONFIGURE_LIBS+= -lsqlite3 -lpthread 
    571571else 
    572572  PKG_CONFIGURE_OPTS+= --without-sqlite3 
Note: See TracChangeset for help on using the changeset viewer.