* [Buildroot] [PATCH 1/1] package/python-pymupdf: depend on python3
@ 2021-08-13 7:36 Asaf Kahlon
2021-08-13 13:04 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Asaf Kahlon @ 2021-08-13 7:36 UTC (permalink / raw)
To: buildroot; +Cc: Raphaël Mélotte, Thomas Petazzoni, Asaf Kahlon
According to the package documentation, python 3.6 or newer
is needed.
Fixes:
- http://autobuild.buildroot.net/results/f857986b8c9b6d4a843f3694cae8527760540ed0/
Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
---
package/python-pymupdf/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/python-pymupdf/Config.in b/package/python-pymupdf/Config.in
index 54714eb3bf..64a81895ea 100644
--- a/package/python-pymupdf/Config.in
+++ b/package/python-pymupdf/Config.in
@@ -4,6 +4,7 @@ config BR2_PACKAGE_PYTHON_PYMUPDF
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mupdf -> harfbuzz
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # mupdf -> harfbuzz
depends on BR2_PACKAGE_XORG7
+ depends on BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_FREETYPE
select BR2_PACKAGE_MUPDF
select BR2_PACKAGE_ZLIB
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/python-pymupdf: depend on python3
2021-08-13 7:36 [Buildroot] [PATCH 1/1] package/python-pymupdf: depend on python3 Asaf Kahlon
@ 2021-08-13 13:04 ` Thomas Petazzoni
2021-08-14 6:04 ` Asaf Kahlon
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2021-08-13 13:04 UTC (permalink / raw)
To: Asaf Kahlon; +Cc: Raphaël Mélotte, buildroot
On Fri, 13 Aug 2021 10:36:34 +0300
Asaf Kahlon <asafka7@gmail.com> wrote:
> According to the package documentation, python 3.6 or newer
> is needed.
>
> Fixes:
> - http://autobuild.buildroot.net/results/f857986b8c9b6d4a843f3694cae8527760540ed0/
>
> Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
> ---
> package/python-pymupdf/Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/python-pymupdf/Config.in b/package/python-pymupdf/Config.in
> index 54714eb3bf..64a81895ea 100644
> --- a/package/python-pymupdf/Config.in
> +++ b/package/python-pymupdf/Config.in
> @@ -4,6 +4,7 @@ config BR2_PACKAGE_PYTHON_PYMUPDF
> depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mupdf -> harfbuzz
> depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # mupdf -> harfbuzz
> depends on BR2_PACKAGE_XORG7
> + depends on BR2_PACKAGE_PYTHON3
This dependency should have been propagated to the two Config.in
comments in that file, so that they don't appear if Python3 is not
used. I fixed that up and applied to master. Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/python-pymupdf: depend on python3
2021-08-13 13:04 ` Thomas Petazzoni
@ 2021-08-14 6:04 ` Asaf Kahlon
2021-08-14 13:49 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Asaf Kahlon @ 2021-08-14 6:04 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: Raphaël Mélotte, buildroot
Hello,
On Fri, Aug 13, 2021 at 4:04 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Fri, 13 Aug 2021 10:36:34 +0300
> Asaf Kahlon <asafka7@gmail.com> wrote:
>
> > According to the package documentation, python 3.6 or newer
> > is needed.
> >
> > Fixes:
> > - http://autobuild.buildroot.net/results/f857986b8c9b6d4a843f3694cae8527760540ed0/
> >
> > Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
> > ---
> > package/python-pymupdf/Config.in | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/package/python-pymupdf/Config.in b/package/python-pymupdf/Config.in
> > index 54714eb3bf..64a81895ea 100644
> > --- a/package/python-pymupdf/Config.in
> > +++ b/package/python-pymupdf/Config.in
> > @@ -4,6 +4,7 @@ config BR2_PACKAGE_PYTHON_PYMUPDF
> > depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mupdf -> harfbuzz
> > depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # mupdf -> harfbuzz
> > depends on BR2_PACKAGE_XORG7
> > + depends on BR2_PACKAGE_PYTHON3
>
> This dependency should have been propagated to the two Config.in
> comments in that file, so that they don't appear if Python3 is not
> used. I fixed that up and applied to master. Thanks!
Hmm that's interesting...
I agree it's needed but from a quick look I think we have packages
which don't do that (for example - txtorcon. If the toolchain doesn't
support C++, we will see the "comment" part under the python2 external
modules menu although python3 is needed).
Do I miss something or is it a real mistake?
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Thanks,
Asaf.
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/python-pymupdf: depend on python3
2021-08-14 6:04 ` Asaf Kahlon
@ 2021-08-14 13:49 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-08-14 13:49 UTC (permalink / raw)
To: Asaf Kahlon; +Cc: Raphaël Mélotte, buildroot
Hello Asaf,
On Sat, 14 Aug 2021 09:04:39 +0300
Asaf Kahlon <asafka7@gmail.com> wrote:
> > This dependency should have been propagated to the two Config.in
> > comments in that file, so that they don't appear if Python3 is not
> > used. I fixed that up and applied to master. Thanks!
>
> Hmm that's interesting...
> I agree it's needed but from a quick look I think we have packages
> which don't do that (for example - txtorcon. If the toolchain doesn't
> support C++, we will see the "comment" part under the python2 external
> modules menu although python3 is needed).
> Do I miss something or is it a real mistake?
Indeed, python-txtorcon/Config.in is also wrong. Imagine the user: he
has python2 enabled, and see "python-XYZ needs a toolchain w/ C++", so
he goes ahead and enables C++. Back to the Python menu.. the comment
has disappeared, but there is still no option to enable python-XYZ
because the option depends on Python 3.x. It would be very confusing,
so we definitely want to hide the Config.in comment with a "depends on
BR2_PACKAGE_PYTHON3" in this case.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-14 13:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-13 7:36 [Buildroot] [PATCH 1/1] package/python-pymupdf: depend on python3 Asaf Kahlon
2021-08-13 13:04 ` Thomas Petazzoni
2021-08-14 6:04 ` Asaf Kahlon
2021-08-14 13:49 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox