Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

about zlib on FreeBSD

0 views
Skip to first unread message

Jiandong Lu

unread,
Dec 2, 2009, 7:38:33 AM12/2/09
to freebsd...@freebsd.org
zlib package of ms windows could handle .zip archives,it compiles minizip into the zip library.
the library libz on FreeBSD does not compiles minizip. Should we merge minizip into libz ?
Minizip's licence is the same to zlib,so there is no licence barrie.
minizip has only three samll *.c files.If we merge minizip into libz, libz's size would not be larger too much.

btw,I maintain some servers both on windpws and FreeBSD now.They use zlib on windows,and I have compiled minizip on FreeBSD for my projects.I hope that minizip
will be merged into libz on FreeBSD.
Thanks

___________________________________________________________
锟斤拷锟斤拷乜锟斤拷锟斤拷惴拷锟斤拷锟斤拷锟截匡拷全锟斤拷锟斤拷锟竭o拷
http://card.mail.cn.yahoo.com/
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

Dag-Erling Smørgrav

unread,
Dec 2, 2009, 7:50:31 AM12/2/09
to Jiandong Lu, freebsd...@freebsd.org
Jiandong Lu <lujiand...@yahoo.com.cn> writes:
> zlib package of ms windows could handle .zip archives, it compiles

> minizip into the zip library.

Firstly, zlib is one thing and one thing only, namely the reference
implementation of Jean-Loup Gailly's gzip (aka. deflate) compression
algorithm. See zlib.net.

Secondly, Microsoft don't maintain official packages of third-party
software, so there is no such thing as "zlib package of ms windows".
Various projects (Cygwin, MSYS, MinGW, GNUWin32) ship pre-compiled zlib
binaries for Windows, but none of the four I mentioned include zip
support in their version of zlib.

> Should we merge minizip into libz ?

No. Why should we?

If you want to create or unpack .zip files on FreeBSD, use tar(1).

DES
--
Dag-Erling Smørgrav - d...@des.no

Vincent Hoffman

unread,
Dec 2, 2009, 8:03:20 AM12/2/09
to Dag-Erling Smørgrav, Jiandong Lu, freebsd...@freebsd.org
Dag-Erling Smørgrav wrote:
> Jiandong Lu <lujiand...@yahoo.com.cn> writes:
>
>> zlib package of ms windows could handle .zip archives, it compiles
>> minizip into the zip library.
>>
>
> Firstly, zlib is one thing and one thing only, namely the reference
> implementation of Jean-Loup Gailly's gzip (aka. deflate) compression
> algorithm. See zlib.net.
>
> Secondly, Microsoft don't maintain official packages of third-party
> software, so there is no such thing as "zlib package of ms windows".
> Various projects (Cygwin, MSYS, MinGW, GNUWin32) ship pre-compiled zlib
> binaries for Windows, but none of the four I mentioned include zip
> support in their version of zlib.
>
>
>> Should we merge minizip into libz ?
>>
>
> No. Why should we?
>
> If you want to create or unpack .zip files on FreeBSD, use tar(1).
>
> DES
>
To be fair, bsdtar(1) on my 8-STABLE box says it can read but not that
it can create zipfiles.
It it can create them that would be handy.

Vince

Dag-Erling Smørgrav

unread,
Dec 2, 2009, 8:13:37 AM12/2/09
to Vincent Hoffman, Jiandong Lu, freebsd...@freebsd.org
Vincent Hoffman <vi...@unsane.co.uk> writes:
> To be fair, bsdtar(1) on my 8-STABLE box says it can read but not that
> it can create zipfiles.

Huh, I thought Tim had fixed that long ago. Well, there's always
/usr/ports/archivers/zip, or you can send patches to kientzle@ :)

DES
--
Dag-Erling Smørgrav - d...@des.no

Joerg Sonnenberger

unread,
Dec 2, 2009, 9:30:27 AM12/2/09
to freebsd...@freebsd.org
On Wed, Dec 02, 2009 at 01:01:38PM +0000, Vincent Hoffman wrote:
> To be fair, bsdtar(1) on my 8-STABLE box says it can read but not that
> it can create zipfiles.
> It it can create them that would be handy.

The support for zip creation hasn't been merged yet.

Joerg

Tim Kientzle

unread,
Dec 29, 2009, 1:22:42 AM12/29/09
to freebsd...@freebsd.org
Joerg Sonnenberger wrote:
> On Wed, Dec 02, 2009 at 01:01:38PM +0000, Vincent Hoffman wrote:
>> To be fair, bsdtar(1) on my 8-STABLE box says it can read but not that
>> it can create zipfiles.
>> It it can create them that would be handy.
>
> The support for zip creation hasn't been merged yet.

I finally got around to merging this.

After rebuilding libarchive and tar, tar -c --format=zip
should work.

Note: The zip writer does have room for improvement; if
anyone's interested in a side project, it would
be great to get ZIP64 support and a few other details
filled in.

Tim

Tim Kientzle

unread,
Dec 29, 2009, 1:25:22 AM12/29/09
to freebsd...@freebsd.org
Tim Kientzle wrote:
> Joerg Sonnenberger wrote:
>> On Wed, Dec 02, 2009 at 01:01:38PM +0000, Vincent Hoffman wrote:
>>> To be fair, bsdtar(1) on my 8-STABLE box says it can read but not that
>>> it can create zipfiles.
>>> It it can create them that would be handy.
>>
>> The support for zip creation hasn't been merged yet.
>
> I finally got around to merging this.

Just to be clear, I finally got around to merging
this from the Googlecode repository to FreeBSD-CURRENT.
I'll merge it into 8-STABLE in a few more weeks.

Cheers,

0 new messages