Rockbox

Tasklist

FS#7807 - gzip/gunzip port

Attached to Project: Rockbox
Opened by Antoine Cellerier (dionoea) - Thursday, 20 September 2007, 21:21 GMT
Last edited by Thomas Martitz (kugel.) - Sunday, 05 June 2011, 11:30 GMT
Task Type Patches
Category Plugins
Status Closed
Assigned To Antoine Cellerier (dionoea)
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This is a port of gzip 1.3.12 to rockbox.

This patch adds a gzip_rb viewer (to compress files in the gzip format) and a gunzip_rb viewer (to decompress files in the gzip format and some other formats handled by gzip). You can also run gzip_rb as a standalone plugin to configure the gzip compression level. gunzip_rb is configured as a viewer for .gz, .tgz, .Z, .z and .taz files.

These files are from gzip 1.3.12 including modifications for rockbox (note that a lot of documentation, build system and optional source code files from the original gzip 1.3.12 tarball have been left out). Some more code cleanup and improvements to the messaging system might be needed (currently uses splash() and DEBUGF() kind of randomly):
A apps/plugins/gzip/tailor.h
A apps/plugins/gzip/unlzh.c
A apps/plugins/gzip/crypt.c
A apps/plugins/gzip/bits.c
A apps/plugins/gzip/zip.c
A apps/plugins/gzip/revision.h
A apps/plugins/gzip/AUTHORS
A apps/plugins/gzip/deflate.c
A apps/plugins/gzip/unzip.c
A apps/plugins/gzip/crypt.h
A apps/plugins/gzip/ChangeLog
A apps/plugins/gzip/THANKS
A apps/plugins/gzip/gzip.c
A apps/plugins/gzip/README
A apps/plugins/gzip/lzw.c
A apps/plugins/gzip/util.c
A apps/plugins/gzip/gzip.h
A apps/plugins/gzip/unlzw.c
A apps/plugins/gzip/unpack.c
A apps/plugins/gzip/lzw.h
A apps/plugins/gzip/trees.c
A apps/plugins/gzip/inflate.c
A apps/plugins/gzip/TODO
A apps/plugins/gzip/INSTALL
A apps/plugins/gzip/COPYING
A apps/plugins/gzip/NEWS

These files are rockbox specific:
A apps/plugins/gzip/Makefile
A apps/plugins/gzip/gzip_rb.c
A apps/plugins/gzip/gunzip_rb.c
A apps/plugins/gzip/malloc.c

The plugins have been tested and work fine on:
* ipod video sim
* ipod video
* archos recoder sim

The plugins don't build for the archos recorder (and most likely all other hwcodec targets) due to a lack of RAM. This might be fixable at least for the gunzip_rb plugin by making sure that it links only with functions needed for unzipping (gzip and gunzip currently call the same gzip function (~the orignal gzip main()). It would be possible to make a simplified version for gunzip support only)
This task depends upon

Closed by  Thomas Martitz (kugel.)
Sunday, 05 June 2011, 11:30 GMT
Reason for closing:  Out of Date
Additional comments about closing:  There doesn't seem to be interest in this anymore. Open a new task if this is wrong.
Comment by Thomas Martitz (kugel.) - Monday, 24 September 2007, 14:27 GMT
I guess, it doesn't support .zip!? Would be nice though.
Comment by Dominik Riebeling (bluebrother) - Monday, 24 September 2007, 14:44 GMT
zip is something completely different -- it archives and compresses files while gzip only compresses a single file, thus usually files are tarred together first.
Comment by Thomas Martitz (kugel.) - Monday, 24 September 2007, 14:47 GMT
Do you think it would be possible to make a .zip viwer as well?
Comment by Antoine Cellerier (dionoea) - Tuesday, 25 September 2007, 06:55 GMT
I'm currently porting Info-Zip's unzip (which is the unzip program used by most Linux distros, and probably a bunch of other apps on Linux and other OSes). Should be done next week end I guess. Once it is I'll post a new patch to the tracker ... and start porting GNU tar :)
Comment by Calvin Walden (clone4crw) - Thursday, 20 August 2009, 03:44 GMT
/home/calvin/Desktop/rockbox-20090817/rockbox-21932/apps/plugins/plugins.make:38: /home/calvin/Desktop/rockbox-20090817/rockbox-21932/apps/plugins/gzip/gzip.make: No such file or directory
Any suggestions as to how to fix this?
Comment by Will Hauck (moonscapex) - Saturday, 10 October 2009, 17:21 GMT
Even with the fixed makefile this messes up your build.

Loading...