[oe-commits] Frans Meulenbroeks : php: fixed build errors

git version control git at git.openembedded.org
Wed Oct 21 14:54:22 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: d9cb7ebc9d52ee74172a93c256408293651a373a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d9cb7ebc9d52ee74172a93c256408293651a373a

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Wed Oct 21 16:53:52 2009 +0200

php: fixed build errors

---

 recipes/php/php-5.2.6/string.c.patch |   21 +++++++++++++++++++++
 recipes/php/php.inc                  |    2 +-
 recipes/php/php_5.2.6.bb             |    5 +++--
 3 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/recipes/php/php-5.2.6/string.c.patch b/recipes/php/php-5.2.6/string.c.patch
new file mode 100644
index 0000000..a24b887
--- /dev/null
+++ b/recipes/php/php-5.2.6/string.c.patch
@@ -0,0 +1,21 @@
+Index: php-5.2.6/ext/standard/string.c
+===================================================================
+--- php-5.2.6.orig/ext/standard/string.c
++++ php-5.2.6/ext/standard/string.c
+@@ -592,14 +592,12 @@ PHP_FUNCTION(nl_langinfo)
+ #endif
+ #ifdef DECIMAL_POINT
+ 		case DECIMAL_POINT:
+-#endif
+-#ifdef RADIXCHAR
++#elif RADIXCHAR
+ 		case RADIXCHAR:
+ #endif
+ #ifdef THOUSANDS_SEP
+ 		case THOUSANDS_SEP:
+-#endif
+-#ifdef THOUSEP
++#elif THOUSEP
+ 		case THOUSEP:
+ #endif
+ #ifdef GROUPING
diff --git a/recipes/php/php.inc b/recipes/php/php.inc
index e9d49a3..0f9a420 100644
--- a/recipes/php/php.inc
+++ b/recipes/php/php.inc
@@ -10,7 +10,7 @@ S = "${WORKDIR}/php-${PV}"
 
 inherit autotools
 
-CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
+CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -D_GNU_SOURCE"
 
 acpaths = ""
 
diff --git a/recipes/php/php_5.2.6.bb b/recipes/php/php_5.2.6.bb
index c6cb00f..38e8656 100644
--- a/recipes/php/php_5.2.6.bb
+++ b/recipes/php/php_5.2.6.bb
@@ -2,9 +2,10 @@ require php.inc
 
 DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native"
 
-PR = "r5"
+PR = "r6"
 
-SRC_URI += "file://pear-makefile.patch;patch=1 "
+SRC_URI += "file://pear-makefile.patch;patch=1 \
+	file://string.c.patch;patch=1 "
 
 export THREADS="pthread"
 export LIBS=" -lpthread "





More information about the Openembedded-commits mailing list