Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/php

Buildroot antab at uclibc.org 3 participants 4 messages Jun 1, 2008 – Jun 2, 2008

lore
Share & tools
lore
#0 lore raw

Author: antab
Date: 2008-06-01 11:04:13 -0700 (Sun, 01 Jun 2008) New Revision: 22164

Log:
Dump php to version 5.2.6 and add SimpleXML extension to config menu

Modified:
trunk/buildroot/package/php/Config.ext
trunk/buildroot/package/php/php.mk

Changeset:
Modified: trunk/buildroot/package/php/Config.ext
===================================================================

buildroot/package/php/Config.ext +17 -10
@@ -29,19 +29,26 @@
 	  Session support
 
 config BR2_PACKAGE_PHP_EXT_OPENSSL
-        bool "openssl"
-        depends on BR2_PACKAGE_PHP && BR2_PACKAGE_OPENSSL
-        default n
-        help
-          openssl support
+	bool "openssl"
+	depends on BR2_PACKAGE_PHP && BR2_PACKAGE_OPENSSL
+	default n
+	help
+	  openssl support
 
 config BR2_PACKAGE_PHP_EXT_LIBXML2
-        bool "xml2"
-        depends on BR2_PACKAGE_PHP && BR2_PACKAGE_LIBXML2
-        default y
-        help
-          xml support
+	bool "xml2"
+	depends on BR2_PACKAGE_PHP && BR2_PACKAGE_LIBXML2
+	default y
+	help
+	  xml support
 
+config BR2_PACKAGE_PHP_EXT_SIMPLEXML
+	bool "simplexml"
+	depends on BR2_PACKAGE_PHP
+	select BR2_PACKAGE_PHP_EXIT_LIBXML2
+	help
+	  SimpleXML support
+
 config BR2_PACKAGE_PHP_EXT_ZLIB
         bool "zlib"
         depends on BR2_PACKAGE_PHP && BR2_PACKAGE_ZLIB

Modified: trunk/buildroot/package/php/php.mk
===================================================================

buildroot/package/php/php.mk +8 -5
@@ -3,7 +3,7 @@
 # php
 #
 #############################################################
-PHP_VER:=5.2.5
+PHP_VER:=5.2.6
 PHP_SOURCE:=php-$(PHP_VER).tar.bz2
 PHP_SITE:=http://us.php.net/get/${PHP_SOURCE}/from/us2.php.net/mirror
 PHP_DIR:=$(BUILD_DIR)/php-$(PHP_VER)
@@ -58,6 +58,9 @@
 		 --enable-xmlwriter
 	PHP_DEPS+=libxml2
 endif
+ifeq ($(BR2_PACKAGE_PHP_EXT_SIMPLEXML),y)
+	PHP_CONFIGURE+=--enable-simplexml
+endif
 ifeq ($(BR2_PACKAGE_PHP_EXT_ZLIB),y)
 	PHP_CONFIGURE+=--with-zlib=$(STAGING_DIR)/usr
 	PHP_DEPS+=zlib
@@ -105,20 +108,20 @@
 
 ### Database extensions
 ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
-	PHP_CONFIGURE+=--with-sql
+	PHP_CONFIGURE+=--with-sqlite
 ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE_UTF8),y)
 	PHP_CONFIGURE+=--enable-sqlite-utf8
 endif
 endif
 ifeq ($(BR2_PACKAGE_PHP_EXT_PDO),y)
+	PHP_CONFIGURE+=--enable-pdo
 ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_SQLITE),y)
 	PHP_CONFIGURE+=--with-pdo-sqlite
 endif
 ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_MYSQL),y)
-	PHP_CONFIGURE+=--with-pdo-mysql
+	PHP_CONFIGURE+=--with-pdo-mysql=$(STAGING_DIR)/usr
+	PHP_DEPS+=mysql_client
 endif
-else
-	PHP_CONFIGURE+=--without-pdo-sqlite
 endif
 
 $(DL_DIR)/$(PHP_SOURCE):
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"antab" == antab <[email protected]> writes:

antab> Author: antab
antab> Date: 2008-06-01 11:04:13 -0700 (Sun, 01 Jun 2008) antab> New Revision: 22164

