diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-08-25 20:39:55 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-08-25 20:39:55 +0000 |
| commit | 0f9c34a9723254d439239ab992893c4956711d53 (patch) | |
| tree | 567777b1671444db9dab736ff1e8ba9f11130a51 /meta/packages/zlib | |
| parent | 603e247e23fe95f32a7ea45649c74878dfa49b21 (diff) | |
| download | poky-0f9c34a9723254d439239ab992893c4956711d53.tar.gz | |
zlib: Upgrade from 1.2.3 to 1.2.3.3 to add 64 bit extensions and improve operation on recent 64 bit platforms
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5094 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/zlib')
| -rw-r--r-- | meta/packages/zlib/files/1.2.3.3.dfsg.patch.gz | bin | 0 -> 51163 bytes | |||
| -rw-r--r-- | meta/packages/zlib/files/autotools.patch | 386 | ||||
| -rw-r--r-- | meta/packages/zlib/files/visibility.patch | 383 | ||||
| -rw-r--r-- | meta/packages/zlib/zlib-native.inc | 5 | ||||
| -rw-r--r-- | meta/packages/zlib/zlib-sdk.inc | 5 | ||||
| -rw-r--r-- | meta/packages/zlib/zlib_1.2.3.bb | 8 |
6 files changed, 470 insertions, 317 deletions
diff --git a/meta/packages/zlib/files/1.2.3.3.dfsg.patch.gz b/meta/packages/zlib/files/1.2.3.3.dfsg.patch.gz new file mode 100644 index 0000000000..2afb60de8c --- /dev/null +++ b/meta/packages/zlib/files/1.2.3.3.dfsg.patch.gz | |||
| Binary files differ | |||
diff --git a/meta/packages/zlib/files/autotools.patch b/meta/packages/zlib/files/autotools.patch index d1dc8dd8d4..d70c2f6892 100644 --- a/meta/packages/zlib/files/autotools.patch +++ b/meta/packages/zlib/files/autotools.patch | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | 1 | Index: zlib-1.2.3/configure |
| 2 | --- zlib-1.2.3/configure 2005-07-11 22:11:57.000000000 +0200 | 2 | =================================================================== |
| 3 | +++ zlib-1.2.3new/configure 1970-01-01 01:00:00.000000000 +0100 | 3 | --- zlib-1.2.3.orig/configure 2008-08-23 11:23:47.000000000 +0100 |
| 4 | @@ -1,459 +0,0 @@ | 4 | +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 5 | @@ -1,558 +0,0 @@ | ||
| 5 | -#!/bin/sh | 6 | -#!/bin/sh |
| 6 | -# configure script for zlib. This script is needed only if | 7 | -# configure script for zlib. This script is needed only if |
| 7 | -# you wish to build a shared library and your system supports them, | 8 | -# you wish to build a shared library and your system supports them, |
| @@ -27,7 +28,8 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 27 | -VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` | 28 | -VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` |
| 28 | -VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` | 29 | -VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` |
| 29 | -VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` | 30 | -VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` |
| 30 | -AR=${AR-"ar rc"} | 31 | -AR=${AR-"ar"} |
| 32 | -AR_RC="${AR} rc" | ||
| 31 | -RANLIB=${RANLIB-"ranlib"} | 33 | -RANLIB=${RANLIB-"ranlib"} |
| 32 | -prefix=${prefix-/usr/local} | 34 | -prefix=${prefix-/usr/local} |
| 33 | -exec_prefix=${exec_prefix-'${prefix}'} | 35 | -exec_prefix=${exec_prefix-'${prefix}'} |
| @@ -35,7 +37,8 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 35 | -includedir=${includedir-'${prefix}/include'} | 37 | -includedir=${includedir-'${prefix}/include'} |
| 36 | -mandir=${mandir-'${prefix}/share/man'} | 38 | -mandir=${mandir-'${prefix}/share/man'} |
| 37 | -shared_ext='.so' | 39 | -shared_ext='.so' |
| 38 | -shared=0 | 40 | -shared=1 |
| 41 | -zprefix=0 | ||
| 39 | -gcc=0 | 42 | -gcc=0 |
| 40 | -old_cc="$CC" | 43 | -old_cc="$CC" |
| 41 | -old_cflags="$CFLAGS" | 44 | -old_cflags="$CFLAGS" |
| @@ -43,20 +46,25 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 43 | -while test $# -ge 1 | 46 | -while test $# -ge 1 |
| 44 | -do | 47 | -do |
| 45 | -case "$1" in | 48 | -case "$1" in |
| 46 | - -h* | --h*) | 49 | - -h* | --help) |
| 47 | - echo 'usage:' | 50 | - echo 'usage:' |
| 48 | - echo ' configure [--shared] [--prefix=PREFIX] [--exec_prefix=EXPREFIX]' | 51 | - echo ' configure [--shared] [--prefix=PREFIX] [--exec_prefix=EXPREFIX]' |
| 49 | - echo ' [--libdir=LIBDIR] [--includedir=INCLUDEDIR]' | 52 | - echo ' [--libdir=LIBDIR] [--includedir=INCLUDEDIR] [--zprefix]' |
| 50 | - exit 0;; | 53 | - exit 0;; |
| 51 | - -p*=* | --p*=*) prefix=`echo $1 | sed 's/[-a-z_]*=//'`; shift;; | 54 | - -p*=* | --prefix=*) prefix=`echo $1 | sed 's/[-a-z_]*=//'`; shift;; |
| 52 | - -e*=* | --e*=*) exec_prefix=`echo $1 | sed 's/[-a-z_]*=//'`; shift;; | 55 | - -e*=* | --eprefix=*) exec_prefix=`echo $1 | sed 's/[-a-z_]*=//'`; shift;; |
| 53 | - -l*=* | --libdir=*) libdir=`echo $1 | sed 's/[-a-z_]*=//'`; shift;; | 56 | - -l*=* | --libdir=*) libdir=`echo $1 | sed 's/[-a-z_]*=//'`; shift;; |
| 54 | - -i*=* | --includedir=*) includedir=`echo $1 | sed 's/[-a-z_]*=//'`;shift;; | 57 | - -i*=* | --includedir=*) includedir=`echo $1 | sed 's/[-a-z_]*=//'`;shift;; |
| 55 | - -p* | --p*) prefix="$2"; shift; shift;; | 58 | - -u*=* | --uname=*) uname=`echo $1 | sed 's/[-a-z_]*=//'`;shift;; |
| 56 | - -e* | --e*) exec_prefix="$2"; shift; shift;; | 59 | - -p* | --prefix) prefix="$2"; shift; shift;; |
| 57 | - -l* | --l*) libdir="$2"; shift; shift;; | 60 | - -e* | --eprefix) exec_prefix="$2"; shift; shift;; |
| 58 | - -i* | --i*) includedir="$2"; shift; shift;; | 61 | - -l* | --libdir) libdir="$2"; shift; shift;; |
| 59 | - -s* | --s*) shared=1; shift;; | 62 | - -i* | --includedir) includedir="$2"; shift; shift;; |
| 63 | - -s* | --shared | --enable-shared) shared=1; shift;; | ||
| 64 | - -t | --static) shared=0; shift;; | ||
| 65 | - -z* | --zprefix) zprefix=1; shift;; | ||
| 66 | - --sysconfdir=*) echo "ignored option: --sysconfdir"; shift;; | ||
| 67 | - --localstatedir=*) echo "ignored option: --localstatedir"; shift;; | ||
| 60 | - *) echo "unknown option: $1"; echo "$0 --help for help"; exit 1;; | 68 | - *) echo "unknown option: $1"; echo "$0 --help for help"; exit 1;; |
| 61 | - esac | 69 | - esac |
| 62 | -done | 70 | -done |
| @@ -77,10 +85,13 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 77 | - | 85 | - |
| 78 | -if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then | 86 | -if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then |
| 79 | - CC="$cc" | 87 | - CC="$cc" |
| 80 | - SFLAGS=${CFLAGS-"-fPIC -O3"} | 88 | - SFLAGS="${CFLAGS-"-O3"} -fPIC" |
| 81 | - CFLAGS="$cflags" | 89 | - CFLAGS="${CFLAGS-"-O3"}" |
| 82 | - case `(uname -s || echo unknown) 2>/dev/null` in | 90 | - if test -z $uname; then |
| 83 | - Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};; | 91 | - uname=`(uname -s || echo unknown) 2>/dev/null` |
| 92 | - fi | ||
| 93 | - case "$uname" in | ||
| 94 | - Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"};; | ||
| 84 | - CYGWIN* | Cygwin* | cygwin* | OS/2* ) | 95 | - CYGWIN* | Cygwin* | cygwin* | OS/2* ) |
| 85 | - EXE='.exe';; | 96 | - EXE='.exe';; |
| 86 | - QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 | 97 | - QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 |
| @@ -106,7 +117,10 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 106 | -else | 117 | -else |
| 107 | - # find system name and corresponding cc options | 118 | - # find system name and corresponding cc options |
| 108 | - CC=${CC-cc} | 119 | - CC=${CC-cc} |
| 109 | - case `(uname -sr || echo unknown) 2>/dev/null` in | 120 | - if test -z $uname; then |
| 121 | - uname=`(uname -sr || echo unknown) 2>/dev/null` | ||
| 122 | - fi | ||
| 123 | - case "$uname" in | ||
| 110 | - HP-UX*) SFLAGS=${CFLAGS-"-O +z"} | 124 | - HP-UX*) SFLAGS=${CFLAGS-"-O +z"} |
| 111 | - CFLAGS=${CFLAGS-"-O"} | 125 | - CFLAGS=${CFLAGS-"-O"} |
| 112 | -# LDSHARED=${LDSHARED-"ld -b +vnocompatwarnings"} | 126 | -# LDSHARED=${LDSHARED-"ld -b +vnocompatwarnings"} |
| @@ -121,24 +135,30 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 121 | - esac;; | 135 | - esac;; |
| 122 | - IRIX*) SFLAGS=${CFLAGS-"-ansi -O2 -rpath ."} | 136 | - IRIX*) SFLAGS=${CFLAGS-"-ansi -O2 -rpath ."} |
| 123 | - CFLAGS=${CFLAGS-"-ansi -O2"} | 137 | - CFLAGS=${CFLAGS-"-ansi -O2"} |
| 124 | - LDSHARED=${LDSHARED-"cc -shared"};; | 138 | - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"};; |
| 125 | - OSF1\ V4*) SFLAGS=${CFLAGS-"-O -std1"} | 139 | - OSF1\ V4*) SFLAGS=${CFLAGS-"-O -std1"} |
| 126 | - CFLAGS=${CFLAGS-"-O -std1"} | 140 | - CFLAGS=${CFLAGS-"-O -std1"} |
| 127 | - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"};; | 141 | - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"};; |
| 128 | - OSF1*) SFLAGS=${CFLAGS-"-O -std1"} | 142 | - OSF1*) SFLAGS=${CFLAGS-"-O -std1"} |
| 129 | - CFLAGS=${CFLAGS-"-O -std1"} | 143 | - CFLAGS=${CFLAGS-"-O -std1"} |
| 130 | - LDSHARED=${LDSHARED-"cc -shared"};; | 144 | - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"};; |
| 131 | - QNX*) SFLAGS=${CFLAGS-"-4 -O"} | 145 | - QNX*) SFLAGS=${CFLAGS-"-4 -O"} |
| 132 | - CFLAGS=${CFLAGS-"-4 -O"} | 146 | - CFLAGS=${CFLAGS-"-4 -O"} |
| 133 | - LDSHARED=${LDSHARED-"cc"} | 147 | - LDSHARED=${LDSHARED-"cc"} |
| 134 | - RANLIB=${RANLIB-"true"} | 148 | - RANLIB=${RANLIB-"true"} |
| 135 | - AR="cc -A";; | 149 | - AR_RC="cc -A";; |
| 136 | - SCO_SV\ 3.2*) SFLAGS=${CFLAGS-"-O3 -dy -KPIC "} | 150 | - SCO_SV\ 3.2*) SFLAGS=${CFLAGS-"-O3 -dy -KPIC "} |
| 137 | - CFLAGS=${CFLAGS-"-O3"} | 151 | - CFLAGS=${CFLAGS-"-O3"} |
| 138 | - LDSHARED=${LDSHARED-"cc -dy -KPIC -G"};; | 152 | - LDSHARED=${LDSHARED-"cc -dy -KPIC -G"};; |
| 139 | - SunOS\ 5*) SFLAGS=${CFLAGS-"-fast -xcg89 -KPIC -R."} | 153 | - SunOS\ 5*) LDSHARED=${LDSHARED-"cc -G"} |
| 140 | - CFLAGS=${CFLAGS-"-fast -xcg89"} | 154 | - case `(uname -m || echo unknown) 2>/dev/null` in |
| 141 | - LDSHARED=${LDSHARED-"cc -G"};; | 155 | - i86*) |
| 156 | - SFLAGS=${CFLAGS-"-xpentium -fast -KPIC -R."} | ||
| 157 | - CFLAGS=${CFLAGS-"-xpentium -fast"};; | ||
| 158 | - *) | ||
| 159 | - SFLAGS=${CFLAGS-"-fast -xcg92 -KPIC -R."} | ||
| 160 | - CFLAGS=${CFLAGS-"-fast -xcg92"};; | ||
| 161 | - esac;; | ||
| 142 | - SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"} | 162 | - SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"} |
| 143 | - CFLAGS=${CFLAGS-"-O2"} | 163 | - CFLAGS=${CFLAGS-"-O2"} |
| 144 | - LDSHARED=${LDSHARED-"ld"};; | 164 | - LDSHARED=${LDSHARED-"ld"};; |
| @@ -177,22 +197,63 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 177 | - # we must test in two steps (cc then ld), required at least on SunOS 4.x | 197 | - # we must test in two steps (cc then ld), required at least on SunOS 4.x |
| 178 | - if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" && | 198 | - if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" && |
| 179 | - test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then | 199 | - test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then |
| 180 | - CFLAGS="$SFLAGS" | 200 | - LIBS="$LIBS $SHAREDLIBV" |
| 181 | - LIBS="$SHAREDLIBV" | ||
| 182 | - echo Building shared library $SHAREDLIBV with $CC. | 201 | - echo Building shared library $SHAREDLIBV with $CC. |
| 183 | - elif test -z "$old_cc" -a -z "$old_cflags"; then | 202 | - elif test -z "$old_cc" -a -z "$old_cflags"; then |
| 184 | - echo No shared library support. | 203 | - echo No shared library support. |
| 185 | - shared=0; | 204 | - shared=0; |
| 186 | - else | 205 | - else |
| 206 | - echo Tested $CC -c $SFLAGS $test.c | ||
| 207 | - $CC -c $SFLAGS $test.c | ||
| 208 | - echo Tested $LDSHARED -o $test$shared_ext $test.o | ||
| 209 | - $LDSHARED -o $test$shared_ext $test.o | ||
| 187 | - echo 'No shared library support; try without defining CC and CFLAGS' | 210 | - echo 'No shared library support; try without defining CC and CFLAGS' |
| 188 | - shared=0; | 211 | - shared=0; |
| 189 | - fi | 212 | - fi |
| 190 | -fi | 213 | -fi |
| 191 | -if test $shared -eq 0; then | 214 | -if test $shared -eq 0; then |
| 192 | - LDSHARED="$CC" | 215 | - LDSHARED="$CC" |
| 216 | - ALL="allstatic" | ||
| 217 | - TEST="teststatic" | ||
| 193 | - echo Building static library $LIBS version $VER with $CC. | 218 | - echo Building static library $LIBS version $VER with $CC. |
| 194 | -else | 219 | -else |
| 195 | - LDFLAGS="-L. ${SHAREDLIBV}" | 220 | - ALL="allstatic allshared" |
| 221 | - TEST="teststatic testshared" | ||
| 222 | -fi | ||
| 223 | - | ||
| 224 | -cat > zlibdefs.h << EOF | ||
| 225 | -/* zlibdefs.h -- compile-time definitions for the zlib compression library | ||
| 226 | - * Copyright (C) 1995-2006 Jean-loup Gailly. | ||
| 227 | - * For conditions of distribution and use, see copyright notice in zlib.h | ||
| 228 | - */ | ||
| 229 | - | ||
| 230 | -EOF | ||
| 231 | - | ||
| 232 | -cat > $test.c <<EOF | ||
| 233 | -#include <sys/types.h> | ||
| 234 | -off64_t dummy = 0; | ||
| 235 | -EOF | ||
| 236 | -if test "`($CC -c $CFLAGS -D_LARGEFILE64_SOURCE=1 $test.c) 2>&1`" = ""; then | ||
| 237 | - CFLAGS="${CFLAGS} -D_LARGEFILE64_SOURCE=1" | ||
| 238 | - SFLAGS="${SFLAGS} -D_LARGEFILE64_SOURCE=1" | ||
| 239 | - echo "Checking for off64_t... Yes." | ||
| 240 | - echo "Checking for fseeko... Yes." | ||
| 241 | -else | ||
| 242 | - echo "Checking for off64_t... No." | ||
| 243 | - cat > $test.c <<EOF | ||
| 244 | -#include <stdio.h> | ||
| 245 | -int main(void) { | ||
| 246 | - fseeko(NULL, 0, 0); | ||
| 247 | - return 0; | ||
| 248 | -} | ||
| 249 | -EOF | ||
| 250 | - if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then | ||
| 251 | - echo "Checking for fseeko... Yes." | ||
| 252 | - else | ||
| 253 | - CFLAGS="${CFLAGS} -DNO_FSEEKO" | ||
| 254 | - SFLAGS="${SFLAGS} -DNO_FSEEKO" | ||
| 255 | - echo "Checking for fseeko... No." | ||
| 256 | - fi | ||
| 196 | -fi | 257 | -fi |
| 197 | - | 258 | - |
| 198 | -cat > $test.c <<EOF | 259 | -cat > $test.c <<EOF |
| @@ -200,13 +261,27 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 200 | -int main() { return 0; } | 261 | -int main() { return 0; } |
| 201 | -EOF | 262 | -EOF |
| 202 | -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then | 263 | -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then |
| 203 | - sed < zconf.in.h "/HAVE_UNISTD_H/s%0%1%" > zconf.h | 264 | - cat >> zlibdefs.h <<EOF |
| 265 | -#include <sys/types.h> /* for off_t */ | ||
| 266 | -#include <unistd.h> /* for SEEK_* and off_t */ | ||
| 267 | -#ifdef VMS | ||
| 268 | -# include <unixio.h> /* for off_t */ | ||
| 269 | -#endif | ||
| 270 | -#ifndef z_off_t | ||
| 271 | -# define z_off_t off_t | ||
| 272 | -#endif | ||
| 273 | -EOF | ||
| 204 | - echo "Checking for unistd.h... Yes." | 274 | - echo "Checking for unistd.h... Yes." |
| 205 | -else | 275 | -else |
| 206 | - cp -p zconf.in.h zconf.h | ||
| 207 | - echo "Checking for unistd.h... No." | 276 | - echo "Checking for unistd.h... No." |
| 208 | -fi | 277 | -fi |
| 209 | - | 278 | - |
| 279 | -if test $zprefix -eq 1; then | ||
| 280 | - sed < zconf.h "/#ifdef Z_PREFIX/s/def Z_PREFIX/ 1/" > zconf.temp.h | ||
| 281 | - mv zconf.temp.h zconf.h | ||
| 282 | - echo "Using z_ prefix on all symbols." | ||
| 283 | -fi | ||
| 284 | - | ||
| 210 | -cat > $test.c <<EOF | 285 | -cat > $test.c <<EOF |
| 211 | -#include <stdio.h> | 286 | -#include <stdio.h> |
| 212 | -#include <stdarg.h> | 287 | -#include <stdarg.h> |
| @@ -223,7 +298,7 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 223 | -EOF | 298 | -EOF |
| 224 | - | 299 | - |
| 225 | -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then | 300 | -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then |
| 226 | - echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()" | 301 | - echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()." |
| 227 | - | 302 | - |
| 228 | - cat > $test.c <<EOF | 303 | - cat > $test.c <<EOF |
| 229 | -#include <stdio.h> | 304 | -#include <stdio.h> |
| @@ -320,7 +395,7 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 320 | - fi | 395 | - fi |
| 321 | - fi | 396 | - fi |
| 322 | -else | 397 | -else |
| 323 | - echo "Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()" | 398 | - echo "Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()." |
| 324 | - | 399 | - |
| 325 | - cat >$test.c <<EOF | 400 | - cat >$test.c <<EOF |
| 326 | -#include <stdio.h> | 401 | -#include <stdio.h> |
| @@ -445,13 +520,36 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 445 | -sed < Makefile.in " | 520 | -sed < Makefile.in " |
| 446 | -/^CC *=/s#=.*#=$CC# | 521 | -/^CC *=/s#=.*#=$CC# |
| 447 | -/^CFLAGS *=/s#=.*#=$CFLAGS# | 522 | -/^CFLAGS *=/s#=.*#=$CFLAGS# |
| 523 | -/^SFLAGS *=/s#=.*#=$SFLAGS# | ||
| 524 | -/^LDFLAGS *=/s#=.*#=$LDFLAGS# | ||
| 525 | -/^LDSHARED *=/s#=.*#=$LDSHARED# | ||
| 526 | -/^CPP *=/s#=.*#=$CPP# | ||
| 527 | -/^LIBS *=/s#=.*#=$LIBS# | ||
| 528 | -/^SHAREDLIB *=/s#=.*#=$SHAREDLIB# | ||
| 529 | -/^SHAREDLIBV *=/s#=.*#=$SHAREDLIBV# | ||
| 530 | -/^SHAREDLIBM *=/s#=.*#=$SHAREDLIBM# | ||
| 531 | -/^AR *=/s#=.*#=$AR_RC# | ||
| 532 | -/^RANLIB *=/s#=.*#=$RANLIB# | ||
| 533 | -/^EXE *=/s#=.*#=$EXE# | ||
| 534 | -/^prefix *=/s#=.*#=$prefix# | ||
| 535 | -/^exec_prefix *=/s#=.*#=$exec_prefix# | ||
| 536 | -/^libdir *=/s#=.*#=$libdir# | ||
| 537 | -/^includedir *=/s#=.*#=$includedir# | ||
| 538 | -/^mandir *=/s#=.*#=$mandir# | ||
| 539 | -/^all: */s#:.*#: $ALL# | ||
| 540 | -/^test: */s#:.*#: $TEST# | ||
| 541 | -" > Makefile | ||
| 542 | - | ||
| 543 | -sed < zlib.pc.in " | ||
| 544 | -/^CC *=/s#=.*#=$CC# | ||
| 545 | -/^CFLAGS *=/s#=.*#=$CFLAGS# | ||
| 448 | -/^CPP *=/s#=.*#=$CPP# | 546 | -/^CPP *=/s#=.*#=$CPP# |
| 449 | -/^LDSHARED *=/s#=.*#=$LDSHARED# | 547 | -/^LDSHARED *=/s#=.*#=$LDSHARED# |
| 450 | -/^LIBS *=/s#=.*#=$LIBS# | 548 | -/^LIBS *=/s#=.*#=$LIBS# |
| 451 | -/^SHAREDLIB *=/s#=.*#=$SHAREDLIB# | 549 | -/^SHAREDLIB *=/s#=.*#=$SHAREDLIB# |
| 452 | -/^SHAREDLIBV *=/s#=.*#=$SHAREDLIBV# | 550 | -/^SHAREDLIBV *=/s#=.*#=$SHAREDLIBV# |
| 453 | -/^SHAREDLIBM *=/s#=.*#=$SHAREDLIBM# | 551 | -/^SHAREDLIBM *=/s#=.*#=$SHAREDLIBM# |
| 454 | -/^AR *=/s#=.*#=$AR# | 552 | -/^AR *=/s#=.*#=$AR_RC# |
| 455 | -/^RANLIB *=/s#=.*#=$RANLIB# | 553 | -/^RANLIB *=/s#=.*#=$RANLIB# |
| 456 | -/^EXE *=/s#=.*#=$EXE# | 554 | -/^EXE *=/s#=.*#=$EXE# |
| 457 | -/^prefix *=/s#=.*#=$prefix# | 555 | -/^prefix *=/s#=.*#=$prefix# |
| @@ -460,11 +558,14 @@ diff -Naur zlib-1.2.3/configure zlib-1.2.3new/configure | |||
| 460 | -/^includedir *=/s#=.*#=$includedir# | 558 | -/^includedir *=/s#=.*#=$includedir# |
| 461 | -/^mandir *=/s#=.*#=$mandir# | 559 | -/^mandir *=/s#=.*#=$mandir# |
| 462 | -/^LDFLAGS *=/s#=.*#=$LDFLAGS# | 560 | -/^LDFLAGS *=/s#=.*#=$LDFLAGS# |
| 463 | -" > Makefile | 561 | -" | sed -e " |
| 464 | diff -Naur zlib-1.2.3/configure.ac zlib-1.2.3new/configure.ac | 562 | -s/\@VERSION\@/$VER/g; |
| 465 | --- zlib-1.2.3/configure.ac 1970-01-01 01:00:00.000000000 +0100 | 563 | -" > zlib.pc |
| 466 | +++ zlib-1.2.3new/configure.ac 2006-08-07 20:38:31.612402750 +0200 | 564 | Index: zlib-1.2.3/configure.ac |
| 467 | @@ -0,0 +1,14 @@ | 565 | =================================================================== |
| 566 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
| 567 | +++ zlib-1.2.3/configure.ac 2008-08-23 12:01:15.000000000 +0100 | ||
| 568 | @@ -0,0 +1,48 @@ | ||
| 468 | +AC_INIT(zlib,1.2.3) | 569 | +AC_INIT(zlib,1.2.3) |
| 469 | +AC_CONFIG_SRCDIR(adler32.c) | 570 | +AC_CONFIG_SRCDIR(adler32.c) |
| 470 | +AM_INIT_AUTOMAKE(zlibs,1.2.3) | 571 | +AM_INIT_AUTOMAKE(zlibs,1.2.3) |
| @@ -476,27 +577,63 @@ diff -Naur zlib-1.2.3/configure.ac zlib-1.2.3new/configure.ac | |||
| 476 | + | 577 | + |
| 477 | +AC_HEADER_STDC | 578 | +AC_HEADER_STDC |
| 478 | + | 579 | + |
| 580 | +zlib_save_CPPFLAGS=$CPPFLAGS | ||
| 581 | +CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" | ||
| 582 | +AC_CHECK_TYPES(off64_t) | ||
| 583 | +CPPFLAGS=$zlib_save_CPPFLAGS | ||
| 584 | + | ||
| 585 | +AC_CACHE_CHECK([whether to enable -D_LARGEFILE64_SOURCE], [zlib_cv_use_lfs64], [ | ||
| 586 | + zlib_cv_use_lfs64=yes | ||
| 587 | + if test "$ac_cv_off64_t" = "yes"; then | ||
| 588 | + zlib_cv_use_lfs64=yes | ||
| 589 | + fi | ||
| 590 | +]) | ||
| 591 | + | ||
| 592 | +if test "$zlib_cv_use_lfs64" = "yes"; then | ||
| 593 | + CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" | ||
| 594 | + echo "eek" | ||
| 595 | + #APR_ADDTO(CPPFLAGS, [-D_LARGEFILE64_SOURCE]) | ||
| 596 | +fi | ||
| 597 | + | ||
| 598 | +cat > zlibdefs.h << EOF | ||
| 599 | +/* zlibdefs.h -- compile-time definitions for the zlib compression library | ||
| 600 | + * Copyright (C) 1995-2006 Jean-loup Gailly. | ||
| 601 | + * For conditions of distribution and use, see copyright notice in zlib.h | ||
| 602 | + */ | ||
| 603 | + | ||
| 604 | +#include <sys/types.h> /* for off_t */ | ||
| 605 | +#include <unistd.h> /* for SEEK_* and off_t */ | ||
| 606 | +#ifdef VMS | ||
| 607 | +# include <unixio.h> /* for off_t */ | ||
| 608 | +#endif | ||
| 609 | +#ifndef z_off_t | ||
| 610 | +# define z_off_t off_t | ||
| 611 | +#endif | ||
| 612 | +EOF | ||
| 613 | + | ||
| 479 | +AC_CONFIG_FILES([Makefile]) | 614 | +AC_CONFIG_FILES([Makefile]) |
| 480 | + | 615 | + |
| 481 | +AC_OUTPUT | 616 | +AC_OUTPUT |
| 482 | diff -Naur zlib-1.2.3/Makefile.am zlib-1.2.3new/Makefile.am | 617 | Index: zlib-1.2.3/Makefile.am |
| 483 | --- zlib-1.2.3/Makefile.am 2006/10/14 05:35:40 1.1 | 618 | =================================================================== |
| 484 | +++ zlib-1.2.3new/Makefile.am 2006/10/14 05:36:49 | 619 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 620 | +++ zlib-1.2.3/Makefile.am 2008-08-23 11:23:47.000000000 +0100 | ||
| 485 | @@ -0,0 +1,8 @@ | 621 | @@ -0,0 +1,8 @@ |
| 486 | +lib_LTLIBRARIES = libz.la | 622 | +lib_LTLIBRARIES = libz.la |
| 487 | + | 623 | + |
| 488 | +libz_la_SOURCES = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c \ | 624 | +libz_la_SOURCES = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c \ |
| 489 | + trees.c zutil.c inflate.c infback.c inftrees.c inffast.c | 625 | + trees.c zutil.c inflate.c infback.c inftrees.c inffast.c |
| 490 | + | 626 | + |
| 491 | +libz_la_LDFLAGS = -version-number 1:2:3 | 627 | +libz_la_LDFLAGS = -version-number 1:2:3 --version-script zlib.map |
| 492 | + | 628 | + |
| 493 | +include_HEADERS = zconf.h zlib.h | 629 | +include_HEADERS = zconf.h zlib.h zlibdefs.h |
| 494 | diff -Naur zlib-1.2.3/Makefile.in zlib-1.2.3new/Makefile.in | 630 | Index: zlib-1.2.3/Makefile.in |
| 495 | --- zlib-1.2.3/Makefile.in 2005-07-18 04:25:21.000000000 +0200 | 631 | =================================================================== |
| 496 | +++ zlib-1.2.3new/Makefile.in 1970-01-01 01:00:00.000000000 +0100 | 632 | --- zlib-1.2.3.orig/Makefile.in 2008-08-23 11:23:47.000000000 +0100 |
| 497 | @@ -1,154 +0,0 @@ | 633 | +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 634 | @@ -1,215 +0,0 @@ | ||
| 498 | -# Makefile for zlib | 635 | -# Makefile for zlib |
| 499 | -# Copyright (C) 1995-2005 Jean-loup Gailly. | 636 | -# Copyright (C) 1995-2006 Jean-loup Gailly. |
| 500 | -# For conditions of distribution and use, see copyright notice in zlib.h | 637 | -# For conditions of distribution and use, see copyright notice in zlib.h |
| 501 | - | 638 | - |
| 502 | -# To compile and test, type: | 639 | -# To compile and test, type: |
| @@ -521,16 +658,18 @@ diff -Naur zlib-1.2.3/Makefile.in zlib-1.2.3new/Makefile.in | |||
| 521 | -#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | 658 | -#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ |
| 522 | -# -Wstrict-prototypes -Wmissing-prototypes | 659 | -# -Wstrict-prototypes -Wmissing-prototypes |
| 523 | - | 660 | - |
| 661 | -SFLAGS=-O | ||
| 662 | - | ||
| 524 | -LDFLAGS=libz.a | 663 | -LDFLAGS=libz.a |
| 525 | -LDSHARED=$(CC) | 664 | -LDSHARED=$(CC) |
| 526 | -CPP=$(CC) -E | 665 | -CPP=$(CC) -E |
| 527 | - | 666 | - |
| 528 | -LIBS=libz.a | 667 | -LIBS=libz.a |
| 529 | -SHAREDLIB=libz.so | 668 | -SHAREDLIB=libz.so |
| 530 | -SHAREDLIBV=libz.so.1.2.3 | 669 | -SHAREDLIBV=libz.so.1.2.3.3 |
| 531 | -SHAREDLIBM=libz.so.1 | 670 | -SHAREDLIBM=libz.so.1 |
| 532 | - | 671 | - |
| 533 | -AR=ar rc | 672 | -AR=ar |
| 534 | -RANLIB=ranlib | 673 | -RANLIB=ranlib |
| 535 | -TAR=tar | 674 | -TAR=tar |
| 536 | -SHELL=/bin/sh | 675 | -SHELL=/bin/sh |
| @@ -542,21 +681,28 @@ diff -Naur zlib-1.2.3/Makefile.in zlib-1.2.3new/Makefile.in | |||
| 542 | -includedir = ${prefix}/include | 681 | -includedir = ${prefix}/include |
| 543 | -mandir = ${prefix}/share/man | 682 | -mandir = ${prefix}/share/man |
| 544 | -man3dir = ${mandir}/man3 | 683 | -man3dir = ${mandir}/man3 |
| 684 | -pkgconfigdir = ${libdir}/pkgconfig | ||
| 545 | - | 685 | - |
| 546 | -OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | 686 | -OBJC = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ |
| 547 | - zutil.o inflate.o infback.o inftrees.o inffast.o | 687 | - zutil.o inflate.o infback.o inftrees.o inffast.o |
| 548 | - | 688 | - |
| 549 | -OBJA = | 689 | -OBJA = |
| 550 | -# to use the asm code: make OBJA=match.o | 690 | -# to use the asm code: make OBJA=match.o |
| 551 | - | 691 | - |
| 692 | -OBJS = $(OBJC) $(OBJA) | ||
| 693 | - | ||
| 694 | -PIC_OBJS = $(OBJS:%.o=%.lo) | ||
| 695 | - | ||
| 552 | -TEST_OBJS = example.o minigzip.o | 696 | -TEST_OBJS = example.o minigzip.o |
| 553 | - | 697 | - |
| 554 | -all: example$(EXE) minigzip$(EXE) | 698 | -allstatic: example$(EXE) minigzip$(EXE) |
| 555 | - | 699 | - |
| 556 | -check: test | 700 | -allshared: examplesh$(EXE) minigzipsh$(EXE) |
| 557 | -test: all | 701 | - |
| 558 | - @LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \ | 702 | -all: allstatic allshared |
| 559 | - echo hello world | ./minigzip | ./minigzip -d || \ | 703 | - |
| 704 | -teststatic: allstatic | ||
| 705 | - @echo hello world | ./minigzip | ./minigzip -d || \ | ||
| 560 | - echo ' *** minigzip test FAILED ***' ; \ | 706 | - echo ' *** minigzip test FAILED ***' ; \ |
| 561 | - if ./example; then \ | 707 | - if ./example; then \ |
| 562 | - echo ' *** zlib test OK ***'; \ | 708 | - echo ' *** zlib test OK ***'; \ |
| @@ -564,8 +710,24 @@ diff -Naur zlib-1.2.3/Makefile.in zlib-1.2.3new/Makefile.in | |||
| 564 | - echo ' *** zlib test FAILED ***'; \ | 710 | - echo ' *** zlib test FAILED ***'; \ |
| 565 | - fi | 711 | - fi |
| 566 | - | 712 | - |
| 567 | -libz.a: $(OBJS) $(OBJA) | 713 | -testshared: allshared |
| 568 | - $(AR) $@ $(OBJS) $(OBJA) | 714 | - @LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \ |
| 715 | - DYLD_LIBRARY_PATH=`pwd`:$(DYLD_LIBRARY_PATH) ; export DYLD_LIBRARY_PATH; \ | ||
| 716 | - SHLIB_PATH=`pwd`:$(SHLIB_PATH) ; export SHLIB_PATH; \ | ||
| 717 | - echo hello world | ./minigzipsh | ./minigzipsh -d || \ | ||
| 718 | - echo ' *** minigzip shared test FAILED ***' ; \ | ||
| 719 | - if ./examplesh; then \ | ||
| 720 | - echo ' *** zlib shared test OK ***'; \ | ||
| 721 | - else \ | ||
| 722 | - echo ' *** zlib shared test FAILED ***'; \ | ||
| 723 | - fi | ||
| 724 | - | ||
| 725 | -test: teststatic testshared | ||
| 726 | - | ||
| 727 | -check: test | ||
| 728 | - | ||
| 729 | -libz.a: $(OBJS) | ||
| 730 | - $(AR) $@ $(OBJS) | ||
| 569 | - -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 | 731 | - -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 |
| 570 | - | 732 | - |
| 571 | -match.o: match.S | 733 | -match.o: match.S |
| @@ -574,8 +736,17 @@ diff -Naur zlib-1.2.3/Makefile.in zlib-1.2.3new/Makefile.in | |||
| 574 | - mv _match.o match.o | 736 | - mv _match.o match.o |
| 575 | - rm -f _match.s | 737 | - rm -f _match.s |
| 576 | - | 738 | - |
| 577 | -$(SHAREDLIBV): $(OBJS) | 739 | -match.lo: match.S |
| 578 | - $(LDSHARED) -o $@ $(OBJS) | 740 | - $(CPP) match.S > _match.s |
| 741 | - $(CC) -c -fPIC _match.s | ||
| 742 | - mv _match.o match.lo | ||
| 743 | - rm -f _match.s | ||
| 744 | - | ||
| 745 | -%.lo: %.c | ||
| 746 | - $(CC) $(SFLAGS) -DPIC -c $< -o $@ | ||
| 747 | - | ||
| 748 | -$(SHAREDLIBV): $(PIC_OBJS) | ||
| 749 | - $(LDSHARED) -o $@ $(PIC_OBJS) -lc | ||
| 579 | - rm -f $(SHAREDLIB) $(SHAREDLIBM) | 750 | - rm -f $(SHAREDLIB) $(SHAREDLIBM) |
| 580 | - ln -s $@ $(SHAREDLIB) | 751 | - ln -s $@ $(SHAREDLIB) |
| 581 | - ln -s $@ $(SHAREDLIBM) | 752 | - ln -s $@ $(SHAREDLIBM) |
| @@ -586,46 +757,60 @@ diff -Naur zlib-1.2.3/Makefile.in zlib-1.2.3new/Makefile.in | |||
| 586 | -minigzip$(EXE): minigzip.o $(LIBS) | 757 | -minigzip$(EXE): minigzip.o $(LIBS) |
| 587 | - $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) | 758 | - $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) |
| 588 | - | 759 | - |
| 589 | -install: $(LIBS) | 760 | -examplesh$(EXE): example.o $(LIBS) |
| 590 | - -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi | 761 | - $(CC) $(CFLAGS) -o $@ example.o -L. $(SHAREDLIB) |
| 591 | - -@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi | 762 | - |
| 592 | - -@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi | 763 | -minigzipsh$(EXE): minigzip.o $(LIBS) |
| 593 | - -@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi | 764 | - $(CC) $(CFLAGS) -o $@ minigzip.o -L. $(SHAREDLIB) |
| 594 | - cp zlib.h zconf.h $(includedir) | 765 | - |
| 595 | - chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h | 766 | -install-libs: $(LIBS) |
| 596 | - cp $(LIBS) $(libdir) | 767 | - -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi |
| 597 | - cd $(libdir); chmod 755 $(LIBS) | 768 | - -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi |
| 598 | - -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 | 769 | - -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi |
| 599 | - cd $(libdir); if test -f $(SHAREDLIBV); then \ | 770 | - -@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi |
| 771 | - cp $(LIBS) $(DESTDIR)$(libdir) | ||
| 772 | - cd $(DESTDIR)$(libdir); chmod 755 $(LIBS) | ||
| 773 | - -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 | ||
| 774 | - cd $(DESTDIR)$(libdir); if test -f $(SHAREDLIBV); then \ | ||
| 600 | - rm -f $(SHAREDLIB) $(SHAREDLIBM); \ | 775 | - rm -f $(SHAREDLIB) $(SHAREDLIBM); \ |
| 601 | - ln -s $(SHAREDLIBV) $(SHAREDLIB); \ | 776 | - ln -s $(SHAREDLIBV) $(SHAREDLIB); \ |
| 602 | - ln -s $(SHAREDLIBV) $(SHAREDLIBM); \ | 777 | - ln -s $(SHAREDLIBV) $(SHAREDLIBM); \ |
| 603 | - (ldconfig || true) >/dev/null 2>&1; \ | 778 | - (ldconfig || true) >/dev/null 2>&1; \ |
| 604 | - fi | 779 | - fi |
| 605 | - cp zlib.3 $(man3dir) | 780 | - cp zlib.3 $(DESTDIR)$(man3dir) |
| 606 | - chmod 644 $(man3dir)/zlib.3 | 781 | - chmod 644 $(DESTDIR)$(man3dir)/zlib.3 |
| 782 | - cp zlib.pc $(DESTDIR)$(pkgconfigdir) | ||
| 783 | - chmod 644 $(DESTDIR)$(pkgconfigdir)/zlib.pc | ||
| 607 | -# The ranlib in install is needed on NeXTSTEP which checks file times | 784 | -# The ranlib in install is needed on NeXTSTEP which checks file times |
| 608 | -# ldconfig is for Linux | 785 | -# ldconfig is for Linux |
| 609 | - | 786 | - |
| 787 | -install: install-libs | ||
| 788 | - -@if [ ! -d $(DESTDIR)$(includedir) ]; then mkdir -p $(DESTDIR)$(includedir); fi | ||
| 789 | - cp zlib.h zconf.h zlibdefs.h $(DESTDIR)$(includedir) | ||
| 790 | - chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h $(DESTDIR)$(includedir)/zlibdefs.h | ||
| 791 | - | ||
| 610 | -uninstall: | 792 | -uninstall: |
| 611 | - cd $(includedir); \ | 793 | - cd $(DESTDIR)$(includedir); rm -f zlib.h zconf.h zlibdefs.h |
| 612 | - cd $(libdir); rm -f libz.a; \ | 794 | - cd $(DESTDIR)$(libdir); rm -f libz.a; \ |
| 613 | - if test -f $(SHAREDLIBV); then \ | 795 | - if test -f $(SHAREDLIBV); then \ |
| 614 | - rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \ | 796 | - rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \ |
| 615 | - fi | 797 | - fi |
| 616 | - cd $(man3dir); rm -f zlib.3 | 798 | - cd $(DESTDIR)$(man3dir); rm -f zlib.3 |
| 799 | - cd $(DESTDIR)$(pkgconfigdir); rm -f zlib.pc | ||
| 617 | - | 800 | - |
| 618 | -mostlyclean: clean | 801 | -mostlyclean: clean |
| 619 | -clean: | 802 | -clean: |
| 620 | - rm -f *.o *~ example$(EXE) minigzip$(EXE) \ | 803 | - rm -f *.o *.lo *~ \ |
| 804 | - example$(EXE) minigzip$(EXE) examplesh$(EXE) minigzipsh$(EXE) \ | ||
| 621 | - libz.* foo.gz so_locations \ | 805 | - libz.* foo.gz so_locations \ |
| 622 | - _match.s maketree contrib/infback9/*.o | 806 | - _match.s maketree contrib/infback9/*.o |
| 623 | - | 807 | - |
| 624 | -maintainer-clean: distclean | 808 | -maintainer-clean: distclean |
| 625 | -distclean: clean | 809 | -distclean: clean |
| 626 | - cp -p Makefile.in Makefile | 810 | - cp -p Makefile.in Makefile |
| 627 | - cp -p zconf.in.h zconf.h | 811 | - rm zlibdefs.h |
| 628 | - rm -f .DS_Store | 812 | - touch -r configure zlibdefs.h |
| 813 | - rm -f zlib.pc .DS_Store | ||
| 629 | - | 814 | - |
| 630 | -tags: | 815 | -tags: |
| 631 | - etags *.[ch] | 816 | - etags *.[ch] |
| @@ -635,17 +820,30 @@ diff -Naur zlib-1.2.3/Makefile.in zlib-1.2.3new/Makefile.in | |||
| 635 | - | 820 | - |
| 636 | -# DO NOT DELETE THIS LINE -- make depend depends on it. | 821 | -# DO NOT DELETE THIS LINE -- make depend depends on it. |
| 637 | - | 822 | - |
| 638 | -adler32.o: zlib.h zconf.h | 823 | -adler32.o: zlib.h zconf.h zlibdefs.h |
| 639 | -compress.o: zlib.h zconf.h | 824 | -compress.o: zlib.h zconf.h zlibdefs.h |
| 640 | -crc32.o: crc32.h zlib.h zconf.h | 825 | -crc32.o: crc32.h zlib.h zconf.h zlibdefs.h |
| 641 | -deflate.o: deflate.h zutil.h zlib.h zconf.h | 826 | -deflate.o: deflate.h zutil.h zlib.h zconf.h zlibdefs.h |
| 642 | -example.o: zlib.h zconf.h | 827 | -example.o: zlib.h zconf.h zlibdefs.h |
| 643 | -gzio.o: zutil.h zlib.h zconf.h | 828 | -gzio.o: zutil.h zlib.h zconf.h zlibdefs.h |
| 644 | -inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h | 829 | -inffast.o: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h inflate.h inffast.h |
| 645 | -inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h | 830 | -inflate.o: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h inflate.h inffast.h inffixed.h |
| 646 | -infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h | 831 | -infback.o: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h inflate.h inffast.h inffixed.h |
| 647 | -inftrees.o: zutil.h zlib.h zconf.h inftrees.h | 832 | -inftrees.o: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h |
| 648 | -minigzip.o: zlib.h zconf.h | 833 | -minigzip.o: zlib.h zconf.h zlibdefs.h |
| 649 | -trees.o: deflate.h zutil.h zlib.h zconf.h trees.h | 834 | -trees.o: deflate.h zutil.h zlib.h zconf.h zlibdefs.h trees.h |
| 650 | -uncompr.o: zlib.h zconf.h | 835 | -uncompr.o: zlib.h zconf.h zlibdefs.h |
| 651 | -zutil.o: zutil.h zlib.h zconf.h | 836 | -zutil.o: zutil.h zlib.h zconf.h zlibdefs.h |
| 837 | - | ||
| 838 | -adler32.lo: zlib.h zconf.h zlibdefs.h | ||
| 839 | -compress.lo: zlib.h zconf.h zlibdefs.h | ||
| 840 | -crc32.lo: crc32.h zlib.h zconf.h zlibdefs.h | ||
| 841 | -deflate.lo: deflate.h zutil.h zlib.h zconf.h zlibdefs.h | ||
| 842 | -gzio.lo: zutil.h zlib.h zconf.h zlibdefs.h | ||
| 843 | -inffast.lo: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h inflate.h inffast.h | ||
| 844 | -inflate.lo: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h inflate.h inffast.h inffixed.h | ||
| 845 | -infback.lo: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h inflate.h inffast.h inffixed.h | ||
| 846 | -inftrees.lo: zutil.h zlib.h zconf.h zlibdefs.h inftrees.h | ||
| 847 | -trees.lo: deflate.h zutil.h zlib.h zconf.h zlibdefs.h trees.h | ||
| 848 | -uncompr.lo: zlib.h zconf.h zlibdefs.h | ||
| 849 | -zutil.lo: zutil.h zlib.h zconf.h zlibdefs.h | ||
diff --git a/meta/packages/zlib/files/visibility.patch b/meta/packages/zlib/files/visibility.patch index a4e7ae907a..2dee8e0fe2 100644 --- a/meta/packages/zlib/files/visibility.patch +++ b/meta/packages/zlib/files/visibility.patch | |||
| @@ -3,9 +3,11 @@ | |||
| 3 | # Patch managed by http://www.holgerschurig.de/patcher.html | 3 | # Patch managed by http://www.holgerschurig.de/patcher.html |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | --- zlib-1.2.3-orig/adler32.c~visibility | 6 | Index: zlib-1.2.3/adler32.c |
| 7 | +++ zlib-1.2.3-orig/adler32.c | 7 | =================================================================== |
| 8 | @@ -54,7 +54,7 @@ | 8 | --- zlib-1.2.3.orig/adler32.c 2008-08-23 11:17:43.000000000 +0100 |
| 9 | +++ zlib-1.2.3/adler32.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 10 | @@ -63,7 +63,7 @@ | ||
| 9 | #endif | 11 | #endif |
| 10 | 12 | ||
| 11 | /* ========================================================================= */ | 13 | /* ========================================================================= */ |
| @@ -14,8 +16,10 @@ | |||
| 14 | uLong adler; | 16 | uLong adler; |
| 15 | const Bytef *buf; | 17 | const Bytef *buf; |
| 16 | uInt len; | 18 | uInt len; |
| 17 | --- zlib-1.2.3-orig/compress.c~visibility | 19 | Index: zlib-1.2.3/compress.c |
| 18 | +++ zlib-1.2.3-orig/compress.c | 20 | =================================================================== |
| 21 | --- zlib-1.2.3.orig/compress.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 22 | +++ zlib-1.2.3/compress.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 19 | @@ -19,7 +19,7 @@ | 23 | @@ -19,7 +19,7 @@ |
| 20 | memory, Z_BUF_ERROR if there was not enough room in the output buffer, | 24 | memory, Z_BUF_ERROR if there was not enough room in the output buffer, |
| 21 | Z_STREAM_ERROR if the level parameter is invalid. | 25 | Z_STREAM_ERROR if the level parameter is invalid. |
| @@ -42,10 +46,12 @@ | |||
| 42 | +ZEXPORT uLong compressBound (sourceLen) | 46 | +ZEXPORT uLong compressBound (sourceLen) |
| 43 | uLong sourceLen; | 47 | uLong sourceLen; |
| 44 | { | 48 | { |
| 45 | return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; | 49 | return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + |
| 46 | --- zlib-1.2.3-orig/crc32.c~visibility | 50 | Index: zlib-1.2.3/crc32.c |
| 47 | +++ zlib-1.2.3-orig/crc32.c | 51 | =================================================================== |
| 48 | @@ -202,7 +202,7 @@ | 52 | --- zlib-1.2.3.orig/crc32.c 2008-08-23 11:17:44.000000000 +0100 |
| 53 | +++ zlib-1.2.3/crc32.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 54 | @@ -208,7 +208,7 @@ | ||
| 49 | /* ========================================================================= | 55 | /* ========================================================================= |
| 50 | * This function can be used by asm versions of crc32() | 56 | * This function can be used by asm versions of crc32() |
| 51 | */ | 57 | */ |
| @@ -54,7 +60,7 @@ | |||
| 54 | { | 60 | { |
| 55 | #ifdef DYNAMIC_CRC_TABLE | 61 | #ifdef DYNAMIC_CRC_TABLE |
| 56 | if (crc_table_empty) | 62 | if (crc_table_empty) |
| 57 | @@ -216,7 +216,7 @@ | 63 | @@ -222,7 +222,7 @@ |
| 58 | #define DO8 DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1 | 64 | #define DO8 DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1 |
| 59 | 65 | ||
| 60 | /* ========================================================================= */ | 66 | /* ========================================================================= */ |
| @@ -63,8 +69,10 @@ | |||
| 63 | unsigned long crc; | 69 | unsigned long crc; |
| 64 | const unsigned char FAR *buf; | 70 | const unsigned char FAR *buf; |
| 65 | unsigned len; | 71 | unsigned len; |
| 66 | --- zlib-1.2.3-orig/deflate.c~visibility | 72 | Index: zlib-1.2.3/deflate.c |
| 67 | +++ zlib-1.2.3-orig/deflate.c | 73 | =================================================================== |
| 74 | --- zlib-1.2.3.orig/deflate.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 75 | +++ zlib-1.2.3/deflate.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 68 | @@ -201,7 +201,7 @@ | 76 | @@ -201,7 +201,7 @@ |
| 69 | zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); | 77 | zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); |
| 70 | 78 | ||
| @@ -120,15 +128,15 @@ | |||
| 120 | int level; | 128 | int level; |
| 121 | int strategy; | 129 | int strategy; |
| 122 | @@ -486,7 +486,7 @@ | 130 | @@ -486,7 +486,7 @@ |
| 123 | * But even the conservative upper bound of about 14% expansion does not | 131 | * upper bound of about 14% expansion does not seem onerous for output buffer |
| 124 | * seem onerous for output buffer allocation. | 132 | * allocation. |
| 125 | */ | 133 | */ |
| 126 | -uLong ZEXPORT deflateBound(strm, sourceLen) | 134 | -uLong ZEXPORT deflateBound(strm, sourceLen) |
| 127 | +ZEXPORT uLong deflateBound(strm, sourceLen) | 135 | +ZEXPORT uLong deflateBound(strm, sourceLen) |
| 128 | z_streamp strm; | 136 | z_streamp strm; |
| 129 | uLong sourceLen; | 137 | uLong sourceLen; |
| 130 | { | 138 | { |
| 131 | @@ -549,7 +549,7 @@ | 139 | @@ -581,7 +581,7 @@ |
| 132 | } | 140 | } |
| 133 | 141 | ||
| 134 | /* ========================================================================= */ | 142 | /* ========================================================================= */ |
| @@ -137,7 +145,7 @@ | |||
| 137 | z_streamp strm; | 145 | z_streamp strm; |
| 138 | int flush; | 146 | int flush; |
| 139 | { | 147 | { |
| 140 | @@ -856,7 +856,7 @@ | 148 | @@ -888,7 +888,7 @@ |
| 141 | } | 149 | } |
| 142 | 150 | ||
| 143 | /* ========================================================================= */ | 151 | /* ========================================================================= */ |
| @@ -146,7 +154,7 @@ | |||
| 146 | z_streamp strm; | 154 | z_streamp strm; |
| 147 | { | 155 | { |
| 148 | int status; | 156 | int status; |
| 149 | @@ -891,7 +891,7 @@ | 157 | @@ -923,7 +923,7 @@ |
| 150 | * To simplify the source, this is not supported for 16-bit MSDOS (which | 158 | * To simplify the source, this is not supported for 16-bit MSDOS (which |
| 151 | * doesn't have enough memory anyway to duplicate compression states). | 159 | * doesn't have enough memory anyway to duplicate compression states). |
| 152 | */ | 160 | */ |
| @@ -155,9 +163,11 @@ | |||
| 155 | z_streamp dest; | 163 | z_streamp dest; |
| 156 | z_streamp source; | 164 | z_streamp source; |
| 157 | { | 165 | { |
| 158 | --- zlib-1.2.3-orig/gzio.c~visibility | 166 | Index: zlib-1.2.3/gzio.c |
| 159 | +++ zlib-1.2.3-orig/gzio.c | 167 | =================================================================== |
| 160 | @@ -205,7 +205,7 @@ | 168 | --- zlib-1.2.3.orig/gzio.c 2008-08-23 11:17:44.000000000 +0100 |
| 169 | +++ zlib-1.2.3/gzio.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 170 | @@ -233,7 +233,7 @@ | ||
| 161 | /* =========================================================================== | 171 | /* =========================================================================== |
| 162 | Opens a gzip (.gz) file for reading or writing. | 172 | Opens a gzip (.gz) file for reading or writing. |
| 163 | */ | 173 | */ |
| @@ -166,7 +176,7 @@ | |||
| 166 | const char *path; | 176 | const char *path; |
| 167 | const char *mode; | 177 | const char *mode; |
| 168 | { | 178 | { |
| 169 | @@ -216,7 +216,7 @@ | 179 | @@ -254,7 +254,7 @@ |
| 170 | Associate a gzFile with the file descriptor fd. fd is not dup'ed here | 180 | Associate a gzFile with the file descriptor fd. fd is not dup'ed here |
| 171 | to mimic the behavio(u)r of fdopen. | 181 | to mimic the behavio(u)r of fdopen. |
| 172 | */ | 182 | */ |
| @@ -175,7 +185,7 @@ | |||
| 175 | int fd; | 185 | int fd; |
| 176 | const char *mode; | 186 | const char *mode; |
| 177 | { | 187 | { |
| 178 | @@ -231,7 +231,7 @@ | 188 | @@ -269,7 +269,7 @@ |
| 179 | /* =========================================================================== | 189 | /* =========================================================================== |
| 180 | * Update the compression level and strategy | 190 | * Update the compression level and strategy |
| 181 | */ | 191 | */ |
| @@ -184,7 +194,7 @@ | |||
| 184 | gzFile file; | 194 | gzFile file; |
| 185 | int level; | 195 | int level; |
| 186 | int strategy; | 196 | int strategy; |
| 187 | @@ -391,7 +391,7 @@ | 197 | @@ -430,7 +430,7 @@ |
| 188 | Reads the given number of uncompressed bytes from the compressed file. | 198 | Reads the given number of uncompressed bytes from the compressed file. |
| 189 | gzread returns the number of bytes actually read (0 for end of file). | 199 | gzread returns the number of bytes actually read (0 for end of file). |
| 190 | */ | 200 | */ |
| @@ -193,7 +203,7 @@ | |||
| 193 | gzFile file; | 203 | gzFile file; |
| 194 | voidp buf; | 204 | voidp buf; |
| 195 | unsigned len; | 205 | unsigned len; |
| 196 | @@ -500,7 +500,7 @@ | 206 | @@ -539,7 +539,7 @@ |
| 197 | Reads one byte from the compressed file. gzgetc returns this byte | 207 | Reads one byte from the compressed file. gzgetc returns this byte |
| 198 | or -1 in case of end of file or error. | 208 | or -1 in case of end of file or error. |
| 199 | */ | 209 | */ |
| @@ -202,7 +212,7 @@ | |||
| 202 | gzFile file; | 212 | gzFile file; |
| 203 | { | 213 | { |
| 204 | unsigned char c; | 214 | unsigned char c; |
| 205 | @@ -512,7 +512,7 @@ | 215 | @@ -551,7 +551,7 @@ |
| 206 | /* =========================================================================== | 216 | /* =========================================================================== |
| 207 | Push one byte back onto the stream. | 217 | Push one byte back onto the stream. |
| 208 | */ | 218 | */ |
| @@ -211,7 +221,7 @@ | |||
| 211 | int c; | 221 | int c; |
| 212 | gzFile file; | 222 | gzFile file; |
| 213 | { | 223 | { |
| 214 | @@ -537,7 +537,7 @@ | 224 | @@ -576,7 +576,7 @@ |
| 215 | 225 | ||
| 216 | The current implementation is not optimized at all. | 226 | The current implementation is not optimized at all. |
| 217 | */ | 227 | */ |
| @@ -220,7 +230,7 @@ | |||
| 220 | gzFile file; | 230 | gzFile file; |
| 221 | char *buf; | 231 | char *buf; |
| 222 | int len; | 232 | int len; |
| 223 | @@ -556,7 +556,7 @@ | 233 | @@ -595,7 +595,7 @@ |
| 224 | Writes the given number of uncompressed bytes into the compressed file. | 234 | Writes the given number of uncompressed bytes into the compressed file. |
| 225 | gzwrite returns the number of bytes actually written (0 in case of error). | 235 | gzwrite returns the number of bytes actually written (0 in case of error). |
| 226 | */ | 236 | */ |
| @@ -229,7 +239,7 @@ | |||
| 229 | gzFile file; | 239 | gzFile file; |
| 230 | voidpc buf; | 240 | voidpc buf; |
| 231 | unsigned len; | 241 | unsigned len; |
| 232 | @@ -600,7 +600,7 @@ | 242 | @@ -639,7 +639,7 @@ |
| 233 | #ifdef STDC | 243 | #ifdef STDC |
| 234 | #include <stdarg.h> | 244 | #include <stdarg.h> |
| 235 | 245 | ||
| @@ -238,7 +248,7 @@ | |||
| 238 | { | 248 | { |
| 239 | char buf[Z_PRINTF_BUFSIZE]; | 249 | char buf[Z_PRINTF_BUFSIZE]; |
| 240 | va_list va; | 250 | va_list va; |
| 241 | @@ -634,7 +634,7 @@ | 251 | @@ -673,7 +673,7 @@ |
| 242 | } | 252 | } |
| 243 | #else /* not ANSI C */ | 253 | #else /* not ANSI C */ |
| 244 | 254 | ||
| @@ -247,7 +257,7 @@ | |||
| 247 | a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) | 257 | a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) |
| 248 | gzFile file; | 258 | gzFile file; |
| 249 | const char *format; | 259 | const char *format; |
| 250 | @@ -675,7 +675,7 @@ | 260 | @@ -714,7 +714,7 @@ |
| 251 | Writes c, converted to an unsigned char, into the compressed file. | 261 | Writes c, converted to an unsigned char, into the compressed file. |
| 252 | gzputc returns the value that was written, or -1 in case of error. | 262 | gzputc returns the value that was written, or -1 in case of error. |
| 253 | */ | 263 | */ |
| @@ -256,7 +266,7 @@ | |||
| 256 | gzFile file; | 266 | gzFile file; |
| 257 | int c; | 267 | int c; |
| 258 | { | 268 | { |
| 259 | @@ -690,7 +690,7 @@ | 269 | @@ -729,7 +729,7 @@ |
| 260 | the terminating null character. | 270 | the terminating null character. |
| 261 | gzputs returns the number of characters written, or -1 in case of error. | 271 | gzputs returns the number of characters written, or -1 in case of error. |
| 262 | */ | 272 | */ |
| @@ -265,7 +275,7 @@ | |||
| 265 | gzFile file; | 275 | gzFile file; |
| 266 | const char *s; | 276 | const char *s; |
| 267 | { | 277 | { |
| 268 | @@ -743,7 +743,7 @@ | 278 | @@ -782,7 +782,7 @@ |
| 269 | return s->z_err == Z_STREAM_END ? Z_OK : s->z_err; | 279 | return s->z_err == Z_STREAM_END ? Z_OK : s->z_err; |
| 270 | } | 280 | } |
| 271 | 281 | ||
| @@ -274,16 +284,16 @@ | |||
| 274 | gzFile file; | 284 | gzFile file; |
| 275 | int flush; | 285 | int flush; |
| 276 | { | 286 | { |
| 277 | @@ -764,7 +764,7 @@ | 287 | @@ -906,7 +906,7 @@ |
| 278 | SEEK_END is not implemented, returns error. | 288 | /* =========================================================================== |
| 279 | In this version of the library, gzseek can be extremely slow. | 289 | Define external functions gzseek() and gzseek64() using local gz_seek(). |
| 280 | */ | 290 | */ |
| 281 | -z_off_t ZEXPORT gzseek (file, offset, whence) | 291 | -z_off_t ZEXPORT gzseek (file, offset, whence) |
| 282 | +ZEXPORT z_off_t gzseek (file, offset, whence) | 292 | +ZEXPORT z_off_t gzseek (file, offset, whence) |
| 283 | gzFile file; | 293 | gzFile file; |
| 284 | z_off_t offset; | 294 | z_off_t offset; |
| 285 | int whence; | 295 | int whence; |
| 286 | @@ -854,7 +854,7 @@ | 296 | @@ -935,7 +935,7 @@ |
| 287 | /* =========================================================================== | 297 | /* =========================================================================== |
| 288 | Rewinds input file. | 298 | Rewinds input file. |
| 289 | */ | 299 | */ |
| @@ -292,7 +302,7 @@ | |||
| 292 | gzFile file; | 302 | gzFile file; |
| 293 | { | 303 | { |
| 294 | gz_stream *s = (gz_stream*)file; | 304 | gz_stream *s = (gz_stream*)file; |
| 295 | @@ -878,7 +878,7 @@ | 305 | @@ -959,7 +959,7 @@ |
| 296 | given compressed file. This position represents a number of bytes in the | 306 | given compressed file. This position represents a number of bytes in the |
| 297 | uncompressed data stream. | 307 | uncompressed data stream. |
| 298 | */ | 308 | */ |
| @@ -301,7 +311,7 @@ | |||
| 301 | gzFile file; | 311 | gzFile file; |
| 302 | { | 312 | { |
| 303 | return gzseek(file, 0L, SEEK_CUR); | 313 | return gzseek(file, 0L, SEEK_CUR); |
| 304 | @@ -888,7 +888,7 @@ | 314 | @@ -982,7 +982,7 @@ |
| 305 | Returns 1 when EOF has previously been detected reading the given | 315 | Returns 1 when EOF has previously been detected reading the given |
| 306 | input stream, otherwise zero. | 316 | input stream, otherwise zero. |
| 307 | */ | 317 | */ |
| @@ -310,7 +320,7 @@ | |||
| 310 | gzFile file; | 320 | gzFile file; |
| 311 | { | 321 | { |
| 312 | gz_stream *s = (gz_stream*)file; | 322 | gz_stream *s = (gz_stream*)file; |
| 313 | @@ -950,7 +950,7 @@ | 323 | @@ -1044,7 +1044,7 @@ |
| 314 | Flushes all pending output if necessary, closes the compressed file | 324 | Flushes all pending output if necessary, closes the compressed file |
| 315 | and deallocates all the (de)compression state. | 325 | and deallocates all the (de)compression state. |
| 316 | */ | 326 | */ |
| @@ -319,7 +329,7 @@ | |||
| 319 | gzFile file; | 329 | gzFile file; |
| 320 | { | 330 | { |
| 321 | gz_stream *s = (gz_stream*)file; | 331 | gz_stream *s = (gz_stream*)file; |
| 322 | @@ -984,7 +984,7 @@ | 332 | @@ -1078,7 +1078,7 @@ |
| 323 | errnum is set to Z_ERRNO and the application may consult errno | 333 | errnum is set to Z_ERRNO and the application may consult errno |
| 324 | to get the exact error code. | 334 | to get the exact error code. |
| 325 | */ | 335 | */ |
| @@ -328,7 +338,7 @@ | |||
| 328 | gzFile file; | 338 | gzFile file; |
| 329 | int *errnum; | 339 | int *errnum; |
| 330 | { | 340 | { |
| 331 | @@ -1014,7 +1014,7 @@ | 341 | @@ -1108,7 +1108,7 @@ |
| 332 | /* =========================================================================== | 342 | /* =========================================================================== |
| 333 | Clear the error and end-of-file flags, and do the same for the real file. | 343 | Clear the error and end-of-file flags, and do the same for the real file. |
| 334 | */ | 344 | */ |
| @@ -337,8 +347,10 @@ | |||
| 337 | gzFile file; | 347 | gzFile file; |
| 338 | { | 348 | { |
| 339 | gz_stream *s = (gz_stream*)file; | 349 | gz_stream *s = (gz_stream*)file; |
| 340 | --- zlib-1.2.3-orig/infback.c~visibility | 350 | Index: zlib-1.2.3/infback.c |
| 341 | +++ zlib-1.2.3-orig/infback.c | 351 | =================================================================== |
| 352 | --- zlib-1.2.3.orig/infback.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 353 | +++ zlib-1.2.3/infback.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 342 | @@ -25,7 +25,7 @@ | 354 | @@ -25,7 +25,7 @@ |
| 343 | windowBits is in the range 8..15, and window is a user-supplied | 355 | windowBits is in the range 8..15, and window is a user-supplied |
| 344 | window and output buffer that is 2**windowBits bytes. | 356 | window and output buffer that is 2**windowBits bytes. |
| @@ -366,8 +378,10 @@ | |||
| 366 | z_streamp strm; | 378 | z_streamp strm; |
| 367 | { | 379 | { |
| 368 | if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) | 380 | if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) |
| 369 | --- zlib-1.2.3-orig/inflate.c~visibility | 381 | Index: zlib-1.2.3/inflate.c |
| 370 | +++ zlib-1.2.3-orig/inflate.c | 382 | =================================================================== |
| 383 | --- zlib-1.2.3.orig/inflate.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 384 | +++ zlib-1.2.3/inflate.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 371 | @@ -100,7 +100,7 @@ | 385 | @@ -100,7 +100,7 @@ |
| 372 | local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf, | 386 | local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf, |
| 373 | unsigned len)); | 387 | unsigned len)); |
| @@ -377,7 +391,7 @@ | |||
| 377 | z_streamp strm; | 391 | z_streamp strm; |
| 378 | { | 392 | { |
| 379 | struct inflate_state FAR *state; | 393 | struct inflate_state FAR *state; |
| 380 | @@ -141,7 +141,7 @@ | 394 | @@ -142,7 +142,7 @@ |
| 381 | return Z_OK; | 395 | return Z_OK; |
| 382 | } | 396 | } |
| 383 | 397 | ||
| @@ -386,7 +400,7 @@ | |||
| 386 | z_streamp strm; | 400 | z_streamp strm; |
| 387 | int windowBits; | 401 | int windowBits; |
| 388 | const char *version; | 402 | const char *version; |
| 389 | @@ -184,7 +184,7 @@ | 403 | @@ -185,7 +185,7 @@ |
| 390 | return inflateReset(strm); | 404 | return inflateReset(strm); |
| 391 | } | 405 | } |
| 392 | 406 | ||
| @@ -395,7 +409,7 @@ | |||
| 395 | z_streamp strm; | 409 | z_streamp strm; |
| 396 | const char *version; | 410 | const char *version; |
| 397 | int stream_size; | 411 | int stream_size; |
| 398 | @@ -551,7 +551,7 @@ | 412 | @@ -552,7 +552,7 @@ |
| 399 | will return Z_BUF_ERROR if it has not reached the end of the stream. | 413 | will return Z_BUF_ERROR if it has not reached the end of the stream. |
| 400 | */ | 414 | */ |
| 401 | 415 | ||
| @@ -404,7 +418,7 @@ | |||
| 404 | z_streamp strm; | 418 | z_streamp strm; |
| 405 | int flush; | 419 | int flush; |
| 406 | { | 420 | { |
| 407 | @@ -1152,7 +1152,7 @@ | 421 | @@ -1168,7 +1168,7 @@ |
| 408 | return ret; | 422 | return ret; |
| 409 | } | 423 | } |
| 410 | 424 | ||
| @@ -413,7 +427,7 @@ | |||
| 413 | z_streamp strm; | 427 | z_streamp strm; |
| 414 | { | 428 | { |
| 415 | struct inflate_state FAR *state; | 429 | struct inflate_state FAR *state; |
| 416 | @@ -1166,7 +1166,7 @@ | 430 | @@ -1182,7 +1182,7 @@ |
| 417 | return Z_OK; | 431 | return Z_OK; |
| 418 | } | 432 | } |
| 419 | 433 | ||
| @@ -422,7 +436,7 @@ | |||
| 422 | z_streamp strm; | 436 | z_streamp strm; |
| 423 | const Bytef *dictionary; | 437 | const Bytef *dictionary; |
| 424 | uInt dictLength; | 438 | uInt dictLength; |
| 425 | @@ -1259,7 +1259,7 @@ | 439 | @@ -1275,7 +1275,7 @@ |
| 426 | return next; | 440 | return next; |
| 427 | } | 441 | } |
| 428 | 442 | ||
| @@ -431,7 +445,7 @@ | |||
| 431 | z_streamp strm; | 445 | z_streamp strm; |
| 432 | { | 446 | { |
| 433 | unsigned len; /* number of bytes to look at or looked at */ | 447 | unsigned len; /* number of bytes to look at or looked at */ |
| 434 | @@ -1310,7 +1310,7 @@ | 448 | @@ -1326,7 +1326,7 @@ |
| 435 | block. When decompressing, PPP checks that at the end of input packet, | 449 | block. When decompressing, PPP checks that at the end of input packet, |
| 436 | inflate is waiting for these length bytes. | 450 | inflate is waiting for these length bytes. |
| 437 | */ | 451 | */ |
| @@ -440,7 +454,7 @@ | |||
| 440 | z_streamp strm; | 454 | z_streamp strm; |
| 441 | { | 455 | { |
| 442 | struct inflate_state FAR *state; | 456 | struct inflate_state FAR *state; |
| 443 | @@ -1320,7 +1320,7 @@ | 457 | @@ -1336,7 +1336,7 @@ |
| 444 | return state->mode == STORED && state->bits == 0; | 458 | return state->mode == STORED && state->bits == 0; |
| 445 | } | 459 | } |
| 446 | 460 | ||
| @@ -449,8 +463,10 @@ | |||
| 449 | z_streamp dest; | 463 | z_streamp dest; |
| 450 | z_streamp source; | 464 | z_streamp source; |
| 451 | { | 465 | { |
| 452 | --- zlib-1.2.3-orig/uncompr.c~visibility | 466 | Index: zlib-1.2.3/uncompr.c |
| 453 | +++ zlib-1.2.3-orig/uncompr.c | 467 | =================================================================== |
| 468 | --- zlib-1.2.3.orig/uncompr.c 2003-07-07 06:36:56.000000000 +0100 | ||
| 469 | +++ zlib-1.2.3/uncompr.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 454 | @@ -23,7 +23,7 @@ | 470 | @@ -23,7 +23,7 @@ |
| 455 | enough memory, Z_BUF_ERROR if there was not enough room in the output | 471 | enough memory, Z_BUF_ERROR if there was not enough room in the output |
| 456 | buffer, or Z_DATA_ERROR if the input data was corrupted. | 472 | buffer, or Z_DATA_ERROR if the input data was corrupted. |
| @@ -460,88 +476,11 @@ | |||
| 460 | Bytef *dest; | 476 | Bytef *dest; |
| 461 | uLongf *destLen; | 477 | uLongf *destLen; |
| 462 | const Bytef *source; | 478 | const Bytef *source; |
| 463 | --- zlib-1.2.3-orig/zconf.in.h~visibility | 479 | Index: zlib-1.2.3/zlib.h |
| 464 | +++ zlib-1.2.3-orig/zconf.in.h | 480 | =================================================================== |
| 465 | @@ -204,11 +204,9 @@ | 481 | --- zlib-1.2.3.orig/zlib.h 2008-08-23 11:17:44.000000000 +0100 |
| 466 | */ | 482 | +++ zlib-1.2.3/zlib.h 2008-08-23 11:23:26.000000000 +0100 |
| 467 | # ifdef ZLIB_DLL | 483 | @@ -212,7 +212,7 @@ |
| 468 | # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) | ||
| 469 | -# ifdef ZLIB_INTERNAL | ||
| 470 | -# define ZEXTERN extern __declspec(dllexport) | ||
| 471 | -# else | ||
| 472 | -# define ZEXTERN extern __declspec(dllimport) | ||
| 473 | -# endif | ||
| 474 | +# define ZDLLLOCAL __declspec(dllimport) | ||
| 475 | +# define ZDLLPUBLIC __declspec(dllexport) | ||
| 476 | +# define ZEXTERN extern | ||
| 477 | # endif | ||
| 478 | # endif /* ZLIB_DLL */ | ||
| 479 | /* If building or using zlib with the WINAPI/WINAPIV calling convention, | ||
| 480 | @@ -229,30 +227,45 @@ | ||
| 481 | # define ZEXPORTVA FAR CDECL | ||
| 482 | # endif | ||
| 483 | # endif | ||
| 484 | -#endif | ||
| 485 | - | ||
| 486 | -#if defined (__BEOS__) | ||
| 487 | +#elif defined (__BEOS__) | ||
| 488 | # ifdef ZLIB_DLL | ||
| 489 | -# ifdef ZLIB_INTERNAL | ||
| 490 | -# define ZEXPORT __declspec(dllexport) | ||
| 491 | -# define ZEXPORTVA __declspec(dllexport) | ||
| 492 | -# else | ||
| 493 | -# define ZEXPORT __declspec(dllimport) | ||
| 494 | -# define ZEXPORTVA __declspec(dllimport) | ||
| 495 | -# endif | ||
| 496 | +# define ZDLLIMPORT __declspec(dllimport) | ||
| 497 | +# define ZDLLPUBLIC __declspec(dllexport) | ||
| 498 | +# define ZDLLLOCAL | ||
| 499 | +# endif | ||
| 500 | +#else | ||
| 501 | +# define ZDLLIMPORT | ||
| 502 | +# ifdef GCC_HASCLASSVISIBILITY | ||
| 503 | +# define ZDLLLOCAL __attribute__ ((visibility("hidden"))) | ||
| 504 | +# define ZDLLPUBLIC __attribute__ ((visibility("default"))) | ||
| 505 | +# else | ||
| 506 | +# define ZDLLLOCAL | ||
| 507 | +# define ZDLLPUBLIC | ||
| 508 | # endif | ||
| 509 | #endif | ||
| 510 | |||
| 511 | #ifndef ZEXTERN | ||
| 512 | # define ZEXTERN extern | ||
| 513 | #endif | ||
| 514 | -#ifndef ZEXPORT | ||
| 515 | -# define ZEXPORT | ||
| 516 | -#endif | ||
| 517 | -#ifndef ZEXPORTVA | ||
| 518 | -# define ZEXPORTVA | ||
| 519 | +#ifdef ZLIB_INTERNAL | ||
| 520 | +# ifndef ZLIB_DLL | ||
| 521 | +# define ZEXPORT | ||
| 522 | +# define ZEXPORTVA | ||
| 523 | +# endif | ||
| 524 | +# ifndef ZEXPORT | ||
| 525 | +# define ZEXPORT ZDLLPUBLIC | ||
| 526 | +# endif | ||
| 527 | +# ifndef ZEXPORTVA | ||
| 528 | +# define ZEXPORTVA ZDLLPUBLIC | ||
| 529 | +# endif | ||
| 530 | +#else | ||
| 531 | +# ifndef ZEXPORT | ||
| 532 | +# define ZEXPORT ZDLLIMPORT | ||
| 533 | +# endif | ||
| 534 | +# ifndef ZEXPORTVA | ||
| 535 | +# define ZEXPORTVA ZDLLIMPORT | ||
| 536 | +# endif | ||
| 537 | #endif | ||
| 538 | - | ||
| 539 | #ifndef FAR | ||
| 540 | # define FAR | ||
| 541 | #endif | ||
| 542 | --- zlib-1.2.3-orig/zlib.h~visibility | ||
| 543 | +++ zlib-1.2.3-orig/zlib.h | ||
| 544 | @@ -209,7 +209,7 @@ | ||
| 545 | 484 | ||
| 546 | /* basic functions */ | 485 | /* basic functions */ |
| 547 | 486 | ||
| @@ -550,7 +489,7 @@ | |||
| 550 | /* The application can compare zlibVersion and ZLIB_VERSION for consistency. | 489 | /* The application can compare zlibVersion and ZLIB_VERSION for consistency. |
| 551 | If the first character differs, the library code actually used is | 490 | If the first character differs, the library code actually used is |
| 552 | not compatible with the zlib.h header file used by the application. | 491 | not compatible with the zlib.h header file used by the application. |
| 553 | @@ -217,7 +217,7 @@ | 492 | @@ -220,7 +220,7 @@ |
| 554 | */ | 493 | */ |
| 555 | 494 | ||
| 556 | /* | 495 | /* |
| @@ -559,7 +498,7 @@ | |||
| 559 | 498 | ||
| 560 | Initializes the internal stream state for compression. The fields | 499 | Initializes the internal stream state for compression. The fields |
| 561 | zalloc, zfree and opaque must be initialized before by the caller. | 500 | zalloc, zfree and opaque must be initialized before by the caller. |
| 562 | @@ -239,7 +239,7 @@ | 501 | @@ -242,7 +242,7 @@ |
| 563 | */ | 502 | */ |
| 564 | 503 | ||
| 565 | 504 | ||
| @@ -568,7 +507,7 @@ | |||
| 568 | /* | 507 | /* |
| 569 | deflate compresses as much data as possible, and stops when the input | 508 | deflate compresses as much data as possible, and stops when the input |
| 570 | buffer becomes empty or the output buffer becomes full. It may introduce some | 509 | buffer becomes empty or the output buffer becomes full. It may introduce some |
| 571 | @@ -325,7 +325,7 @@ | 510 | @@ -328,7 +328,7 @@ |
| 572 | */ | 511 | */ |
| 573 | 512 | ||
| 574 | 513 | ||
| @@ -577,7 +516,7 @@ | |||
| 577 | /* | 516 | /* |
| 578 | All dynamically allocated data structures for this stream are freed. | 517 | All dynamically allocated data structures for this stream are freed. |
| 579 | This function discards any unprocessed input and does not flush any | 518 | This function discards any unprocessed input and does not flush any |
| 580 | @@ -340,7 +340,7 @@ | 519 | @@ -343,7 +343,7 @@ |
| 581 | 520 | ||
| 582 | 521 | ||
| 583 | /* | 522 | /* |
| @@ -586,7 +525,7 @@ | |||
| 586 | 525 | ||
| 587 | Initializes the internal stream state for decompression. The fields | 526 | Initializes the internal stream state for decompression. The fields |
| 588 | next_in, avail_in, zalloc, zfree and opaque must be initialized before by | 527 | next_in, avail_in, zalloc, zfree and opaque must be initialized before by |
| 589 | @@ -360,7 +360,7 @@ | 528 | @@ -367,7 +367,7 @@ |
| 590 | */ | 529 | */ |
| 591 | 530 | ||
| 592 | 531 | ||
| @@ -595,7 +534,7 @@ | |||
| 595 | /* | 534 | /* |
| 596 | inflate decompresses as much data as possible, and stops when the input | 535 | inflate decompresses as much data as possible, and stops when the input |
| 597 | buffer becomes empty or the output buffer becomes full. It may introduce | 536 | buffer becomes empty or the output buffer becomes full. It may introduce |
| 598 | @@ -459,7 +459,7 @@ | 537 | @@ -466,7 +466,7 @@ |
| 599 | */ | 538 | */ |
| 600 | 539 | ||
| 601 | 540 | ||
| @@ -604,7 +543,7 @@ | |||
| 604 | /* | 543 | /* |
| 605 | All dynamically allocated data structures for this stream are freed. | 544 | All dynamically allocated data structures for this stream are freed. |
| 606 | This function discards any unprocessed input and does not flush any | 545 | This function discards any unprocessed input and does not flush any |
| 607 | @@ -477,7 +477,7 @@ | 546 | @@ -484,7 +484,7 @@ |
| 608 | */ | 547 | */ |
| 609 | 548 | ||
| 610 | /* | 549 | /* |
| @@ -613,7 +552,7 @@ | |||
| 613 | int level, | 552 | int level, |
| 614 | int method, | 553 | int method, |
| 615 | int windowBits, | 554 | int windowBits, |
| 616 | @@ -535,7 +535,7 @@ | 555 | @@ -542,7 +542,7 @@ |
| 617 | not perform any compression: this will be done by deflate(). | 556 | not perform any compression: this will be done by deflate(). |
| 618 | */ | 557 | */ |
| 619 | 558 | ||
| @@ -622,7 +561,7 @@ | |||
| 622 | const Bytef *dictionary, | 561 | const Bytef *dictionary, |
| 623 | uInt dictLength)); | 562 | uInt dictLength)); |
| 624 | /* | 563 | /* |
| 625 | @@ -574,7 +574,7 @@ | 564 | @@ -581,7 +581,7 @@ |
| 626 | perform any compression: this will be done by deflate(). | 565 | perform any compression: this will be done by deflate(). |
| 627 | */ | 566 | */ |
| 628 | 567 | ||
| @@ -631,7 +570,7 @@ | |||
| 631 | z_streamp source)); | 570 | z_streamp source)); |
| 632 | /* | 571 | /* |
| 633 | Sets the destination stream as a complete copy of the source stream. | 572 | Sets the destination stream as a complete copy of the source stream. |
| 634 | @@ -592,7 +592,7 @@ | 573 | @@ -599,7 +599,7 @@ |
| 635 | destination. | 574 | destination. |
| 636 | */ | 575 | */ |
| 637 | 576 | ||
| @@ -640,7 +579,7 @@ | |||
| 640 | /* | 579 | /* |
| 641 | This function is equivalent to deflateEnd followed by deflateInit, | 580 | This function is equivalent to deflateEnd followed by deflateInit, |
| 642 | but does not free and reallocate all the internal compression state. | 581 | but does not free and reallocate all the internal compression state. |
| 643 | @@ -603,7 +603,7 @@ | 582 | @@ -610,7 +610,7 @@ |
| 644 | stream state was inconsistent (such as zalloc or state being NULL). | 583 | stream state was inconsistent (such as zalloc or state being NULL). |
| 645 | */ | 584 | */ |
| 646 | 585 | ||
| @@ -649,7 +588,7 @@ | |||
| 649 | int level, | 588 | int level, |
| 650 | int strategy)); | 589 | int strategy)); |
| 651 | /* | 590 | /* |
| 652 | @@ -641,7 +641,7 @@ | 591 | @@ -648,7 +648,7 @@ |
| 653 | returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream. | 592 | returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream. |
| 654 | */ | 593 | */ |
| 655 | 594 | ||
| @@ -658,8 +597,8 @@ | |||
| 658 | uLong sourceLen)); | 597 | uLong sourceLen)); |
| 659 | /* | 598 | /* |
| 660 | deflateBound() returns an upper bound on the compressed size after | 599 | deflateBound() returns an upper bound on the compressed size after |
| 661 | @@ -650,7 +650,7 @@ | 600 | @@ -658,7 +658,7 @@ |
| 662 | for deflation in a single pass, and so would be called before deflate(). | 601 | called before deflate(). |
| 663 | */ | 602 | */ |
| 664 | 603 | ||
| 665 | -ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm, | 604 | -ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm, |
| @@ -667,7 +606,7 @@ | |||
| 667 | int bits, | 606 | int bits, |
| 668 | int value)); | 607 | int value)); |
| 669 | /* | 608 | /* |
| 670 | @@ -691,7 +691,7 @@ | 609 | @@ -699,7 +699,7 @@ |
| 671 | */ | 610 | */ |
| 672 | 611 | ||
| 673 | /* | 612 | /* |
| @@ -676,8 +615,8 @@ | |||
| 676 | int windowBits)); | 615 | int windowBits)); |
| 677 | 616 | ||
| 678 | This is another version of inflateInit with an extra parameter. The | 617 | This is another version of inflateInit with an extra parameter. The |
| 679 | @@ -733,7 +733,7 @@ | 618 | @@ -745,7 +745,7 @@ |
| 680 | and avail_out are unchanged.) | 619 | that is deferred until inflate() is called. |
| 681 | */ | 620 | */ |
| 682 | 621 | ||
| 683 | -ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | 622 | -ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, |
| @@ -685,7 +624,7 @@ | |||
| 685 | const Bytef *dictionary, | 624 | const Bytef *dictionary, |
| 686 | uInt dictLength)); | 625 | uInt dictLength)); |
| 687 | /* | 626 | /* |
| 688 | @@ -755,7 +755,7 @@ | 627 | @@ -767,7 +767,7 @@ |
| 689 | inflate(). | 628 | inflate(). |
| 690 | */ | 629 | */ |
| 691 | 630 | ||
| @@ -694,7 +633,7 @@ | |||
| 694 | /* | 633 | /* |
| 695 | Skips invalid compressed data until a full flush point (see above the | 634 | Skips invalid compressed data until a full flush point (see above the |
| 696 | description of deflate with Z_FULL_FLUSH) can be found, or until all | 635 | description of deflate with Z_FULL_FLUSH) can be found, or until all |
| 697 | @@ -770,7 +770,7 @@ | 636 | @@ -782,7 +782,7 @@ |
| 698 | until success or end of the input data. | 637 | until success or end of the input data. |
| 699 | */ | 638 | */ |
| 700 | 639 | ||
| @@ -703,7 +642,7 @@ | |||
| 703 | z_streamp source)); | 642 | z_streamp source)); |
| 704 | /* | 643 | /* |
| 705 | Sets the destination stream as a complete copy of the source stream. | 644 | Sets the destination stream as a complete copy of the source stream. |
| 706 | @@ -786,7 +786,7 @@ | 645 | @@ -798,7 +798,7 @@ |
| 707 | destination. | 646 | destination. |
| 708 | */ | 647 | */ |
| 709 | 648 | ||
| @@ -712,7 +651,7 @@ | |||
| 712 | /* | 651 | /* |
| 713 | This function is equivalent to inflateEnd followed by inflateInit, | 652 | This function is equivalent to inflateEnd followed by inflateInit, |
| 714 | but does not free and reallocate all the internal decompression state. | 653 | but does not free and reallocate all the internal decompression state. |
| 715 | @@ -853,7 +853,7 @@ | 654 | @@ -865,7 +865,7 @@ |
| 716 | */ | 655 | */ |
| 717 | 656 | ||
| 718 | /* | 657 | /* |
| @@ -721,7 +660,7 @@ | |||
| 721 | unsigned char FAR *window)); | 660 | unsigned char FAR *window)); |
| 722 | 661 | ||
| 723 | Initialize the internal stream state for decompression using inflateBack() | 662 | Initialize the internal stream state for decompression using inflateBack() |
| 724 | @@ -877,7 +877,7 @@ | 663 | @@ -889,7 +889,7 @@ |
| 725 | typedef unsigned (*in_func) OF((void FAR *, unsigned char FAR * FAR *)); | 664 | typedef unsigned (*in_func) OF((void FAR *, unsigned char FAR * FAR *)); |
| 726 | typedef int (*out_func) OF((void FAR *, unsigned char FAR *, unsigned)); | 665 | typedef int (*out_func) OF((void FAR *, unsigned char FAR *, unsigned)); |
| 727 | 666 | ||
| @@ -730,7 +669,7 @@ | |||
| 730 | in_func in, void FAR *in_desc, | 669 | in_func in, void FAR *in_desc, |
| 731 | out_func out, void FAR *out_desc)); | 670 | out_func out, void FAR *out_desc)); |
| 732 | /* | 671 | /* |
| 733 | @@ -946,7 +946,7 @@ | 672 | @@ -958,7 +958,7 @@ |
| 734 | that inflateBack() cannot return Z_OK. | 673 | that inflateBack() cannot return Z_OK. |
| 735 | */ | 674 | */ |
| 736 | 675 | ||
| @@ -739,7 +678,7 @@ | |||
| 739 | /* | 678 | /* |
| 740 | All memory allocated by inflateBackInit() is freed. | 679 | All memory allocated by inflateBackInit() is freed. |
| 741 | 680 | ||
| 742 | @@ -954,7 +954,7 @@ | 681 | @@ -966,7 +966,7 @@ |
| 743 | state was inconsistent. | 682 | state was inconsistent. |
| 744 | */ | 683 | */ |
| 745 | 684 | ||
| @@ -748,7 +687,7 @@ | |||
| 748 | /* Return flags indicating compile-time options. | 687 | /* Return flags indicating compile-time options. |
| 749 | 688 | ||
| 750 | Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other: | 689 | Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other: |
| 751 | @@ -1006,7 +1006,7 @@ | 690 | @@ -1018,7 +1018,7 @@ |
| 752 | utility functions can easily be modified if you need special options. | 691 | utility functions can easily be modified if you need special options. |
| 753 | */ | 692 | */ |
| 754 | 693 | ||
| @@ -757,7 +696,7 @@ | |||
| 757 | const Bytef *source, uLong sourceLen)); | 696 | const Bytef *source, uLong sourceLen)); |
| 758 | /* | 697 | /* |
| 759 | Compresses the source buffer into the destination buffer. sourceLen is | 698 | Compresses the source buffer into the destination buffer. sourceLen is |
| 760 | @@ -1021,7 +1021,7 @@ | 699 | @@ -1033,7 +1033,7 @@ |
| 761 | buffer. | 700 | buffer. |
| 762 | */ | 701 | */ |
| 763 | 702 | ||
| @@ -766,7 +705,7 @@ | |||
| 766 | const Bytef *source, uLong sourceLen, | 705 | const Bytef *source, uLong sourceLen, |
| 767 | int level)); | 706 | int level)); |
| 768 | /* | 707 | /* |
| 769 | @@ -1037,14 +1037,14 @@ | 708 | @@ -1049,14 +1049,14 @@ |
| 770 | Z_STREAM_ERROR if the level parameter is invalid. | 709 | Z_STREAM_ERROR if the level parameter is invalid. |
| 771 | */ | 710 | */ |
| 772 | 711 | ||
| @@ -783,16 +722,7 @@ | |||
| 783 | const Bytef *source, uLong sourceLen)); | 722 | const Bytef *source, uLong sourceLen)); |
| 784 | /* | 723 | /* |
| 785 | Decompresses the source buffer into the destination buffer. sourceLen is | 724 | Decompresses the source buffer into the destination buffer. sourceLen is |
| 786 | @@ -1065,7 +1065,7 @@ | 725 | @@ -1095,7 +1095,7 @@ |
| 787 | |||
| 788 | typedef voidp gzFile; | ||
| 789 | |||
| 790 | -ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode)); | ||
| 791 | +ZEXTERN ZEXPORT gzFile gzopen OF((const char *path, const char *mode)); | ||
| 792 | /* | ||
| 793 | Opens a gzip (.gz) file for reading or writing. The mode parameter | ||
| 794 | is as in fopen ("rb" or "wb") but can also include a compression level | ||
| 795 | @@ -1082,7 +1082,7 @@ | ||
| 796 | can be checked to distinguish the two cases (if errno is zero, the | 726 | can be checked to distinguish the two cases (if errno is zero, the |
| 797 | zlib error is Z_MEM_ERROR). */ | 727 | zlib error is Z_MEM_ERROR). */ |
| 798 | 728 | ||
| @@ -801,7 +731,7 @@ | |||
| 801 | /* | 731 | /* |
| 802 | gzdopen() associates a gzFile with the file descriptor fd. File | 732 | gzdopen() associates a gzFile with the file descriptor fd. File |
| 803 | descriptors are obtained from calls like open, dup, creat, pipe or | 733 | descriptors are obtained from calls like open, dup, creat, pipe or |
| 804 | @@ -1095,7 +1095,7 @@ | 734 | @@ -1108,7 +1108,7 @@ |
| 805 | the (de)compression state. | 735 | the (de)compression state. |
| 806 | */ | 736 | */ |
| 807 | 737 | ||
| @@ -810,7 +740,7 @@ | |||
| 810 | /* | 740 | /* |
| 811 | Dynamically update the compression level or strategy. See the description | 741 | Dynamically update the compression level or strategy. See the description |
| 812 | of deflateInit2 for the meaning of these parameters. | 742 | of deflateInit2 for the meaning of these parameters. |
| 813 | @@ -1103,7 +1103,7 @@ | 743 | @@ -1116,7 +1116,7 @@ |
| 814 | opened for writing. | 744 | opened for writing. |
| 815 | */ | 745 | */ |
| 816 | 746 | ||
| @@ -819,7 +749,7 @@ | |||
| 819 | /* | 749 | /* |
| 820 | Reads the given number of uncompressed bytes from the compressed file. | 750 | Reads the given number of uncompressed bytes from the compressed file. |
| 821 | If the input file was not in gzip format, gzread copies the given number | 751 | If the input file was not in gzip format, gzread copies the given number |
| 822 | @@ -1111,7 +1111,7 @@ | 752 | @@ -1124,7 +1124,7 @@ |
| 823 | gzread returns the number of uncompressed bytes actually read (0 for | 753 | gzread returns the number of uncompressed bytes actually read (0 for |
| 824 | end of file, -1 for error). */ | 754 | end of file, -1 for error). */ |
| 825 | 755 | ||
| @@ -828,7 +758,7 @@ | |||
| 828 | voidpc buf, unsigned len)); | 758 | voidpc buf, unsigned len)); |
| 829 | /* | 759 | /* |
| 830 | Writes the given number of uncompressed bytes into the compressed file. | 760 | Writes the given number of uncompressed bytes into the compressed file. |
| 831 | @@ -1119,7 +1119,7 @@ | 761 | @@ -1132,7 +1132,7 @@ |
| 832 | (0 in case of error). | 762 | (0 in case of error). |
| 833 | */ | 763 | */ |
| 834 | 764 | ||
| @@ -837,7 +767,7 @@ | |||
| 837 | /* | 767 | /* |
| 838 | Converts, formats, and writes the args to the compressed file under | 768 | Converts, formats, and writes the args to the compressed file under |
| 839 | control of the format string, as in fprintf. gzprintf returns the number of | 769 | control of the format string, as in fprintf. gzprintf returns the number of |
| 840 | @@ -1132,14 +1132,14 @@ | 770 | @@ -1145,14 +1145,14 @@ |
| 841 | because the secure snprintf() or vsnprintf() functions were not available. | 771 | because the secure snprintf() or vsnprintf() functions were not available. |
| 842 | */ | 772 | */ |
| 843 | 773 | ||
| @@ -854,7 +784,7 @@ | |||
| 854 | /* | 784 | /* |
| 855 | Reads bytes from the compressed file until len-1 characters are read, or | 785 | Reads bytes from the compressed file until len-1 characters are read, or |
| 856 | a newline character is read and transferred to buf, or an end-of-file | 786 | a newline character is read and transferred to buf, or an end-of-file |
| 857 | @@ -1148,19 +1148,19 @@ | 787 | @@ -1161,19 +1161,19 @@ |
| 858 | gzgets returns buf, or Z_NULL in case of error. | 788 | gzgets returns buf, or Z_NULL in case of error. |
| 859 | */ | 789 | */ |
| 860 | 790 | ||
| @@ -877,7 +807,7 @@ | |||
| 877 | /* | 807 | /* |
| 878 | Push one character back onto the stream to be read again later. | 808 | Push one character back onto the stream to be read again later. |
| 879 | Only one character of push-back is allowed. gzungetc() returns the | 809 | Only one character of push-back is allowed. gzungetc() returns the |
| 880 | @@ -1170,7 +1170,7 @@ | 810 | @@ -1183,7 +1183,7 @@ |
| 881 | or gzrewind(). | 811 | or gzrewind(). |
| 882 | */ | 812 | */ |
| 883 | 813 | ||
| @@ -886,38 +816,21 @@ | |||
| 886 | /* | 816 | /* |
| 887 | Flushes all pending output into the compressed file. The parameter | 817 | Flushes all pending output into the compressed file. The parameter |
| 888 | flush is as in the deflate() function. The return value is the zlib | 818 | flush is as in the deflate() function. The return value is the zlib |
| 889 | @@ -1180,7 +1180,7 @@ | 819 | @@ -1212,7 +1212,7 @@ |
| 890 | degrade compression. | ||
| 891 | */ | ||
| 892 | |||
| 893 | -ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file, | ||
| 894 | +ZEXTERN ZEXPORT z_off_t gzseek OF((gzFile file, | ||
| 895 | z_off_t offset, int whence)); | ||
| 896 | /* | ||
| 897 | Sets the starting position for the next gzread or gzwrite on the | ||
| 898 | @@ -1198,14 +1198,14 @@ | ||
| 899 | would be before the current position. | 820 | would be before the current position. |
| 900 | */ | 821 | */ |
| 901 | 822 | ||
| 902 | -ZEXTERN int ZEXPORT gzrewind OF((gzFile file)); | 823 | -ZEXTERN int ZEXPORT gzrewind OF((gzFile file)); |
| 903 | +ZEXTERN ZEXPORT int gzrewind OF((gzFile file)); | 824 | +ZEXTERN ZEXPORT int gzrewind OF((gzFile file)); |
| 904 | /* | 825 | /* |
| 905 | Rewinds the given file. This function is supported only for reading. | 826 | Rewinds the given file. This function is supported only for reading. |
| 906 | 827 | ||
| 907 | gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET) | 828 | @@ -1229,19 +1229,19 @@ |
| 908 | */ | ||
| 909 | |||
| 910 | -ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file)); | ||
| 911 | +ZEXTERN ZEXPORT z_off_t gztell OF((gzFile file)); | ||
| 912 | /* | ||
| 913 | Returns the starting position for the next gzread or gzwrite on the | ||
| 914 | given compressed file. This position represents a number of bytes in the | ||
| 915 | @@ -1214,26 +1214,26 @@ | ||
| 916 | gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR) | 829 | gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR) |
| 917 | */ | 830 | */ |
| 918 | 831 | ||
| 919 | -ZEXTERN int ZEXPORT gzeof OF((gzFile file)); | 832 | -ZEXTERN int ZEXPORT gzeof OF((gzFile file)); |
| 920 | +ZEXTERN ZEXPORT int gzeof OF((gzFile file)); | 833 | +ZEXTERN ZEXPORT int gzeof OF((gzFile file)); |
| 921 | /* | 834 | /* |
| 922 | Returns 1 when EOF has previously been detected reading the given | 835 | Returns 1 when EOF has previously been detected reading the given |
| 923 | input stream, otherwise zero. | 836 | input stream, otherwise zero. |
| @@ -931,11 +844,12 @@ | |||
| 931 | */ | 844 | */ |
| 932 | 845 | ||
| 933 | -ZEXTERN int ZEXPORT gzclose OF((gzFile file)); | 846 | -ZEXTERN int ZEXPORT gzclose OF((gzFile file)); |
| 934 | +ZEXTERN ZEXPORT int gzclose OF((gzFile file)); | 847 | +ZEXTERN ZEXPORT int gzclose OF((gzFile file)); |
| 935 | /* | 848 | /* |
| 936 | Flushes all pending output if necessary, closes the compressed file | 849 | Flushes all pending output if necessary, closes the compressed file |
| 937 | and deallocates all the (de)compression state. The return value is the zlib | 850 | and deallocates all the (de)compression state. The return value is the zlib |
| 938 | error number (see function gzerror below). | 851 | @@ -1249,7 +1249,7 @@ |
| 852 | file, since its structures have been deallocated. | ||
| 939 | */ | 853 | */ |
| 940 | 854 | ||
| 941 | -ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); | 855 | -ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); |
| @@ -943,8 +857,8 @@ | |||
| 943 | /* | 857 | /* |
| 944 | Returns the error message for the last error which occurred on the | 858 | Returns the error message for the last error which occurred on the |
| 945 | given compressed file. errnum is set to zlib error number. If an | 859 | given compressed file. errnum is set to zlib error number. If an |
| 946 | @@ -1242,7 +1242,7 @@ | 860 | @@ -1261,7 +1261,7 @@ |
| 947 | to get the exact error code. | 861 | this function may invalidate the returned string. |
| 948 | */ | 862 | */ |
| 949 | 863 | ||
| 950 | -ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); | 864 | -ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); |
| @@ -952,7 +866,7 @@ | |||
| 952 | /* | 866 | /* |
| 953 | Clears the error and end-of-file flags for file. This is analogous to the | 867 | Clears the error and end-of-file flags for file. This is analogous to the |
| 954 | clearerr() function in stdio. This is useful for continuing to read a gzip | 868 | clearerr() function in stdio. This is useful for continuing to read a gzip |
| 955 | @@ -1257,7 +1257,7 @@ | 869 | @@ -1276,7 +1276,7 @@ |
| 956 | compression library. | 870 | compression library. |
| 957 | */ | 871 | */ |
| 958 | 872 | ||
| @@ -961,7 +875,7 @@ | |||
| 961 | /* | 875 | /* |
| 962 | Update a running Adler-32 checksum with the bytes buf[0..len-1] and | 876 | Update a running Adler-32 checksum with the bytes buf[0..len-1] and |
| 963 | return the updated checksum. If buf is NULL, this function returns | 877 | return the updated checksum. If buf is NULL, this function returns |
| 964 | @@ -1282,7 +1282,7 @@ | 878 | @@ -1302,7 +1302,7 @@ |
| 965 | seq1 and seq2 concatenated, requiring only adler1, adler2, and len2. | 879 | seq1 and seq2 concatenated, requiring only adler1, adler2, and len2. |
| 966 | */ | 880 | */ |
| 967 | 881 | ||
| @@ -970,7 +884,7 @@ | |||
| 970 | /* | 884 | /* |
| 971 | Update a running CRC-32 with the bytes buf[0..len-1] and return the | 885 | Update a running CRC-32 with the bytes buf[0..len-1] and return the |
| 972 | updated CRC-32. If buf is NULL, this function returns the required initial | 886 | updated CRC-32. If buf is NULL, this function returns the required initial |
| 973 | @@ -1314,17 +1314,17 @@ | 887 | @@ -1334,17 +1334,17 @@ |
| 974 | /* deflateInit and inflateInit are macros to allow checking the zlib version | 888 | /* deflateInit and inflateInit are macros to allow checking the zlib version |
| 975 | * and the compiler's view of z_stream: | 889 | * and the compiler's view of z_stream: |
| 976 | */ | 890 | */ |
| @@ -993,21 +907,58 @@ | |||
| 993 | unsigned char FAR *window, | 907 | unsigned char FAR *window, |
| 994 | const char *version, | 908 | const char *version, |
| 995 | int stream_size)); | 909 | int stream_size)); |
| 996 | @@ -1346,9 +1346,9 @@ | 910 | @@ -1362,11 +1362,11 @@ |
| 911 | ZLIB_VERSION, sizeof(z_stream)) | ||
| 912 | |||
| 913 | #ifdef _LARGEFILE64_SOURCE | ||
| 914 | - ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | ||
| 915 | - ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int)); | ||
| 916 | - ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile)); | ||
| 917 | - ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off64_t)); | ||
| 918 | - ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off64_t)); | ||
| 919 | + ZEXTERN ZEXPORT gzFile gzopen64 OF((const char *, const char *)); | ||
| 920 | + ZEXTERN ZEXPORT off64_t gzseek64 OF((gzFile, off64_t, int)); | ||
| 921 | + ZEXTERN ZEXPORT off64_t gztell64 OF((gzFile)); | ||
| 922 | + ZEXTERN ZEXPORT uLong adler32_combine64 OF((uLong, uLong, off64_t)); | ||
| 923 | + ZEXTERN ZEXPORT uLong crc32_combine64 OF((uLong, uLong, off64_t)); | ||
| 924 | #endif | ||
| 925 | |||
| 926 | #if _FILE_OFFSET_BITS == 64 | ||
| 927 | @@ -1376,21 +1376,21 @@ | ||
| 928 | # define adler32_combine adler32_combine64 | ||
| 929 | # define crc32_combine crc32_combine64 | ||
| 930 | #else | ||
| 931 | - ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); | ||
| 932 | - ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int)); | ||
| 933 | - ZEXTERN z_off_t ZEXPORT gztell OF((gzFile)); | ||
| 934 | - ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); | ||
| 935 | - ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); | ||
| 936 | + ZEXTERN ZEXPORT gzFile gzopen OF((const char *, const char *)); | ||
| 937 | + ZEXTERN ZEXPORT z_off_t gzseek OF((gzFile, z_off_t, int)); | ||
| 938 | + ZEXTERN ZEXPORT z_off_t gztell OF((gzFile)); | ||
| 939 | + ZEXTERN ZEXPORT uLong adler32_combine OF((uLong, uLong, z_off_t)); | ||
| 940 | + ZEXTERN ZEXPORT uLong crc32_combine OF((uLong, uLong, z_off_t)); | ||
| 941 | #endif | ||
| 942 | |||
| 943 | #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) | ||
| 997 | struct internal_state {int dummy;}; /* hack for buggy compilers */ | 944 | struct internal_state {int dummy;}; /* hack for buggy compilers */ |
| 998 | #endif | 945 | #endif |
| 999 | 946 | ||
| 1000 | -ZEXTERN const char * ZEXPORT zError OF((int)); | 947 | -ZEXTERN const char * ZEXPORT zError OF((int)); |
| 1001 | -ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp z)); | 948 | -ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); |
| 1002 | -ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); | 949 | -ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); |
| 1003 | +ZEXTERN ZEXPORT const char * zError OF((int)); | 950 | -ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int)); |
| 1004 | +ZEXTERN ZEXPORT int inflateSyncPoint OF((z_streamp z)); | 951 | +ZEXTERN ZEXPORT const char * zError OF((int)); |
| 1005 | +ZEXTERN ZEXPORT const uLongf * get_crc_table OF((void)); | 952 | +ZEXTERN ZEXPORT int inflateSyncPoint OF((z_streamp)); |
| 953 | +ZEXTERN ZEXPORT const uLongf * get_crc_table OF((void)); | ||
| 954 | +ZEXTERN ZEXPORT int inflateUndermine OF((z_streamp, int)); | ||
| 1006 | 955 | ||
| 1007 | #ifdef __cplusplus | 956 | #ifdef __cplusplus |
| 1008 | } | 957 | } |
| 1009 | --- zlib-1.2.3-orig/zutil.c~visibility | 958 | Index: zlib-1.2.3/zutil.c |
| 1010 | +++ zlib-1.2.3-orig/zutil.c | 959 | =================================================================== |
| 960 | --- zlib-1.2.3.orig/zutil.c 2005-06-13 01:37:49.000000000 +0100 | ||
| 961 | +++ zlib-1.2.3/zutil.c 2008-08-23 11:17:44.000000000 +0100 | ||
| 1011 | @@ -24,12 +24,12 @@ | 962 | @@ -24,12 +24,12 @@ |
| 1012 | ""}; | 963 | ""}; |
| 1013 | 964 | ||
diff --git a/meta/packages/zlib/zlib-native.inc b/meta/packages/zlib/zlib-native.inc index 290ee98b32..2228710e8f 100644 --- a/meta/packages/zlib/zlib-native.inc +++ b/meta/packages/zlib/zlib-native.inc | |||
| @@ -2,8 +2,9 @@ ZLIB_EXTRA = "" | |||
| 2 | inherit native | 2 | inherit native |
| 3 | 3 | ||
| 4 | do_stage() { | 4 | do_stage() { |
| 5 | install -m 0644 zlib.h ${STAGING_INCDIR}/zlib.h | 5 | install -m 0644 zlib.h ${STAGING_INCDIR}/ |
| 6 | install -m 0644 zconf.h ${STAGING_INCDIR}/zconf.h | 6 | install -m 0644 zconf.h ${STAGING_INCDIR}/ |
| 7 | install -m 0644 zlibdefs.h ${STAGING_INCDIR}/ | ||
| 7 | oe_libinstall -a -so libz ${STAGING_LIBDIR} | 8 | oe_libinstall -a -so libz ${STAGING_LIBDIR} |
| 8 | } | 9 | } |
| 9 | 10 | ||
diff --git a/meta/packages/zlib/zlib-sdk.inc b/meta/packages/zlib/zlib-sdk.inc index a5901300ee..992f0c34f0 100644 --- a/meta/packages/zlib/zlib-sdk.inc +++ b/meta/packages/zlib/zlib-sdk.inc | |||
| @@ -3,7 +3,8 @@ inherit sdk | |||
| 3 | 3 | ||
| 4 | do_stage() { | 4 | do_stage() { |
| 5 | install -d ${STAGING_INCDIR} | 5 | install -d ${STAGING_INCDIR} |
| 6 | install -m 0644 zlib.h ${STAGING_INCDIR}/zlib.h | 6 | install -m 0644 zlib.h ${STAGING_INCDIR}/ |
| 7 | install -m 0644 zconf.h ${STAGING_INCDIR}/zconf.h | 7 | install -m 0644 zconf.h ${STAGING_INCDIR}/ |
| 8 | install -m 0644 zlibdefs.h ${STAGING_INCDIR}/ | ||
| 8 | oe_libinstall -a -so libz ${STAGING_LIBDIR} | 9 | oe_libinstall -a -so libz ${STAGING_LIBDIR} |
| 9 | } | 10 | } |
diff --git a/meta/packages/zlib/zlib_1.2.3.bb b/meta/packages/zlib/zlib_1.2.3.bb index 69f78687f2..eeb6f3f5bb 100644 --- a/meta/packages/zlib/zlib_1.2.3.bb +++ b/meta/packages/zlib/zlib_1.2.3.bb | |||
| @@ -3,9 +3,10 @@ SECTION = "libs" | |||
| 3 | PRIORITY = "required" | 3 | PRIORITY = "required" |
| 4 | HOMEPAGE = "http://www.gzip.org/zlib/" | 4 | HOMEPAGE = "http://www.gzip.org/zlib/" |
| 5 | LICENSE = "zlib" | 5 | LICENSE = "zlib" |
| 6 | PR = "r2" | 6 | PR = "r4" |
| 7 | 7 | ||
| 8 | SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \ | 8 | SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \ |
| 9 | file://1.2.3.3.dfsg.patch.gz;patch=1 \ | ||
| 9 | file://visibility.patch;patch=1 \ | 10 | file://visibility.patch;patch=1 \ |
| 10 | file://autotools.patch;patch=1 " | 11 | file://autotools.patch;patch=1 " |
| 11 | 12 | ||
| @@ -16,8 +17,9 @@ DEPENDS = "libtool-cross" | |||
| 16 | inherit autotools | 17 | inherit autotools |
| 17 | 18 | ||
| 18 | do_stage() { | 19 | do_stage() { |
| 19 | install -m 0644 zlib.h ${STAGING_INCDIR}/zlib.h | 20 | install -m 0644 zlib.h ${STAGING_INCDIR}/ |
| 20 | install -m 0644 zconf.h ${STAGING_INCDIR}/zconf.h | 21 | install -m 0644 zconf.h ${STAGING_INCDIR}/ |
| 22 | install -m 0644 zlibdefs.h ${STAGING_INCDIR}/ | ||
| 21 | oe_libinstall -a -so libz ${STAGING_LIBDIR} | 23 | oe_libinstall -a -so libz ${STAGING_LIBDIR} |
| 22 | } | 24 | } |
| 23 | 25 | ||
