From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: carrier.nicolas0@gmail.com
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>,
Fabrice Fontaine <fontaine.fabrice@gmail.com>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 2/3] package/php/php.mk: add host-php
Date: Tue, 1 Aug 2023 23:09:31 +0200 [thread overview]
Message-ID: <20230801230931.296eeb62@windsurf> (raw)
In-Reply-To: <20230119132856.1801425-3-carrier.nicolas0@gmail.com>
Hello,
On Thu, 19 Jan 2023 14:28:55 +0100
carrier.nicolas0@gmail.com wrote:
> From: Nicolas Carrier <carrier.nicolas0@gmail.com>
>
> having a working PHP with the correct version, is mandatory for executing
> some PHP tools, such as composer, when building packages.
>
> Signed-off-by: Nicolas Carrier <carrier.nicolas0@gmail.com>
Tweaked commit title as:
package/php/php: add a host variant
and it should have been:
package/php: add a host variant
but I messed up.
> diff --git a/package/php/php.mk b/package/php/php.mk
> index 23dd4ba96f..bd301254d4 100644
> --- a/package/php/php.mk
> +++ b/package/php/php.mk
> @@ -14,6 +14,24 @@ PHP_DEPENDENCIES = host-pkgconf pcre2
> PHP_LICENSE = PHP-3.01
> PHP_LICENSE_FILES = LICENSE
> PHP_CPE_ID_VENDOR = php
> +
> +# This host php is installed in $(HOST_DIR), as it is needed
> +# to use composer.
This comment was not really useful: all host packages are installed in
$(HOST_DIR). So I dropped this comment.
> +
> +HOST_PHP_CONF_OPTS += \
> + --disable-all \
> + --without-pear \
> + --with-config-file-path=/etc \
> + --disable-phpdbg \
> + --enable-phar \
> + --enable-json \
> + --enable-filter \
> + --enable-mbstring \
> + --enable-tokenizer \
> + --with-openssl=$(HOST_DIR)/usr
> +
> +HOST_PHP_DEPENDENCIES += host-oniguruma host-openssl host-pkgconf
I moved both of these to the bottom of the file, to have first all the
stuff related to target PHP, and the all the stuff related to host PHP.
I replaced the += by = signs, since these assignments are not within
conditions.
I was also puzzled by the discrepancy in dependencies between target
and host PHP:
- target PHP depends on host-pkgconf and pcre2
- your host PHP proposal depends on host-onigurama host-openssl and host-pkgconf
So I added host-pcre2 in the dependencies, and added the option
--with-external-pcre to be on par with what we're doing for the target
PHP. host-onigurama is needed for --enable-mbstring, and host-openssl
for --with-openssl.
--with-openssl=$(HOST_DIR)/usr had to be changed to
--with-openssl=$(HOST_DIR) (we no longer used a usr/ subdir, and this
line was causing a check-package warning).
--with-config-file-path=/etc was changed to
--with-config-file-path=$(HOST_DIR)/etc.
Applied with those changes. Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-08-01 21:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 13:28 [Buildroot] [PATCH 0/3] new host-composer package patches series carrier.nicolas0
2023-01-19 13:28 ` [Buildroot] [PATCH 1/3] package/oniguruma/oniguruma.mk: add a host package carrier.nicolas0
2023-08-01 21:05 ` Thomas Petazzoni via buildroot
2023-01-19 13:28 ` [Buildroot] [PATCH 2/3] package/php/php.mk: add host-php carrier.nicolas0
2023-08-01 21:09 ` Thomas Petazzoni via buildroot [this message]
2023-01-19 13:28 ` [Buildroot] [PATCH 3/3] package/composer: new package carrier.nicolas0
2023-08-01 21:11 ` Thomas Petazzoni via buildroot
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=20230801230931.296eeb62@windsurf \
--to=buildroot@buildroot.org \
--cc=bernd.kuhls@t-online.de \
--cc=carrier.nicolas0@gmail.com \
--cc=fontaine.fabrice@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/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.