[Buildroot] meson for host package with executables doesn't work.

Daniel Palmer daniel at 0x0f.com
Thu Oct 11 11:42:30 UTC 2018


Hi Thomas,

Looking through the history in git it looks like this was broken by
commit a03f46ca6e9f43028003aedc92f1a1204ae7480f that bumped the
version of meson and removed a patch that stops meson from stripping
the RPATH on host executables. I guess because there are no packages
in-tree that used it (I couldn't find host-meson-package in any
packages) no one noticed.

Cheers,

Daniel
On Thu, 11 Oct 2018 at 19:01, Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
>
> Hello Daniel,
>
> On Thu, 11 Oct 2018 18:25:39 +0900, Daniel Palmer wrote:
>
> > That was working fine a few months ago but now I get this:
> >
> > ***
> > *** ERROR: package host-json-glib installs executables without proper RPATH:
> > ***   <snip>/buildroot-firmware/output/host/bin/json-glib-validate
> > ***   <snip>/buildroot-firmware/output/host/bin/json-glib-format
> >
> > As far as I know meson strips RPATH on install and there is no way to
> > stop it doing that outside of adjusting the build file.
> >
> > Does anyone have any ideas about how this should be fixed?
>
> We really need the host tools to have an rpath pointing to
> $(HOST_DIR)/lib, otherwise they won't pick up the libraries that we
> have installed in $(HOST_DIR)/lib.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com



More information about the buildroot mailing list