[Buildroot] handling package souce in .zip file

Paulius Zaleckas paulius.zaleckas at gmail.com
Fri Nov 26 18:37:32 UTC 2010


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?


More information about the buildroot mailing list