All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto not fetching unzip
@ 2018-06-11 13:33 Maas, Jonas
  2018-06-15 21:39 ` Khem Raj
  2018-06-15 22:04 ` Andre McCurdy
  0 siblings, 2 replies; 4+ messages in thread
From: Maas, Jonas @ 2018-06-11 13:33 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

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?
Thanks in advance!


Kind regards,

Jonas

[-- Attachment #2: Type: text/html, Size: 4299 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto not fetching unzip
  2018-06-11 13:33 Yocto not fetching unzip Maas, Jonas
@ 2018-06-15 21:39 ` Khem Raj
  2018-06-15 22:04 ` Andre McCurdy
  1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2018-06-15 21:39 UTC (permalink / raw)
  To: Maas, Jonas, yocto


[-- Attachment #1.1: Type: text/plain, Size: 1192 bytes --]

Hi Jonas

On 6/11/18 6:33 AM, Maas, Jonas 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
> 
>  

I you built image on the machine where fetchall was done, do you see it
building unzip ?

> 
> 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?
> 
> Thanks in advance!
> 
>  
> 
>  
> 
> Kind regards,
> 
>  
> 
> Jonas
> 
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto not fetching unzip
  2018-06-11 13:33 Yocto not fetching unzip Maas, Jonas
  2018-06-15 21:39 ` Khem Raj
@ 2018-06-15 22:04 ` Andre McCurdy
  2018-06-18  6:25   ` Maas, Jonas
  1 sibling, 1 reply; 4+ messages in thread
From: Andre McCurdy @ 2018-06-15 22:04 UTC (permalink / raw)
  To: Maas, Jonas; +Cc: yocto

On Mon, Jun 11, 2018 at 6:33 AM, Maas, Jonas <Jonas.Maas@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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto not fetching unzip
  2018-06-15 22:04 ` Andre McCurdy
@ 2018-06-18  6:25   ` Maas, Jonas
  0 siblings, 0 replies; 4+ messages in thread
From: Maas, Jonas @ 2018-06-18  6:25 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: yocto

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@gmail.com] 
Sent: Saturday, June 16, 2018 12:05 AM
To: Maas, Jonas <Jonas.Maas@vector.com>
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Yocto not fetching unzip

On Mon, Jun 11, 2018 at 6:33 AM, Maas, Jonas <Jonas.Maas@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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-18  6:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-11 13:33 Yocto not fetching unzip Maas, Jonas
2018-06-15 21:39 ` Khem Raj
2018-06-15 22:04 ` Andre McCurdy
2018-06-18  6:25   ` Maas, Jonas

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.