Bug 178996 - dev-lang/erlang has an internal copy of zlib
Bug#: 178996 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: CANTFIX Assigned To: emacs@gentoo.org Reported By: flameeyes@gentoo.org
Component: Ebuilds
URL: 
Summary: dev-lang/erlang has an internal copy of zlib
Keywords:  
Status Whiteboard: 
Opened: 2007-05-18 12:44 0000
Description:   Opened: 2007-05-18 12:44 0000
Not a good idea, in general it would be nicer to use the shared copy of zlib
already present in the system, to avoid having to load more data (zlib is
almost always already present in memory) and to allow fixes in zlib to be
shared by its users too.

------- Comment #1 From Christian Faulhammer 2007-05-21 06:26:31 0000 -------
I deleted zlib.h and zconf.h, which are the only files in erts/emulator/zlib/
that belong to the Gentoo zlib package.  The other files cannot be linked to a
package by me, so I don't know, if I can substitute them.  lookout for -r1

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2007-05-21 09:48:47 0000 -------
Duh, where those two files are (${S}/erts/emulator/zlib) are contained, the
rest of the files are not present in zlib package because they are *built* by
the zlib package into libz.so.

You should remove the whole source directory and link against the installed
libz.so.

------- Comment #3 From Christian Faulhammer 2007-07-08 15:49:30 0000 -------
After struggling with upstream, we cleared out, that erlang cannot use system's
zlib due to heavy patching.  As the current stable includes a vulnerable zlib I
already filed a security bug for the newest....maybe upstream will do something
about it for R12.