From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: kory.maincent@bootlin.com,
Angelo Compagnucci <angelo.compagnucci@gmail.com>,
Asaf Kahlon <asafka7@gmail.com>,
Buildroot List <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH] package/python-pillow: fix host package build
Date: Sun, 17 Jul 2022 11:20:20 +0200 [thread overview]
Message-ID: <20220717092020.GF2543@scaer> (raw)
In-Reply-To: <20220713115851.620731-1-thomas.petazzoni@bootlin.com>
Thomas, All,
On 2022-07-13 13:58 +0200, Thomas Petazzoni via buildroot spake thusly:
> In commit
> d8c5d9b53437741c79cd3d759de1fe81af9055fd ("package/python-pillow:
> enable host variant"), when support for the host variant of
> python-pillow was added, the fact that python-pillow has optional
> dependencies was not handled, and left python-pillow to autodetect its
> optional dependencies.
>
> Unfortunately, without some config options, some of its dependencies
> are made mandatory, such as the JPEG library. Since for now such
> support is not needed in the host variant of python-pillow, we simply
> disable all optional dependencies.
Well, if some package needs host-python-pillow, that's most probably
because they are going to do some image manipulation at biuld time.
Disabling all image processing options (that require an external
library, but that's most of them?) is not so nice. It would maybe make
sense to enable all the image options for which we have host libraries.
Köry, what does your optee-os need from python-pillow? Would this patch
still work for it?
Regards,
Yann E. MORIN.
> To be consistent with the target variant, we also ensure to have
> host-pkgconf as a dependency of the host variant.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
> package/python-pillow/python-pillow.mk | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/package/python-pillow/python-pillow.mk b/package/python-pillow/python-pillow.mk
> index 8c9cb86863..0d189ac0ca 100644
> --- a/package/python-pillow/python-pillow.mk
> +++ b/package/python-pillow/python-pillow.mk
> @@ -71,5 +71,18 @@ else
> PYTHON_PILLOW_BUILD_OPTS += --disable-webp --disable-webpmux
> endif
>
> +HOST_PYTHON_PILLOW_DEPENDENCIES = host-pkgconf
> +HOST_PYTHON_PILLOW_BUILD_OPTS = \
> + build_ext \
> + --disable-freetype \
> + --disable-jpeg \
> + --disable-lcms \
> + --disable-xcb \
> + --disable-jpeg2000 \
> + --disable-tiff \
> + --disable-webp \
> + --disable-webpmux
> +HOST_PYTHON_PILLOW_INSTALL_OPTS = $(HOST_PYTHON_PILLOW_BUILD_OPTS)
> +
> $(eval $(python-package))
> $(eval $(host-python-package))
> --
> 2.36.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-07-17 9:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-13 11:58 [Buildroot] [PATCH] package/python-pillow: fix host package build Thomas Petazzoni via buildroot
2022-07-17 9:20 ` Yann E. MORIN [this message]
2022-07-17 16:26 ` Thomas Petazzoni via buildroot
2022-07-17 16:47 ` Thomas Petazzoni via buildroot
2022-07-17 18:05 ` Yann E. MORIN
2022-08-10 12:43 ` Peter Korsgaard
2022-08-29 9:07 ` Köry Maincent 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=20220717092020.GF2543@scaer \
--to=yann.morin.1998@free.fr \
--cc=angelo.compagnucci@gmail.com \
--cc=asafka7@gmail.com \
--cc=buildroot@buildroot.org \
--cc=kory.maincent@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox