* [Buildroot] pkg-meson.mk: support for the host python packages
@ 2024-04-22 10:46 Yegor Yefremov
2024-04-22 12:14 ` Peter Seiderer via buildroot
0 siblings, 1 reply; 7+ messages in thread
From: Yegor Yefremov @ 2024-04-22 10:46 UTC (permalink / raw
To: buildroot; +Cc: James Hilliard, Thomas Petazzoni
libglib2 2.80.0 requires host-python-packaging to build the library [1].
What is the best way to tell meson/ninja where to look for our host
python packages?
[1] https://gitlab.gnome.org/GNOME/glib/-/commit/fc6f06127cff9fe3e464b5be8c92ea08a679b620
Best regards,
Yegor
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] pkg-meson.mk: support for the host python packages
2024-04-22 10:46 [Buildroot] pkg-meson.mk: support for the host python packages Yegor Yefremov
@ 2024-04-22 12:14 ` Peter Seiderer via buildroot
2024-04-22 12:28 ` Yegor Yefremov
0 siblings, 1 reply; 7+ messages in thread
From: Peter Seiderer via buildroot @ 2024-04-22 12:14 UTC (permalink / raw
To: Yegor Yefremov; +Cc: James Hilliard, Thomas Petazzoni, buildroot
On Mon, 22 Apr 2024 12:46:04 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
> libglib2 2.80.0 requires host-python-packaging to build the library [1].
>
> What is the best way to tell meson/ninja where to look for our host
> python packages?
>
> [1] https://gitlab.gnome.org/GNOME/glib/-/commit/fc6f06127cff9fe3e464b5be8c92ea08a679b620
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index c06ded2a5b..819282910a 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -34,9 +34,11 @@ HOST_LIBGLIB2_CONF_OPTS = \
LIBGLIB2_DEPENDENCIES = \
host-pkgconf host-libglib2 \
+ host-python3 host-python-packaging \
libffi pcre2 zlib $(TARGET_NLS_DEPENDENCIES)
HOST_LIBGLIB2_DEPENDENCIES = \
+ host-python3 host-python-packaging \
host-gettext \
host-libffi \
host-pcre2 \
Regards,
Peter
>
> Best regards,
> Yegor
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Buildroot] pkg-meson.mk: support for the host python packages
2024-04-22 12:14 ` Peter Seiderer via buildroot
@ 2024-04-22 12:28 ` Yegor Yefremov
2024-04-22 12:29 ` Yegor Yefremov
0 siblings, 1 reply; 7+ messages in thread
From: Yegor Yefremov @ 2024-04-22 12:28 UTC (permalink / raw
To: Peter Seiderer; +Cc: James Hilliard, Thomas Petazzoni, buildroot
On Mon, Apr 22, 2024 at 2:19 PM Peter Seiderer <ps.report@gmx.net> wrote:
>
> On Mon, 22 Apr 2024 12:46:04 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
>
> > libglib2 2.80.0 requires host-python-packaging to build the library [1].
> >
> > What is the best way to tell meson/ninja where to look for our host
> > python packages?
> >
> > [1] https://gitlab.gnome.org/GNOME/glib/-/commit/fc6f06127cff9fe3e464b5be8c92ea08a679b620
>
> diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
> index c06ded2a5b..819282910a 100644
> --- a/package/libglib2/libglib2.mk
> +++ b/package/libglib2/libglib2.mk
> @@ -34,9 +34,11 @@ HOST_LIBGLIB2_CONF_OPTS = \
>
> LIBGLIB2_DEPENDENCIES = \
> host-pkgconf host-libglib2 \
> + host-python3 host-python-packaging \
> libffi pcre2 zlib $(TARGET_NLS_DEPENDENCIES)
>
> HOST_LIBGLIB2_DEPENDENCIES = \
> + host-python3 host-python-packaging \
> host-gettext \
> host-libffi \
> host-pcre2 \
This just builds the package but meson won't look in
host/lib/python3.11/site-packages/ for regex.
Should one just add a PYTHONPATH pointing to
host/lib/python3.11/site-packages before invoking meson/ninja as we do
with PYTHONNOUSERSITE?
Yegor
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] pkg-meson.mk: support for the host python packages
2024-04-22 12:28 ` Yegor Yefremov
@ 2024-04-22 12:29 ` Yegor Yefremov
2024-04-22 13:11 ` Peter Seiderer via buildroot
0 siblings, 1 reply; 7+ messages in thread
From: Yegor Yefremov @ 2024-04-22 12:29 UTC (permalink / raw
To: Peter Seiderer; +Cc: James Hilliard, Thomas Petazzoni, buildroot
On Mon, Apr 22, 2024 at 2:28 PM Yegor Yefremov
<yegorslists@googlemail.com> wrote:
>
> On Mon, Apr 22, 2024 at 2:19 PM Peter Seiderer <ps.report@gmx.net> wrote:
> >
> > On Mon, 22 Apr 2024 12:46:04 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
> >
> > > libglib2 2.80.0 requires host-python-packaging to build the library [1].
> > >
> > > What is the best way to tell meson/ninja where to look for our host
> > > python packages?
> > >
> > > [1] https://gitlab.gnome.org/GNOME/glib/-/commit/fc6f06127cff9fe3e464b5be8c92ea08a679b620
> >
> > diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
> > index c06ded2a5b..819282910a 100644
> > --- a/package/libglib2/libglib2.mk
> > +++ b/package/libglib2/libglib2.mk
> > @@ -34,9 +34,11 @@ HOST_LIBGLIB2_CONF_OPTS = \
> >
> > LIBGLIB2_DEPENDENCIES = \
> > host-pkgconf host-libglib2 \
> > + host-python3 host-python-packaging \
> > libffi pcre2 zlib $(TARGET_NLS_DEPENDENCIES)
> >
> > HOST_LIBGLIB2_DEPENDENCIES = \
> > + host-python3 host-python-packaging \
> > host-gettext \
> > host-libffi \
> > host-pcre2 \
>
> This just builds the package but meson won't look in
> host/lib/python3.11/site-packages/ for regex.
s/regex/package
>
> Should one just add a PYTHONPATH pointing to
> host/lib/python3.11/site-packages before invoking meson/ninja as we do
> with PYTHONNOUSERSITE?
>
> Yegor
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] pkg-meson.mk: support for the host python packages
2024-04-22 12:29 ` Yegor Yefremov
@ 2024-04-22 13:11 ` Peter Seiderer via buildroot
2024-04-22 13:26 ` Peter Seiderer via buildroot
0 siblings, 1 reply; 7+ messages in thread
From: Peter Seiderer via buildroot @ 2024-04-22 13:11 UTC (permalink / raw
To: Yegor Yefremov; +Cc: James Hilliard, Thomas Petazzoni, buildroot
On Mon, 22 Apr 2024 14:29:42 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
> On Mon, Apr 22, 2024 at 2:28 PM Yegor Yefremov
> <yegorslists@googlemail.com> wrote:
> >
> > On Mon, Apr 22, 2024 at 2:19 PM Peter Seiderer <ps.report@gmx.net> wrote:
> > >
> > > On Mon, 22 Apr 2024 12:46:04 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
> > >
> > > > libglib2 2.80.0 requires host-python-packaging to build the library [1].
> > > >
> > > > What is the best way to tell meson/ninja where to look for our host
> > > > python packages?
> > > >
> > > > [1] https://gitlab.gnome.org/GNOME/glib/-/commit/fc6f06127cff9fe3e464b5be8c92ea08a679b620
> > >
> > > diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
> > > index c06ded2a5b..819282910a 100644
> > > --- a/package/libglib2/libglib2.mk
> > > +++ b/package/libglib2/libglib2.mk
> > > @@ -34,9 +34,11 @@ HOST_LIBGLIB2_CONF_OPTS = \
> > >
> > > LIBGLIB2_DEPENDENCIES = \
> > > host-pkgconf host-libglib2 \
> > > + host-python3 host-python-packaging \
> > > libffi pcre2 zlib $(TARGET_NLS_DEPENDENCIES)
> > >
> > > HOST_LIBGLIB2_DEPENDENCIES = \
> > > + host-python3 host-python-packaging \
> > > host-gettext \
> > > host-libffi \
> > > host-pcre2 \
> >
> > This just builds the package but meson won't look in
> > host/lib/python3.11/site-packages/ for regex.
Sorry, works for me (and additional removed the local python311-packaging on the
build system, but works otherwise too):
$ rm -rf build/host-libglib2-2.80.0 && rm -rf build/libglib2-2.80.0 && strace -fo out.log make libglib2
$ grep packaging build/libglib2-2.80.0/build/meson-logs/meson-log.txt
Program python3 (packaging) found: YES (<my_local_build_path>/host/bin/python3) modules: packaging
$ grep packaging out.log
[...]
21929 newfstatat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__init__.py", {st_mode=S_IFREG|0644, st_size=496, ...}, 0) = 0
21929 newfstatat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__init__.py", {st_mode=S_IFREG|0644, st_size=496, ...}, 0) = 0
21929 openat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__pycache__/__init__.cpython-311.pyc", O_RDONLY|O_CLOEXEC) = 3
Regards,
Peter
>
> s/regex/package
>
> >
> > Should one just add a PYTHONPATH pointing to
> > host/lib/python3.11/site-packages before invoking meson/ninja as we do
> > with PYTHONNOUSERSITE?
> >
> > Yegor
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] pkg-meson.mk: support for the host python packages
2024-04-22 13:11 ` Peter Seiderer via buildroot
@ 2024-04-22 13:26 ` Peter Seiderer via buildroot
2024-04-22 14:22 ` Yegor Yefremov
0 siblings, 1 reply; 7+ messages in thread
From: Peter Seiderer via buildroot @ 2024-04-22 13:26 UTC (permalink / raw
To: Peter Seiderer via buildroot
Cc: James Hilliard, Peter Seiderer, Thomas Petazzoni
On Mon, 22 Apr 2024 15:11:55 +0200, Peter Seiderer via buildroot <buildroot@buildroot.org> wrote:
> On Mon, 22 Apr 2024 14:29:42 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
>
> > On Mon, Apr 22, 2024 at 2:28 PM Yegor Yefremov
> > <yegorslists@googlemail.com> wrote:
> > >
> > > On Mon, Apr 22, 2024 at 2:19 PM Peter Seiderer <ps.report@gmx.net> wrote:
> > > >
> > > > On Mon, 22 Apr 2024 12:46:04 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
> > > >
> > > > > libglib2 2.80.0 requires host-python-packaging to build the library [1].
> > > > >
> > > > > What is the best way to tell meson/ninja where to look for our host
> > > > > python packages?
> > > > >
> > > > > [1] https://gitlab.gnome.org/GNOME/glib/-/commit/fc6f06127cff9fe3e464b5be8c92ea08a679b620
> > > >
> > > > diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
> > > > index c06ded2a5b..819282910a 100644
> > > > --- a/package/libglib2/libglib2.mk
> > > > +++ b/package/libglib2/libglib2.mk
> > > > @@ -34,9 +34,11 @@ HOST_LIBGLIB2_CONF_OPTS = \
> > > >
> > > > LIBGLIB2_DEPENDENCIES = \
> > > > host-pkgconf host-libglib2 \
> > > > + host-python3 host-python-packaging \
> > > > libffi pcre2 zlib $(TARGET_NLS_DEPENDENCIES)
> > > >
> > > > HOST_LIBGLIB2_DEPENDENCIES = \
> > > > + host-python3 host-python-packaging \
> > > > host-gettext \
> > > > host-libffi \
> > > > host-pcre2 \
> > >
> > > This just builds the package but meson won't look in
> > > host/lib/python3.11/site-packages/ for regex.
>
> Sorry, works for me (and additional removed the local python311-packaging on the
> build system, but works otherwise too):
>
> $ rm -rf build/host-libglib2-2.80.0 && rm -rf build/libglib2-2.80.0 && strace -fo out.log make libglib2
>
> $ grep packaging build/libglib2-2.80.0/build/meson-logs/meson-log.txt
> Program python3 (packaging) found: YES (<my_local_build_path>/host/bin/python3) modules: packaging
>
> $ grep packaging out.log
> [...]
> 21929 newfstatat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__init__.py", {st_mode=S_IFREG|0644, st_size=496, ...}, 0) = 0
> 21929 newfstatat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__init__.py", {st_mode=S_IFREG|0644, st_size=496, ...}, 0) = 0
> 21929 openat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__pycache__/__init__.cpython-311.pyc", O_RDONLY|O_CLOEXEC) = 3
And host-python-packaging is already an (indirect) dependency of
host-libglib2/libglib2 (make graph-depends):
libglib2 --> host-libglib2 --> host-meson --> host-python-setuptools -->
host-python-wheel --> host-python-pypa-build --> host-python-packaging
Regards,
Peter
>
> Regards,
> Peter
>
> >
> > s/regex/package
> >
> > >
> > > Should one just add a PYTHONPATH pointing to
> > > host/lib/python3.11/site-packages before invoking meson/ninja as we do
> > > with PYTHONNOUSERSITE?
> > >
> > > Yegor
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] pkg-meson.mk: support for the host python packages
2024-04-22 13:26 ` Peter Seiderer via buildroot
@ 2024-04-22 14:22 ` Yegor Yefremov
0 siblings, 0 replies; 7+ messages in thread
From: Yegor Yefremov @ 2024-04-22 14:22 UTC (permalink / raw
To: Peter Seiderer
Cc: James Hilliard, Thomas Petazzoni, Peter Seiderer via buildroot
On Mon, Apr 22, 2024 at 3:31 PM Peter Seiderer <ps.report@gmx.net> wrote:
>
> On Mon, 22 Apr 2024 15:11:55 +0200, Peter Seiderer via buildroot <buildroot@buildroot.org> wrote:
>
> > On Mon, 22 Apr 2024 14:29:42 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
> >
> > > On Mon, Apr 22, 2024 at 2:28 PM Yegor Yefremov
> > > <yegorslists@googlemail.com> wrote:
> > > >
> > > > On Mon, Apr 22, 2024 at 2:19 PM Peter Seiderer <ps.report@gmx.net> wrote:
> > > > >
> > > > > On Mon, 22 Apr 2024 12:46:04 +0200, Yegor Yefremov <yegorslists@googlemail.com> wrote:
> > > > >
> > > > > > libglib2 2.80.0 requires host-python-packaging to build the library [1].
> > > > > >
> > > > > > What is the best way to tell meson/ninja where to look for our host
> > > > > > python packages?
> > > > > >
> > > > > > [1] https://gitlab.gnome.org/GNOME/glib/-/commit/fc6f06127cff9fe3e464b5be8c92ea08a679b620
> > > > >
> > > > > diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
> > > > > index c06ded2a5b..819282910a 100644
> > > > > --- a/package/libglib2/libglib2.mk
> > > > > +++ b/package/libglib2/libglib2.mk
> > > > > @@ -34,9 +34,11 @@ HOST_LIBGLIB2_CONF_OPTS = \
> > > > >
> > > > > LIBGLIB2_DEPENDENCIES = \
> > > > > host-pkgconf host-libglib2 \
> > > > > + host-python3 host-python-packaging \
> > > > > libffi pcre2 zlib $(TARGET_NLS_DEPENDENCIES)
> > > > >
> > > > > HOST_LIBGLIB2_DEPENDENCIES = \
> > > > > + host-python3 host-python-packaging \
> > > > > host-gettext \
> > > > > host-libffi \
> > > > > host-pcre2 \
> > > >
> > > > This just builds the package but meson won't look in
> > > > host/lib/python3.11/site-packages/ for regex.
> >
> > Sorry, works for me (and additional removed the local python311-packaging on the
> > build system, but works otherwise too):
> >
> > $ rm -rf build/host-libglib2-2.80.0 && rm -rf build/libglib2-2.80.0 && strace -fo out.log make libglib2
> >
> > $ grep packaging build/libglib2-2.80.0/build/meson-logs/meson-log.txt
> > Program python3 (packaging) found: YES (<my_local_build_path>/host/bin/python3) modules: packaging
> >
> > $ grep packaging out.log
> > [...]
> > 21929 newfstatat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__init__.py", {st_mode=S_IFREG|0644, st_size=496, ...}, 0) = 0
> > 21929 newfstatat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__init__.py", {st_mode=S_IFREG|0644, st_size=496, ...}, 0) = 0
> > 21929 openat(AT_FDCWD, "<my_local_build_path>/host/lib/python3.11/site-packages/packaging/__pycache__/__init__.cpython-311.pyc", O_RDONLY|O_CLOEXEC) = 3
>
> And host-python-packaging is already an (indirect) dependency of
> host-libglib2/libglib2 (make graph-depends):
>
> libglib2 --> host-libglib2 --> host-meson --> host-python-setuptools -->
> host-python-wheel --> host-python-pypa-build --> host-python-packaging
You're right. Everything is working. I think, I confused my BR through
experimenting so that the python package didn't install into
<my_local_build_path>/host/lib/python3.11/site-packages/ but after
some cleanup it now does.
Sorry for the noise and thanks for the strace hint.
Yegor
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-04-22 14:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-22 10:46 [Buildroot] pkg-meson.mk: support for the host python packages Yegor Yefremov
2024-04-22 12:14 ` Peter Seiderer via buildroot
2024-04-22 12:28 ` Yegor Yefremov
2024-04-22 12:29 ` Yegor Yefremov
2024-04-22 13:11 ` Peter Seiderer via buildroot
2024-04-22 13:26 ` Peter Seiderer via buildroot
2024-04-22 14:22 ` Yegor Yefremov
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.