[oe] [meta-networking][PATCH] meta-networking: fix recipes build with external tool-set

Sumit Garg sumit.garg at linaro.org
Mon Jan 20 05:30:09 UTC 2020


On Sat, 18 Jan 2020 at 00:24, Khem Raj <raj.khem at gmail.com> wrote:
>
> On 1/16/20 11:19 PM, Sumit Garg wrote:
> > - drbd-utils: fix native tool dependency which was implicitly met while
> >    building with source GCC tool-set.
> > - unbound: Use HOST_SYS variable instead of TARGET_PREFIX for libtool as
> >    TARGET_PREFIX may vary from source GCC tool-set to external GCC
> >    tool-set. Also, libtool-cross is installed in recipe sysroot using
> >    HOST_SYS variable only.
> >
> > Signed-off-by: Sumit Garg <sumit.garg at linaro.org>
> > ---
> >   meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb | 2 ++
> >   meta-networking/recipes-support/unbound/unbound_1.9.4.bb  | 2 +-
> >   2 files changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb
> > index 286b0f6..01bb16a 100644
> > --- a/meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb
> > +++ b/meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb
> > @@ -23,6 +23,8 @@ UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases"
> >   SYSTEMD_SERVICE_${PN} = "drbd.service"
> >   SYSTEMD_AUTO_ENABLE = "disable"
> >
> > +DEPENDS = "flex-native"
> > +
> >   inherit autotools-brokensep systemd
> >
> >   EXTRA_OECONF = " \
> > diff --git a/meta-networking/recipes-support/unbound/unbound_1.9.4.bb b/meta-networking/recipes-support/unbound/unbound_1.9.4.bb
> > index 03eb2fa..6200214 100644
> > --- a/meta-networking/recipes-support/unbound/unbound_1.9.4.bb
> > +++ b/meta-networking/recipes-support/unbound/unbound_1.9.4.bb
> > @@ -23,7 +23,7 @@ S = "${WORKDIR}/git"
> >
> >   EXTRA_OECONF = "--with-libexpat=${STAGING_EXECPREFIXDIR} \
> >               --with-ssl=${STAGING_EXECPREFIXDIR} \
> > -             libtool=${TARGET_PREFIX}libtool \
> > +             libtool=${HOST_SYS}-libtool \
> >   "
> >
>
> there is a build error happening in unbound see [1], this is using
> musl/aarch64
>
> [1] https://errors.yoctoproject.org/Errors/Details/306768/
>

It doesn't seem to be related to this patch as "TARGET_PREFIX" and
"HOST_SYS" for musl/aarch64 seems to point to the same libtool:
"aarch64-yoe-linux-musl-libtool". Could you reproduce this error
without this patch?

-Sumit


More information about the Openembedded-devel mailing list