Am Samstag, 26. Dezember 2009 14:19:26 schrieb
Emmanuel Engelhart:
Tommi Mäkitalo a écrit :
...
> The next step is to remove support for zlib
and bzip2.
>
> Currently I'm working on porting the new file format to the nano note.
> Unfortunately I'm stuck with porting xz (the lzma-library) to openwrt.
> There are some difficulties there, but I'm sure, they can be resolved.
> I have already asked for help at the openwrt developer list but have
> not yet received any answers.
That's why I asked to be careful by removing bzip2 and/or zlib.
It's essential to have at least at any moment a working solution for
every arch/system. I have for example not checked if xz works good with
Windows.
Emmanuel
We want to define a standard format. And if you create zim files with
lzma compression we need to make sure, we can read the file on every
system, we support. It makes no sense to have some zim files with bzip2
compression, which work on windows and other zim files with lzma
compresion which don't. We have to commit us to one compression method to
prevent fragmentation. Or do you want to offer zim files for ubuntu and
zim files for windows and zim files for fedora and zim files for freebsd?
I prefer
having *now* a solution with 3 compression algorithms and
knowing one of them does not always work than having a format which is
totally unusable in a few use cases.
So, we will try to have lzma working everywhere... but as long as this
is not sure, it would be preferable IMO to be able to say "look you can
use bzip2" than "sorry zimlib is not for you, it does not work currently
for your use case".
We have to choice our disadvantage:
* Remove bzip2 and having the risk to discover portability issues
* Keeping the bzip2/gzip dependence a little bit longer
... in any case this is not so critical... in the worth case we will
have to work hard to fix the portability issues... and I hope we will
because we want the zimlib being portable.
Emmanuel