summaryrefslogtreecommitdiff
path: root/package/php
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 23:00:18 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 23:00:18 +0100
commit5bfdfbcee97c930c3c14dc3745089ac28e76ca41 (patch)
tree723a2310434afd85f68b3437e17917fcc6c5d623 /package/php
parent16d7827ef1aec4aab89033ed1d47ca82fa3a3ba7 (diff)
parent58d31896056e604185acf3606b99257cea519dd1 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/php')
-rw-r--r--package/php/Makefile40
-rw-r--r--package/php/patches/patch-ext_standard_php_crypt_r_c11
2 files changed, 31 insertions, 20 deletions
diff --git a/package/php/Makefile b/package/php/Makefile
index da9ff221d..2cfb67674 100644
--- a/package/php/Makefile
+++ b/package/php/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= php
-PKG_VERSION:= 5.3.3
+PKG_VERSION:= 5.3.4
PKG_RELEASE:= 1
-PKG_MD5SUM:= 5adf1a537895c2ec933fddd48e78d8a2
+PKG_MD5SUM:= b69b36132899c5ca3bf155efa0218676
PKG_DESCR:= PHP language interpreter
PKG_SECTION:= lang
PKG_DEPENDS:= libopenssl zlib
@@ -65,9 +65,9 @@ PKG_CONFIGURE_OPTS:= \
--disable-mbstring \
--disable-mbregex \
--disable-phar \
- --with-openssl=shared,"$(STAGING_DIR)/usr" \
+ --with-openssl=shared,"$(STAGING_TARGET_DIR)/usr" \
--with-kerberos=no \
- --with-openssl-dir="$(STAGING_DIR)/usr" \
+ --with-openssl-dir="$(STAGING_TARGET_DIR)/usr" \
--enable-session=shared \
--disable-simplexml \
--disable-soap \
@@ -77,8 +77,8 @@ PKG_CONFIGURE_OPTS:= \
--disable-filter \
--disable-xmlreader \
--disable-xmlwriter \
- --with-zlib="$(STAGING_DIR)/usr" \
- --with-zlib-dir="$(STAGING_DIR)/usr" \
+ --with-zlib="$(STAGING_TARGET_DIR)/usr" \
+ --with-zlib-dir="$(STAGING_TARGET_DIR)/usr" \
--enable-cli \
--enable-cgi \
--enable-fastcgi \
@@ -86,15 +86,15 @@ PKG_CONFIGURE_OPTS:= \
--enable-discard-path \
ifneq ($(ADK_PACKAGE_PHP_MOD_CURL),)
-PKG_CONFIGURE_OPTS+= --with-curl=shared,"$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --with-curl=shared,"$(STAGING_TARGET_DIR)/usr"
else
PKG_CONFIGURE_OPTS+= --without-curl
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_GD),)
-PKG_CONFIGURE_OPTS+= --with-gd=shared,"$(STAGING_DIR)/usr" \
+PKG_CONFIGURE_OPTS+= --with-gd=shared,"$(STAGING_TARGET_DIR)/usr" \
--without-freetype-dir \
- --with-jpeg-dir="$(STAGING_DIR)/usr" \
- --with-png-dir="$(STAGING_DIR)/usr" \
+ --with-jpeg-dir="$(STAGING_TARGET_DIR)/usr" \
+ --with-png-dir="$(STAGING_TARGET_DIR)/usr" \
--without-xpm-dir \
--without-ttf \
--without-t1lib \
@@ -104,41 +104,41 @@ else
PKG_CONFIGURE_OPTS+= --without-gd
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_GMP),)
-PKG_CONFIGURE_OPTS+= --with-gmp=shared,"$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --with-gmp=shared,"$(STAGING_TARGET_DIR)/usr"
else
PKG_CONFIGURE_OPTS+= --without-gmp
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_LDAP),)
-PKG_CONFIGURE_OPTS+= --with-ldap=shared,"$(STAGING_DIR)/usr" \
- --with-ldap-sasl="$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --with-ldap=shared,"$(STAGING_TARGET_DIR)/usr" \
+ --with-ldap-sasl="$(STAGING_TARGET_DIR)/usr"
else
PKG_CONFIGURE_OPTS+= --without-ldap
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_MYSQL),)
-PKG_CONFIGURE_OPTS+= --with-mysql=shared,"$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --with-mysql=shared,"$(STAGING_TARGET_DIR)/usr"
else
PKG_CONFIGURE_OPTS+= --without-mysql
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_PCRE),)
-PKG_CONFIGURE_OPTS+= --with-pcre-dir=shared,"$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --with-pcre-dir=shared,"$(STAGING_TARGET_DIR)/usr"
else
PKG_CONFIGURE_OPTS+= --without-pcre-dir
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_PGSQL),)
-PKG_CONFIGURE_OPTS+= --with-pgsql=shared,"$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --with-pgsql=shared,"$(STAGING_TARGET_DIR)/usr"
else
PKG_CONFIGURE_OPTS+= --without-pgsql
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_SQLITE),)
PKG_CONFIGURE_OPTS+= --without-sqlite
-PKG_CONFIGURE_OPTS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --with-pdo-sqlite=shared,"$(STAGING_TARGET_DIR)/usr"
PKG_CONFIGURE_OPTS+= --enable-pdo=shared
else
PKG_CONFIGURE_OPTS+= --without-sqlite
endif
ifneq ($(ADK_PACKAGE_PHP_MOD_XML),)
-PKG_CONFIGURE_OPTS+= --enable-xml=shared,"$(STAGING_DIR)/usr" \
- --with-libexpat-dir="$(STAGING_DIR)/usr"
+PKG_CONFIGURE_OPTS+= --enable-xml=shared,"$(STAGING_TARGET_DIR)/usr" \
+ --with-libexpat-dir="$(STAGING_TARGET_DIR)/usr"
else
PKG_CONFIGURE_OPTS+= --disable-xml
endif
@@ -172,7 +172,7 @@ $(eval $(call PKG_mod_template,PHP_MOD_XML,xml))
INSTALL_STYLE:= manual
-TLDFLAGS+= -L$(STAGING_DIR)/usr/lib/mysql
+TLDFLAGS+= -L$(STAGING_TARGET_DIR)/usr/lib/mysql
CONFIGURE_ENV+= LIBS="-ldl"
CONFIGURE_ARGS+= $(PKG_CONFIGURE_OPTS)
diff --git a/package/php/patches/patch-ext_standard_php_crypt_r_c b/package/php/patches/patch-ext_standard_php_crypt_r_c
new file mode 100644
index 000000000..1c47df417
--- /dev/null
+++ b/package/php/patches/patch-ext_standard_php_crypt_r_c
@@ -0,0 +1,11 @@
+--- php-5.3.4.orig/ext/standard/php_crypt_r.c 2010-06-17 12:22:03.000000000 +0200
++++ php-5.3.4/ext/standard/php_crypt_r.c 2010-12-30 12:53:12.000000000 +0100
+@@ -94,7 +94,7 @@ void _crypt_extended_init_r(void)
+ if (!initialized) {
+ #ifdef PHP_WIN32
+ InterlockedIncrement(&initialized);
+-#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR >= 2))
++#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR >= 2)) || defined(__UCLIBC__)
+ __sync_fetch_and_add(&initialized, 1);
+ #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */
+ membar_producer();