From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
Subject: Re: [PATCH 1/2] php: add sqlite3 and mysql PACKAGECONFIG options
Date: Mon, 22 Apr 2013 18:53:50 +0200 [thread overview]
Message-ID: <20130422165350.GA3217@jama> (raw)
In-Reply-To: <1366366032-8581-2-git-send-email-ml@communistcode.co.uk>
[-- Attachment #1: Type: text/plain, Size: 3597 bytes --]
On Fri, Apr 19, 2013 at 11:07:11AM +0100, Jack Mitchell wrote:
> From: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
>
> Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
> ---
> meta-oe/recipes-devtools/php/php.inc | 29 ++++++++++++++++++++---------
> 1 file changed, 20 insertions(+), 9 deletions(-)
>
> diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
> index 225c3d7..892a0b5 100644
> --- a/meta-oe/recipes-devtools/php/php.inc
> +++ b/meta-oe/recipes-devtools/php/php.inc
> @@ -3,11 +3,11 @@ HOMEPAGE = "http://www.php.net"
> SECTION = "console/network"
> LICENSE = "PHP-3.0"
> BBCLASSEXTEND = "native"
> -DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native mysql5 \
> - libc-client openssl sqlite3"
> +DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \
> + libc-client openssl"
> DEPENDS_virtclass-native = "zlib-native libxml2-native"
>
> -INC_PR = "r4"
> +INC_PR = "r5"
>
> SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2"
>
> @@ -27,12 +27,7 @@ EXTRA_OECONF = "--enable-mbstring --enable-discard-path --enable-wddx \
> --with-zlib --with-zlib-dir=${STAGING_LIBDIR}/.. \
> --with-iconv=${STAGING_LIBDIR}/.. \
> --with-libxml-dir=${STAGING_BINDIR_CROSS} \
> - --disable-embedded-mysqli \
> - --with-mysql="${STAGING_DIR_TARGET}${prefix}" \
> - --with-mysqli="${STAGING_BINDIR_CROSS}/mysql_config" \
> - --with-sqlite3=${STAGING_LIBDIR}/.. --enable-sqlite-utf8 \
> - --with-pdo-mysql="${STAGING_BINDIR_CROSS}/mysql_config" \
> - --with-pdo-sqlite=${STAGING_LIBDIR}/.. ${COMMON_EXTRA_OECONF} \
> + ${COMMON_EXTRA_OECONF} \
> "
> EXTRA_OECONF_virtclass-native = "--with-cgi --without-libpng --without-libjpeg \
> --with-zlib --with-zlib-dir=${STAGING_LIBDIR_NATIVE}/.. \
> @@ -40,6 +35,22 @@ EXTRA_OECONF_virtclass-native = "--with-cgi --without-libpng --without-libjpeg \
> ${COMMON_EXTRA_OECONF} \
> "
>
> +PACKAGECONFIG ??= "mysql sqlite3"
> +PACKAGECONFIG_class-native = ""
> +
> +PACKAGECONFIG[mysql] = "--with-mysql=\"${STAGING_DIR_TARGET}${prefix}\" \
> + --with-mysqli=\"${STAGING_BINDIR_CROSS}/mysql_config\" \
> + --with-pdo-mysql=\"${STAGING_BINDIR_CROSS}/mysql_config\" \
> + --disable-embedded-mysqli \
> + , \
> + ,mysql5"
> +
> +PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \
> + --enable-sqlite-utf8 \
> + --with-pdo-sqlite=${STAGING_LIBDIR}/.. \
> + , \
> + ,sqlite3"
> +
> LIBS_virtclass-native = " -lxml2 "
> LIBS_pn-php =" -lpthread "
> export LIBS
> --
> 1.8.2.1
Now target php is failing with:
| configure:61165: result: no
| configure:61215: error: Cannot find MySQL header files under
"/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemuarm/usr".
| Note that the MySQL client library is not bundled anymore!
full log here:
qemuarm
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.20130422_080202.log/bitbake.world.log
qemux86
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.20130422_125516.log/bitbake.world.log
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2013-04-22 17:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 10:07 [PATCH 0/2 v4] php: add PACKAGECONFIG options Jack Mitchell
2013-04-19 10:07 ` [PATCH 1/2] php: add sqlite3 and mysql " Jack Mitchell
2013-04-22 16:53 ` Martin Jansa [this message]
2013-04-23 9:07 ` Jack Mitchell
2013-04-23 9:18 ` [meta-oe][PATCH v5] " Jack Mitchell
2013-04-23 9:20 ` Jack Mitchell
2013-04-19 10:07 ` [PATCH 2/2] php: remove non-existant configure flags and improve current ones Jack Mitchell
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=20130422165350.GA3217@jama \
--to=martin.jansa@gmail.com \
--cc=jack.mitchell@dbbroadcast.co.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox