Skip to content
Tcl Source Code View Ticket
Login

View Ticket

zlib licensing mess

Closed / Fixed2557822fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 17 years ago
Descriptionplain2009-02-02 18:39:33
We re-distribute the sources of
the zlib project under tcl/compat/zlib .

Some files under tcl/compat/zlib/contrib/
are under GPL license.

Worth another look to be sure we're not
getting in any trouble.

If we can get out of the business of
distributing our own fork of zlib, that
would be nice too.
nijtmansplain2009-02-05 17:56:13
We are not in trouble for the following reasons:
- Our fork has only two modifications from the original
  source files, which only influence the win32 build.
- One of those modifications is a win32 specific
  bug-fix, which is reported directly to Marc
  Adler ([email protected]) in a private mail
  d.d. dec 12, 2008. After not receiving an
  answer, dec 18 2008 I registered to be a zlib
  developer, in order to gain access to the
  zlib mailing list.
- The second modification handles the marking of
  the dll as a custom build, something that the
  zlib licence requires us to do. So, even if
  someone builds a zlib dll out of the Tcl fork,
  this dll will be clearly marked as not being
  the official dll.
- The zlib/contrib directory is not used in the
  Tcl build, so even though we imported it in
  the Tcl repository, it is unmodified and doesn't
  get released in binary form. So we don't form
  a "combined work" with it as meant by the GPL.

As soon as zlib 1.2.4 comes out, we will no longer
need our own fork. I (as a zlib developer now) will
make sure of that!

I will leave this issue open, so we will not forget
to import zlib 1.2.4 in the Tcl sources as soon as
it is availabe.

Something that should be done, is that on Win32 Tcl
starts distributing a "zlib1.dll" in C:\Tcl\bin, in
stead of linking it in statically in tcl86.dll. That
will allow to simply replacing it with later zlib
versions (when they come out) without re-building
Tcl. The only thing we should take care of then
is build our own zlib1.dll exactly the way that
the official zlib1.dll is build, so with VC++ 6.0
using nasm. That's still on my TODO list, but I
will need the help of someone having VC++ 6.0
nijtmansplain2009-12-11 18:21:56
allow_comments - 1

> That's still on my TODO list, but I
> will need the help of someone having VC++ 6

Since [Feature Request 2605263], 2009-02-16
Tcl uses the 'official' binary build of zlib. I
tested it with the latest Visual Studio Express.
Thus far nobody complained, so I am confident
it works with VC++ 6 as well.

Further on, the modified zlib sources are clearly
marked as modified, as required by the licence.
We don't link with anything from the contrib
directory, so that makes that we are safe.

So, any dynamic win32 uses the official
zlib1.dll. On UNIX, the system-version of
zlib is used. On all other situations, we
compile zlib statically, and clearly marked
as modified.

So, I think we can close this. As soon as
zlib 1.2.4 is out, we can remove the
hack in tclZlib.c (hopefully), but even
that is not high priority since with normal
builds we don't distibute zlib binaries.
Log in (anonymous is fine) to add a comment.