[Buildroot] handling package souce in .zip file

Paulius Zaleckas paulius.zaleckas at gmail.com
Fri Nov 26 23:05:47 UTC 2010


On Fri, Nov 26, 2010 at 9:35 PM, Lionel Landwerlin
<llandwerlin at gmail.com> wrote:
> What's about this :
>
> unzip file.zip /tmp/plop
> mv /tmp/plop/*/* output/build/myzippkg-0.1/

Yes, this is almost what I was thinking, but the problem is that there
is no way to override "standard" buildroot extraction step or at least
I don't know it (using GENTARGET) :)

> Regards,
>
> --
> Lionel Landwerlin
>
> Le vendredi 26 novembre 2010 à 20:37 +0200, Paulius Zaleckas a écrit :
>> I want to add package, but its source is available only in zip format :(
>>
>> I was thinking how to handle zip, but I don't have preference:
>> 1. Not generic methods, since this may be the only package with zip:
>> a) add possibility to override the whole extraction procedure.
>> b) add post download hook, and repackage this zip as tar.
>> 2. Generic method:
>> a) add very hacky INFLATE.zip which will repackage zip as tar.
>> b) add special handling for INFLATE.zip without involving tar.
>>
>> Repackaging zip as tar is a headache, since it is not possible to
>> pipe unzip output to tar. So one has to extract zip to some dir and
>> then tar this dir and delete dir after taring.
>> Extracting zip without tar is also a little bit problematic since unzip
>> has no equivalent option for --strip-path/--strip-components
>> So maybe it is not possible to make generic support...
>>
>> What do you guys think?
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


More information about the buildroot mailing list