[yocto] Yocto not fetching unzip

Maas, Jonas Jonas.Maas at vector.com
Sun Jun 17 23:25:28 PDT 2018


Unzip is a native recipe and does not seem to be included in any image. So I guess this is just the way Yocto is dealing with native recipes.
So I'll have to stick with the manual fetching.
Thanks!

-----Original Message-----
From: Andre McCurdy [mailto:armccurdy at gmail.com] 
Sent: Saturday, June 16, 2018 12:05 AM
To: Maas, Jonas <Jonas.Maas at vector.com>
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Yocto not fetching unzip

On Mon, Jun 11, 2018 at 6:33 AM, Maas, Jonas <Jonas.Maas at vector.com> wrote:
> Hello everyone,
>
> I am experiencing an issue with yocto-2.1.2:
>
> I am trying to prefetch all needed sources for a certain image, let’s 
> say “my-image”, by calling:
>
> $ bitbake -c fetchall my-image
>
> Next I am archiving the whole Yocto system (including the downloads
> directory) to a tar.gz file and unpack it on another system.
>
> Now when I set BB_NO_NETWORK=”1” in the local.conf and try to build 
> using
>
> $ bitbake my-image
>
> the package “unzip” is missing. I can fetch it manually by temporarily 
> switching to online build an calling
>
> $ bitbake -c fetch unzip
>
> However I want to be able to build completely from the generated tar.gz.
>
> Is this a bug in Yocto or intended behavior? If it is intended: Is 
> there a proper setting to solve this or do I have to fetch unzip 
> manually bevor packing the archive?

You don't mention how you are using unzip.

If you are including unzip in your image then failing to download it during fetchall is unexpected and sounds like a bug.

If you're not including unzip in your image but instead your build actually depends on unzip-native (ie a tool to run on the host and needed as a build dependency if a recipe you build contains .zip or .jar files in SRC_URI) then I'm not sure what the expectation is. If fetchall doesn't download these indirect -native dependencies then it might just be the way it is. If so, then manually running "bitbake -c fetch unzip-native" might be an appropriate solution.


More information about the yocto mailing list