All of lore.kernel.org
 help / color / mirror / Atom feed
* How to unpack a .tgz archive in a .zip file?
@ 2022-01-11 10:38 Michael Opdenacker
  2022-01-11 18:46 ` [yocto] " Quentin Schulz
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Opdenacker @ 2022-01-11 10:38 UTC (permalink / raw)
  To: yocto, YP docs mailing list

Hello

I'm working on adding the wiki guidelines for dealing with pre-compiled
libraries
(https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_Prebuilt_Libraries#Versioned_Libraries)
into the main documentation.

I'm trying to test the example recipe, but the latest pre-compiled
versions of libft4422.so are now available in
https://ftdichip.com/wp-content/uploads/2021/01/libft4222-linux-1.4.4.44.zip,
which actually contains a .tgz file!

I know that's absurd, but how would you handle this case? Through a
custom "do_unpack" task in the recipe?

Thanks in advance for your insights...
Cheers
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [yocto] How to unpack a .tgz archive in a .zip file?
  2022-01-11 10:38 How to unpack a .tgz archive in a .zip file? Michael Opdenacker
@ 2022-01-11 18:46 ` Quentin Schulz
  0 siblings, 0 replies; 2+ messages in thread
From: Quentin Schulz @ 2022-01-11 18:46 UTC (permalink / raw)
  To: yocto, Michael Opdenacker, yocto, YP docs mailing list

Hi Michael,

On January 11, 2022 11:38:06 AM GMT+01:00, Michael Opdenacker <michael.opdenacker@bootlin.com> wrote:
>Hello
>
>I'm working on adding the wiki guidelines for dealing with pre-compiled
>libraries
>(https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_Prebuilt_Libraries#Versioned_Libraries)
>into the main documentation.
>
>I'm trying to test the example recipe, but the latest pre-compiled
>versions of libft4422.so are now available in
>https://ftdichip.com/wp-content/uploads/2021/01/libft4222-linux-1.4.4.44.zip,
>which actually contains a .tgz file!
>
>I know that's absurd, but how would you handle this case? Through a
>custom "do_unpack" task in the recipe?
>

IMO that makes it unsuitable for the docs as we strive to have "simple" examples and having some custom unpack task seems a bit too much to me. Anyway, just my 2¢ and I don't have any other prebuilt lib to suggest as replacement right now.

Back to the topic:
I think you could have an :append for do_unpack and probably call oe_unpack ( https://github.com/openembedded/openembedded/blob/fabd8e6d07d3cd0cc93c2a0fc804f8c8f316c649/classes/base.bbclass#L158) on this specific file (after it's been unzipped), or even call unpack_file from the OE libs directly ( https://github.com/openembedded/openembedded/blob/fabd8e6d07d3cd0cc93c2a0fc804f8c8f316c649/lib/oe/unpack.py#L50) like oe_unpack is doing. Be aware though that since it is a Python task, your :append shall be Python code too.

Maybe there's another way but I don't see it right now.

Cheers,
Quentin

>Thanks in advance for your insights...
>Cheers
>Michael.
>


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

end of thread, other threads:[~2022-01-11 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 10:38 How to unpack a .tgz archive in a .zip file? Michael Opdenacker
2022-01-11 18:46 ` [yocto] " Quentin Schulz

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.