[OE-core] [PATCH] bitbake.conf: add git-lfs to HOSTTOOLS_NONFATAL

Martin Jansa martin.jansa at gmail.com
Wed Apr 17 10:56:02 UTC 2019


Would it make sense to at least as temporary work around add a flag saying
that git-lfs does or doesn't exist in HOSTTOOLS after it being added
to HOSTTOOLS_NONFATAL and then let those few recipes which already use
git-lfs to check this flag and fail early with meaningful error message
about git-lfs? It can be in a bbclass so that all recipes can easily share
it and it can be later changed to add dependency on git-lfs-native (if
there is one later).

Only issue is that people will forget to inherit this bbclass in their
recipes if it just happen to work.

Adding it to some subdirectory inside HOSTTOOLS which is added to PATH only
when the bbclass is inherited might be a bit too much for just a work
around :/.

Regards,

On Wed, Apr 17, 2019 at 12:25 PM Adrian Bunk <bunk at stusta.de> wrote:

> On Wed, Apr 17, 2019 at 09:57:50AM +0000, Bach, Pascal wrote:
> > > > > Your "everyone has to install it" worry misses the much bigger
> > > > > problem that git-lfs is a relatively new tool and not available in
> > > > > distributions like Debian 9 or Ubuntu 16.04.
> > > >
> > > > Someone could certainly write a native recipe for lfs and add that as
> > > > a dependency which would also solve this problem. I'd be quite happy
> > > > to see that and it would neatly solve the problems.
> > >
> > > This was also my first thought.
> > >
> > > It stops being neat once you realize that it requires packaging a 3
> digit
> > > number of Go libraries.
> >
> > I don't think that's how go packaging works. Go usually statically links
> everything at compile time and bundles the sources with modules.
>
> It is not really static linking, it is more like the "libraries" being
> source files instead of compiled code.
>
> > So from a yocto point of view you only need to create one recipe with
> everything inside.
>
> Fetching from 100 different git repositories would be plenty of
> work to setup and to maintain, no matter how many recipes you use.
>
> Certainly not impossible, but I wouldn't call this neat.
>
> >...
> > Pascal
> >...
>
> cu
> Adrian
>
> --
>
>        "Is there not promise of rain?" Ling Tan asked suddenly out
>         of the darkness. There had been need of rain for many days.
>        "Only a promise," Lao Er said.
>                                        Pearl S. Buck - Dragon Seed
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190417/1f2f38b6/attachment.html>


More information about the Openembedded-core mailing list