summaryrefslogtreecommitdiffstats
path: root/meta-webserver
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-04-09 15:11:04 +0800
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-04-15 10:56:19 +0100
commit12b72e1eaf552843bbd12a22075efa5f44c01d34 (patch)
treecf08a221d14a91eec9e27d3f709f8ea8ce484f65 /meta-webserver
parentd22869df83bdfb387d7aff9c5b5bcdb8e3f54b38 (diff)
downloadmeta-openembedded-12b72e1eaf552843bbd12a22075efa5f44c01d34.tar.gz
modphp: revert pthread-check.patch and add one against threads.m4
revert pthread-check.patch which hacks the old configure, instead, add one against threads.m4 to enable pthread support when cross-compiling. Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Diffstat (limited to 'meta-webserver')
-rw-r--r--meta-webserver/recipes-php/modphp/files/pthread-check-threads-m4.patch30
-rw-r--r--meta-webserver/recipes-php/modphp/files/pthread-check.patch64
-rw-r--r--meta-webserver/recipes-php/modphp/modphp5.inc2
3 files changed, 31 insertions, 65 deletions
diff --git a/meta-webserver/recipes-php/modphp/files/pthread-check-threads-m4.patch b/meta-webserver/recipes-php/modphp/files/pthread-check-threads-m4.patch
new file mode 100644
index 000000000..0c564cd88
--- /dev/null
+++ b/meta-webserver/recipes-php/modphp/files/pthread-check-threads-m4.patch
@@ -0,0 +1,30 @@
1From d8067ceacbf54e79c9c6b68675332c09eaa0b55d Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Mon, 8 Apr 2013 14:29:51 +0800
4Subject: [PATCH] pthread-check
5
6Enable pthreads support when cross-compiling
7
8Upstream-Status: Inapproprate [config]
9
10Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
11---
12 TSRM/threads.m4 | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
14
15diff --git a/TSRM/threads.m4 b/TSRM/threads.m4
16index 38494ce..15d9454 100644
17--- a/TSRM/threads.m4
18+++ b/TSRM/threads.m4
19@@ -86,7 +86,7 @@ int main() {
20 pthreads_working=no
21 ], [
22 dnl For cross compiling running this test is of no use. NetWare supports pthreads
23- pthreads_working=no
24+ pthreads_working=yes
25 case $host_alias in
26 *netware*)
27 pthreads_working=yes
28--
291.7.4.1
30
diff --git a/meta-webserver/recipes-php/modphp/files/pthread-check.patch b/meta-webserver/recipes-php/modphp/files/pthread-check.patch
deleted file mode 100644
index 1388b2b0b..000000000
--- a/meta-webserver/recipes-php/modphp/files/pthread-check.patch
+++ /dev/null
@@ -1,64 +0,0 @@
1Hack configure script so it does not disable pthread support when cross-compiling
2
3Upstream-Status: Inapproprate [config]
4
5Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
6
7diff --git a/configure b/configure
8index 03d8f95..6794d45 100755
9--- a/configure
10+++ b/configure
11@@ -3506,7 +3506,7 @@ fi
12
13 if test "$cross_compiling" = yes; then
14
15- pthreads_working=no
16+ pthreads_working=yes
17 case $host_alias in
18 *netware*)
19 pthreads_working=yes
20@@ -3566,7 +3566,7 @@ else
21
22 if test "$cross_compiling" = yes; then
23
24- pthreads_working=no
25+ pthreads_working=yes
26 case $host_alias in
27 *netware*)
28 pthreads_working=yes
29@@ -3636,7 +3636,7 @@ if test "$pthreads_working" != "yes"; then
30
31 if test "$cross_compiling" = yes; then
32
33- pthreads_working=no
34+ pthreads_working=yes
35 case $host_alias in
36 *netware*)
37 pthreads_working=yes
38@@ -106833,7 +106833,7 @@ fi
39
40 if test "$cross_compiling" = yes; then
41
42- pthreads_working=no
43+ pthreads_working=yes
44 case $host_alias in
45 *netware*)
46 pthreads_working=yes
47@@ -106893,7 +106893,7 @@ else
48
49 if test "$cross_compiling" = yes; then
50
51- pthreads_working=no
52+ pthreads_working=yes
53 case $host_alias in
54 *netware*)
55 pthreads_working=yes
56@@ -106963,7 +106963,7 @@ if test "$pthreads_working" != "yes"; then
57
58 if test "$cross_compiling" = yes; then
59
60- pthreads_working=no
61+ pthreads_working=yes
62 case $host_alias in
63 *netware*)
64 pthreads_working=yes
diff --git a/meta-webserver/recipes-php/modphp/modphp5.inc b/meta-webserver/recipes-php/modphp/modphp5.inc
index 33dbe8937..0d84ba441 100644
--- a/meta-webserver/recipes-php/modphp/modphp5.inc
+++ b/meta-webserver/recipes-php/modphp/modphp5.inc
@@ -5,7 +5,7 @@ DEPENDS = "apache2-native apache2 zlib bzip2"
5 5
6SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2 \ 6SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2 \
7 file://configure.patch \ 7 file://configure.patch \
8 file://pthread-check.patch \ 8 file://pthread-check-threads-m4.patch \
9 file://70_mod_php5.conf \ 9 file://70_mod_php5.conf \
10 " 10 "
11 11