Remove widelands-bundled minizip sources for Debian

Bug #1004684 reported by Jens Beyer
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
High
Unassigned

Bug Description

Based on bug 536161

We should check if we can remove widelands-bundled minizip sources.

This can be done if all major distributions are shipping a minizip library.

Currently at least Gentoo is doing so. We could use this bug to track distributions bundling a minizip library.

Tags: buildsystem
Revision history for this message
Borim (borim) wrote :

As I understand minizip is a small example for zlib. The minizip progam on ubuntu (zlib-bin) use zlib and no other library, so I ask me is there a special minizip library? Or is this only a striped zlib?

And why widelands do not use zlib for the "minizip tasks" too? Widelands alreday depends on zlib so this step would not add an additional dependency.

Revision history for this message
David Allwicher (aber) wrote :

The main difference is, that zip can handle multiple files, while gzip is only able to compress one file and zlib is not able to decompress zip archives which contain more than one file.

http://www.zlib.net/zlib_faq.html#faq11

Revision history for this message
Jens Beyer (qcumber-some) wrote :

@#1:

You are right, minizip is an example by zlib people how to use zlib, packed in a separate small library which compiles and links against zlib.
It does not belong to the core zlib library. However, a few linux distributions bundle them up nevertheless, as it is really useful. #3 has written why.

As this is a really useful library, but not available everywhere, many projects decided to use the minizip sources within their packages, but not link against a system minizip library. Next to your favourite example widelands I can mention vlc as most prominent example.

Difference now is, that with vlc there is some power in the market, and there have been changes in the zlib api which prevents older minizip sources to compile against modern zlib. It seems to me that there is a general movement that soon all major distributions support a system minizip library.

So, minizip is not zlib, minizip can not be replaced easily by zlib.

Revision history for this message
Borim (borim) wrote :

okey, thanks for making this clear.

Revision history for this message
Jens Beyer (qcumber-some) wrote :

Not possible for build18 -> build19

Changed in widelands:
milestone: build18-rc1 → build19-rc1
Revision history for this message
SirVer (sirver) wrote :

has not happened so far. Bundling minizip with Widelands is fine, we do that for other libraries too. Static linking is the way of the future anyways.

Changed in widelands:
status: Triaged → Won't Fix
Revision history for this message
Borim (borim) wrote :

Debian will ship a minizip library: Bug #1182025
or direct to debian bug list: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709803

Hopefully libminizip will be in the next ubuntu release ;)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Borim: thanks for following up on this one.

At this point of the development cycle, Ubuntu is automatically syncing packages from Debian, so it is already in! :) See https://launchpad.net/ubuntu/+source/minizip for details.

Revision history for this message
SirVer (sirver) wrote :

Homebrew now also has minizip - so this seems more and more realistic.

We have to bring back the conditional inclusion of the bundled stuff though - it was removed some time ago.

Revision history for this message
Borim (borim) wrote :

Than reopen the bug, so it does not get lost.

SirVer (sirver)
Changed in widelands:
status: Won't Fix → Triaged
status: Triaged → Confirmed
Revision history for this message
SirVer (sirver) wrote :

Setting to incomplete for bug sweeping.

Changed in widelands:
status: Confirmed → Incomplete
GunChleoc (gunchleoc)
Changed in widelands:
status: Incomplete → Confirmed
Revision history for this message
GunChleoc (gunchleoc) wrote :

Nobody has mentioned Windows in this discussion - a library & exe can be downloaded from

http://www.winimage.com/zLibDll/minizip.html

Revision history for this message
GunChleoc (gunchleoc) wrote :
Revision history for this message
kaputtnik (franku) wrote :

Windows is always a problem... and i am not familiar with it any more. Could the download/install be started automatically? Who is responsible for a secure third party minizip library? Where does the enduser be told that minizip is a prerequisite and where he could get it?

The minizip.src in widelands has a size of 88KiB. Because of the little size i am in favour of rescheduling this bug.

Maybe related: "Files in .wmf files have no timestamps", bug 1568457

Revision history for this message
SirVer (sirver) wrote :

I am still of the opinion that what I said in 6 is the best approach. Let's close this and keep using the version we have in our repo.

kaputtnik (franku)
Changed in widelands:
milestone: build19-rc1 → none
status: Confirmed → Triaged
Revision history for this message
GunChleoc (gunchleoc) wrote :

Agreed.

Changed in widelands:
status: Triaged → Invalid
Revision history for this message
GunChleoc (gunchleoc) wrote :

It's a Debian requirement not to include generally available libraries, so we need an option not to use our bundled minizip.

Changed in widelands:
status: Invalid → Confirmed
importance: Low → High
milestone: none → build20-rc1
GunChleoc (gunchleoc)
summary: - Check before release if we can remove widelands-bundled minizip sources
+ Remove widelands-bundled minizip sources for Debian
GunChleoc (gunchleoc)
Changed in widelands:
milestone: build20-rc1 → build21-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.