From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Romain Naour <romain.naour@gmail.com>
Cc: Sebastian Weyer <sebastian.weyer@smile.fr>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/4] support/testing: add python-mako runtime test
Date: Wed, 12 Jul 2023 21:43:57 +0200 [thread overview]
Message-ID: <20230712214357.2e04f24d@windsurf> (raw)
In-Reply-To: <20230609174955.409551-1-romain.naour@gmail.com>
Hello Romain,
On Fri, 9 Jun 2023 19:49:52 +0200
Romain Naour <romain.naour@gmail.com> wrote:
> This new runtime test allows to reproduce the issue
> reported by https://bugs.busybox.net/show_bug.cgi?id=15628
> with a simple python script.
>
> Traceback (most recent call last):
> File "/bin/piglit", line 107, in <module>
> import framework.programs.summary as summary
> File "/usr/lib64/piglit/framework/programs/summary.py", line 30, in <module>
> from framework import summary, status, core, backends, exceptions
> File "/usr/lib64/piglit/framework/summary/__init__.py", line 31, in <module>
> from .html_ import html, feat
> File "/usr/lib64/piglit/framework/summary/html_.py", line 37, in <module>
> from mako.lookup import TemplateLookup
> File "/usr/lib/python3.11/site-packages/mako/lookup.py", line 13, in <module>
> File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 292, in <module>
> File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 289, in _install_highlighting
> File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 277, in _install_fallback
> File "/usr/lib/python3.11/site-packages/mako/filters.py", line 14, in <module>
> ModuleNotFoundError: No module named 'markupsafe
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
I'm unclear on a number of things:
- How does this interact with the patch proposed by Sebastian at
https://patchwork.ozlabs.org/project/buildroot/patch/20230608140933.1814667-1-sebastian.weyer@smile.fr/,
which takes a different approach ?
- How does your patch series fixes bug #15628 ? The patch from
Sebastian fixes it, but not your series as far as I can see.
- I don't see in your series what ensures that the test
TestPythonPy3Mako properly works. It would work with Sebastian patch
applied, but Sebastian's patch collides with your series because
Sebastian patch makes BR2_PACKAGE_PYTHON_PYGMENTS a mandatory
dependency of python-mako, while your patch series makes it an
optional dependency, enabled when
BR2_PACKAGE_PYTHON_MAKO_EXT_PYGMENTPLUGIN is enabled.
I might not have grasped the full scale of the issue, but my feeling is
that:
- python-mako needs markupsafe unconditionally, as demonstrated by your
test TestPythonPy3Mako. So python-mako should unconditionally select
BR2_PACKAGE_PYTHON_MARKUPSAFE
- python-mako only needs pygments/babel as optional dependencies so
your patches 2/4 and 3/4 are fine
- in order to fix bug #15628, we need to ensure that the piglit package
selects BR2_PACKAGE_PYTHON_MAKO_EXT_PYGMENTPLUGIN, so that
python-mako is installed with pygments support
Does that make sense ?
Best regards,
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-07-12 19:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 17:49 [Buildroot] [PATCH 1/4] support/testing: add python-mako runtime test Romain Naour
2023-06-09 17:49 ` [Buildroot] [PATCH 2/4] package/python-mako: add optionnal runtime dependency on python-pygments Romain Naour
2023-09-30 18:55 ` Thomas Petazzoni via buildroot
2023-06-09 17:49 ` [Buildroot] [PATCH 3/4] package/python-mako: add optionnal runtime dependency on python-babel Romain Naour
2023-09-30 18:55 ` Thomas Petazzoni via buildroot
2023-06-09 17:49 ` [Buildroot] [PATCH 4/4] support/testing: TestPythonPy3MakoExt: add a test for mako external plugin (pygmentsplugin, babel) Romain Naour
2023-09-30 18:55 ` Thomas Petazzoni via buildroot
2023-07-12 19:43 ` Thomas Petazzoni via buildroot [this message]
2023-07-12 19:46 ` [Buildroot] [PATCH 1/4] support/testing: add python-mako runtime test Thomas Petazzoni via buildroot
2023-07-13 7:36 ` Romain Naour
2023-07-13 7:42 ` Romain Naour
2023-07-13 9:43 ` Sebastian WEYER
2023-09-30 18:55 ` 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=20230712214357.2e04f24d@windsurf \
--to=buildroot@buildroot.org \
--cc=romain.naour@gmail.com \
--cc=sebastian.weyer@smile.fr \
--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