Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 178996

Summary: dev-lang/erlang has an internal copy of zlib
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Emacs project <emacs>
Status: RESOLVED CANTFIX    
Severity: normal CC: albert+gentoo-bugzilla, lang-misc+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-18 12:44:50 UTC
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 Christian Faulhammer (RETIRED) gentoo-dev 2007-05-21 06:26:31 UTC
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 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-21 09:48:47 UTC
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 Christian Faulhammer (RETIRED) gentoo-dev 2007-07-08 15:49:30 UTC
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.