From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-devel@lists.openembedded.org
Subject: [RFC] php: build both php-cgi and php-fpm
Date: Mon, 4 Feb 2013 18:41:06 +0100 [thread overview]
Message-ID: <1359999666-26843-1-git-send-email-eric@eukrea.com> (raw)
- when enabling fpm, CGI is disabled, so build php-cgi first and then
reconfigure and build fpm
- php-fpm is run tested after this change
- php-cgi is only compil tested
- --enable-discard-path, --enable-fastcgi were removed as these options
are not recognized by configure :
configure: WARNING: unrecognized options: --disable-silent-rules,
--disable-dependency-tracking, --enable-discard-path,
--enable-fastcgi, --enable-nls
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
meta-oe/recipes-devtools/php/php.inc | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 29e82fa..e3daaa5 100644
--- a/meta-oe/recipes-devtools/php/php.inc
+++ b/meta-oe/recipes-devtools/php/php.inc
@@ -7,7 +7,7 @@ DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native mysql5 \
libc-client openssl sqlite3"
DEPENDS_virtclass-native = "zlib-native libxml2-native"
-INC_PR = "r4"
+INC_PR = "r5"
SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2"
@@ -19,8 +19,8 @@ SSTATE_SCAN_FILES += "build-defs.h"
# Common EXTRA_OECONF
COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared"
-EXTRA_OECONF = "--enable-mbstring --enable-discard-path --enable-wddx \
- --enable-magic-quotes --enable-fastcgi --enable-fpm \
+EXTRA_OECONF = "--enable-mbstring --enable-wddx \
+ --enable-magic-quotes --enable-cgi \
--with-imap=${STAGING_DIR_HOST} \
--with-gettext=${STAGING_LIBDIR}/.. \
--with-imap-ssl=${STAGING_DIR_HOST} \
@@ -30,7 +30,7 @@ EXTRA_OECONF = "--enable-mbstring --enable-discard-path --enable-wddx \
--disable-embedded-mysqli \
--with-mysql="${STAGING_DIR_TARGET}${prefix}" \
--with-mysqli="${STAGING_BINDIR_CROSS}/mysql_config" \
- --with-sqlite3=${STAGING_LIBDIR}/.. --enable-sqlite-utf8 \
+ --with-sqlite3=${STAGING_LIBDIR}/.. --enable-sqlite-utf8 \
--with-pdo-mysql="${STAGING_BINDIR_CROSS}/mysql_config" \
--with-pdo-sqlite=${STAGING_LIBDIR}/.. ${COMMON_EXTRA_OECONF} \
"
@@ -63,6 +63,10 @@ do_install_append_pn-php-native() {
# fixme
do_install_append_pn-php() {
+ # reconfigure to build php-fpm
+ oe_runconf --enable-fpm
+ oe_runmake 'INSTALL_ROOT=${D}' install
+
install -d ${D}/${sysconfdir}/
mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/
rm -rf ${D}/${TMPDIR}
--
1.7.11.7
reply other threads:[~2013-02-04 17:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359999666-26843-1-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.