antab> Log:
antab> Dump php to version 5.2.6 and add SimpleXML extension to config menu

...

antab> config BR2_PACKAGE_PHP_EXT_OPENSSL

 antab> -        bool "openssl"
 antab> -        depends on BR2_PACKAGE_PHP && BR2_PACKAGE_OPENSSL
 antab> -        default n
 antab> -        help

antab> - openssl support
antab> + bool "openssl"
antab> + depends on BR2_PACKAGE_PHP && BR2_PACKAGE_OPENSSL
antab> + default n
antab> + help
antab> + openssl support

Please don't do white space and functional changes in the same commit.

antab> @@ -3,7 +3,7 @@

 antab>  # php
 antab>  #
 antab>  #############################################################
 antab> -PHP_VER:=5.2.5
 antab> +PHP_VER:=5.2.6
 antab>  PHP_SOURCE:=php-$(PHP_VER).tar.bz2
 antab>  PHP_SITE:=http://us.php.net/get/${PHP_SOURCE}/from/us2.php.net/mirror
 antab>  PHP_DIR:=$(BUILD_DIR)/php-$(PHP_VER)
 antab> @@ -58,6 +58,9 @@
 antab>  		 --enable-xmlwriter
 antab>  	PHP_DEPS+=libxml2
 antab>  endif
 antab> +ifeq ($(BR2_PACKAGE_PHP_EXT_SIMPLEXML),y)
 antab> +	PHP_CONFIGURE+=--enable-simplexml
 antab> +endif
 antab>  ifeq ($(BR2_PACKAGE_PHP_EXT_ZLIB),y)
 antab>  	PHP_CONFIGURE+=--with-zlib=$(STAGING_DIR)/usr
 antab>  	PHP_DEPS+=zlib

antab> @@ -105,20 +108,20 @@

antab> ### Database extensions
antab> ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
antab> - PHP_CONFIGURE+=--with-sql
antab> + PHP_CONFIGURE+=--with-sqlite

Don't you need a depends on BR2_PACKAGE_SQLITE?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
In reply to antab at uclibc.org
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"antab" == antab <[email protected]> writes:

Hi,

antab> Author: antab
antab> Date: 2008-06-01 11:04:13 -0700 (Sun, 01 Jun 2008) antab> New Revision: 22164

antab> Log:
antab> Dump php to version 5.2.6 and add SimpleXML extension to config menu

antab> +config BR2_PACKAGE_PHP_EXT_SIMPLEXML
antab> + bool "simplexml"
antab> + depends on BR2_PACKAGE_PHP
antab> + select BR2_PACKAGE_PHP_EXIT_LIBXML2

s/EXIT/EXT ?

package/php/Config.ext:48:warning: 'select' used by config symbol 'BR2_PACKAGE_PHP_EXT_SIMPLEXML' refers to undefined symbol 'BR2_PACKAGE_PHP_EXIT_LIBXML2'

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw
Quoted 18 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"antab" == antab <[email protected]> writes:

Hi,

antab> Author: antab
antab> Date: 2008-06-01 11:04:13 -0700 (Sun, 01 Jun 2008) antab> New Revision: 22164

antab> Log:
antab> Dump php to version 5.2.6 and add SimpleXML extension to config menu

antab> +config BR2_PACKAGE_PHP_EXT_SIMPLEXML
antab> + bool "simplexml"
antab> + depends on BR2_PACKAGE_PHP
antab> + select BR2_PACKAGE_PHP_EXIT_LIBXML2

Quoted 5 lines

s/EXIT/EXT ?

package/php/Config.ext:48:warning: 'select' used by config symbol 'BR2_PACKAGE_PHP_EXT_SIMPLEXML' refers to undefined symbol 'BR2_PACKAGE_PHP_EXIT_LIBXML2'

Wonder if it's related to my report at
http://bugs.uclibc.org/view.php?id=3484
If simplexml is an option shouldn't xmlreader/writer be so too? They all depend on libxml2 so they're unlikely to trigger bloat by themselves.
For consistency they should all be options or none. Regards.