Accepting request 91199 from Base:System

-open file descriptors with O_CLOEXEC but only in the·
  gzopen() case, not in gzdopen() as that would change
  the calling application' semantics.
  It is responsability of the caller to ensure O_CLOEXEC is used
  in such scenario.

  only matters in 32 bit. what version to use is still
- Fix two bugs that will break ia64 systems only.
 * This are integrated now,including support for a number
  now with comments,performance numbers,and ia64 support
- Update SSE2/MMX patches to version 2.
  this makes the library up to 6 times faster.
- use compiler profile information to make libz slightly faster.
    contributions in contrib/
- refresh patches with fuzz=0
- added LICENSE file, for GPL licensed contrib files, however
  mail either the security team or me.
- add patch from gentoo that makes zlib to only export
- run make test in the check section.
- remove libgz completely (obsolete long ago)
- supply format arguments to gzprintf().
- update to 1.2.2
- update to 1.2.1
- remove executable bits from manpage and include file
- prevent double free() (security problem) with
- added Provides zlib-devel for compatibility
- install main lib in /%{_lib} not /usr/%{_lib}
- sorted (forwarded request 91106 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/91199
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=41
This commit is contained in:
Stephan Kulow 2011-11-14 12:51:42 +00:00 committed by Git OBS Bridge
parent 24acb76431
commit c7ada8574c
3 changed files with 43 additions and 22 deletions

10
zlib-ocloexec.patch Normal file
View File

@ -0,0 +1,10 @@
--- gzlib.c.orig
+++ gzlib.c
@@ -167,6 +167,7 @@ local gzFile gz_open(path, fd, mode)
#ifdef O_BINARY
O_BINARY |
#endif
+ O_CLOEXEC |
(state->mode == GZ_READ ?
O_RDONLY :
(O_WRONLY | O_CREAT | (

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sun Nov 13 05:52:57 UTC 2011 - crrodriguez@opensuse.org
-open file descriptors with O_CLOEXEC but only in the·
gzopen() case, not in gzdopen() as that would change
the calling application' semantics.
It is responsability of the caller to ensure O_CLOEXEC is used
in such scenario.
-------------------------------------------------------------------
Tue Oct 4 09:10:46 UTC 2011 - uli@suse.com

View File

@ -44,6 +44,7 @@ Patch2: zlib-parallel.patch
# PATCH-FIX-UPSTREAM: bnc#679345 --return NULL checks from 1.2.3 removed by upstream
Patch3: zlib-1.2.5-gzopen-null-check.patch
Patch4: zlib-adler-target-attr.patch
Patch5: zlib-ocloexec.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
@ -90,6 +91,7 @@ libraries.
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5
%build
export LDFLAGS="-Wl,-z,relro,-z,now"