• Status Closed
  • Percent Complete
  • Task Type Patches
  • Category Plugins
  • Assigned To
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by dionoea - 2007-09-20
Last edited by kugel. - 2011-06-05

FS#7807 - gzip/gunzip port

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)

Closed by  kugel.
2011-06-05 11:30
Reason for closing:  Out of Date
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

There doesn't seem to be interest in this anymore. Open a new task if this is wrong.

I guess, it doesn’t support .zip!? Would be nice though.

zip is something completely different – it archives and compresses files while gzip only compresses a single file, thus usually files are tarred together first.

Do you think it would be possible to make a .zip viwer as well?

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 :)

/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?

Even with the fixed makefile this messes up your build.


Available keyboard shortcuts


Task Details

Task Editing