All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rongqing Li <rongqing.li@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH][meta-oe][V2] php: add a vardeps for configure on sysconfdir
Date: Wed, 10 Jun 2015 16:14:04 +0800	[thread overview]
Message-ID: <5577F1CC.9030900@windriver.com> (raw)
In-Reply-To: <1433337060-13188-1-git-send-email-rongqing.li@windriver.com>

please drop it, I will re-fix it

-Roy

On 2015年06月03日 21:11, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@windriver.com>
>
> Installing target file will fail when sstate is used, since native php is used
> to install these files, makefile rule is in php-5.5.24/pear/Makefile.frag
> |--------------------------------------
> |install-pear-installer: $(SAPI_CLI_PATH)
> |	@$(PHP_NATIVE_DIR)/php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar \
> |-d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX}
> |--------------------------------------
> But if sstate is used, native php from sstate has some obsolete path, lead to
> that config file is installed into obsolete path.
>
> Other packages fixed this kinds of issue by calling create_wrapper, like
> in openssl, rpm; but test show it does not work for php.
>
> only php depends on php-native, so add a vardeps for configure on sysconfdir
> to force php-native to build always.
>
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
>   meta-oe/recipes-devtools/php/php_5.5.24.bb | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-devtools/php/php_5.5.24.bb b/meta-oe/recipes-devtools/php/php_5.5.24.bb
> index 3e656af..9c0dd7f 100644
> --- a/meta-oe/recipes-devtools/php/php_5.5.24.bb
> +++ b/meta-oe/recipes-devtools/php/php_5.5.24.bb
> @@ -106,6 +106,8 @@ EXTRA_OEMAKE = "INSTALL_ROOT=${D}"
>
>   acpaths = ""
>
> +do_configure[vardeps] += "${sysconfdir}"
> +
>   do_configure_prepend () {
>       rm -f ${S}/build/libtool.m4 ${S}/ltmain.sh ${S}/aclocal.m4
>       find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_BINDIR_NATIVE}/httpd!'
>

-- 
Best Reagrds,
Roy | RongQing Li


      reply	other threads:[~2015-06-10  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03 13:11 [PATCH][meta-oe][V2] php: add a vardeps for configure on sysconfdir rongqing.li
2015-06-10  8:14 ` Rongqing Li [this message]

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=5577F1CC.9030900@windriver.com \
    --to=rongqing.li@windriver.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.