summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2003-12-02 21:26:36 +0000
committerSeemant Kulleen <seemant@gentoo.org>2003-12-02 21:26:36 +0000
commitb4b377c3b98006d9de9ea75dcccae9e15abccac1 (patch)
tree5c43625706616a8b6a963e1a47bceb7cf1c3c2b5 /sys-libs/zlib/files
parentversion bump (diff)
downloadgentoo-2-b4b377c3b98006d9de9ea75dcccae9e15abccac1.tar.gz
gentoo-2-b4b377c3b98006d9de9ea75dcccae9e15abccac1.tar.bz2
gentoo-2-b4b377c3b98006d9de9ea75dcccae9e15abccac1.zip
version bump
Diffstat (limited to 'sys-libs/zlib/files')
-rw-r--r--sys-libs/zlib/files/digest-zlib-1.1.3-r31
-rw-r--r--sys-libs/zlib/files/digest-zlib-1.1.41
-rw-r--r--sys-libs/zlib/files/digest-zlib-1.1.4-r11
-rw-r--r--sys-libs/zlib/files/digest-zlib-1.2.11
-rw-r--r--sys-libs/zlib/files/zlib-1.2.1-build-fPIC.patch65
-rw-r--r--sys-libs/zlib/files/zlib-1.2.1-glibc.patch12
-rw-r--r--sys-libs/zlib/files/zlib-1.2.1-mapfile.patch88
7 files changed, 166 insertions, 3 deletions
diff --git a/sys-libs/zlib/files/digest-zlib-1.1.3-r3 b/sys-libs/zlib/files/digest-zlib-1.1.3-r3
deleted file mode 100644
index 3e5ce1ef1960..000000000000
--- a/sys-libs/zlib/files/digest-zlib-1.1.3-r3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 ada18615d2a66dee4d6f5ff916ecd4c6 zlib-1.1.3.tar.gz 168463
diff --git a/sys-libs/zlib/files/digest-zlib-1.1.4 b/sys-libs/zlib/files/digest-zlib-1.1.4
deleted file mode 100644
index ac97e5a21b50..000000000000
--- a/sys-libs/zlib/files/digest-zlib-1.1.4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 ea16358be41384870acbdc372f9db152 zlib-1.1.4.tar.bz2 147014
diff --git a/sys-libs/zlib/files/digest-zlib-1.1.4-r1 b/sys-libs/zlib/files/digest-zlib-1.1.4-r1
deleted file mode 100644
index ac97e5a21b50..000000000000
--- a/sys-libs/zlib/files/digest-zlib-1.1.4-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 ea16358be41384870acbdc372f9db152 zlib-1.1.4.tar.bz2 147014
diff --git a/sys-libs/zlib/files/digest-zlib-1.2.1 b/sys-libs/zlib/files/digest-zlib-1.2.1
new file mode 100644
index 000000000000..9f6b96487246
--- /dev/null
+++ b/sys-libs/zlib/files/digest-zlib-1.2.1
@@ -0,0 +1 @@
+MD5 8106069990476a3c5187301465bd7a60 zlib-1.2.1.tar.bz2 284152
diff --git a/sys-libs/zlib/files/zlib-1.2.1-build-fPIC.patch b/sys-libs/zlib/files/zlib-1.2.1-build-fPIC.patch
new file mode 100644
index 000000000000..3f122c9cfc2b
--- /dev/null
+++ b/sys-libs/zlib/files/zlib-1.2.1-build-fPIC.patch
@@ -0,0 +1,65 @@
+diff -urN zlib-1.2.1-old/Makefile.in zlib-1.2.1/Makefile.in
+--- zlib-1.2.1-old/Makefile.in 2003-12-02 12:14:28.000000000 -0800
++++ zlib-1.2.1/Makefile.in 2003-12-02 12:16:46.000000000 -0800
+@@ -49,6 +49,8 @@
+ OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
+ zutil.o inflate.o infback.o inftrees.o inffast.o
+
++PIC_OBJS = $(OBJS:%.o=%.lo)
++
+ OBJA =
+ # to use the asm code: make OBJA=match.o
+
+@@ -77,8 +79,11 @@
+ mv _match.o match.o
+ rm -f _match.s
+
+-$(SHAREDLIBV): $(OBJS)
+- $(LDSHARED) -o $@ $(OBJS) -lc
++%.lo: %.c
++ $(CC) $(CFLAGS) -DPIC -fPIC -c $< -o $@
++
++$(SHAREDLIBV): $(PIC_OBJS)
++ $(LDSHARED) -o $@ $(PIC_OBJS) -lc
+ rm -f $(SHAREDLIB) $(SHAREDLIBM)
+ ln -s $@ $(SHAREDLIB)
+ ln -s $@ $(SHAREDLIBM)
+@@ -89,13 +94,10 @@
+ minigzip$(EXE): minigzip.o $(LIBS)
+ $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
+
+-install: $(LIBS)
++install-libs: $(LIBS)
+ -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
+- -@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi
+ -@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi
+ -@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi
+- cp zlib.h zconf.h $(includedir)
+- chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
+ cp $(LIBS) $(libdir)
+ cd $(libdir); chmod 755 $(LIBS)
+ -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
+@@ -110,6 +112,11 @@
+ # The ranlib in install is needed on NeXTSTEP which checks file times
+ # ldconfig is for Linux
+
++install: install-libs
++ -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi
++ cp zlib.h zconf.h $(includedir)
++ chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
++
+ uninstall:
+ cd $(includedir); \
+ cd $(libdir); rm -f libz.a; \
+diff -urN zlib-1.2.1-old/configure zlib-1.2.1/configure
+--- zlib-1.2.1-old/configure 2003-11-16 19:50:39.000000000 -0800
++++ zlib-1.2.1/configure 2003-12-02 12:18:01.000000000 -0800
+@@ -160,7 +160,7 @@
+ if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
+ test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
+ CFLAGS="$SFLAGS"
+- LIBS="$SHAREDLIBV"
++ LIBS="$LIBS $SHAREDLIBV"
+ echo Building shared library $SHAREDLIBV with $CC.
+ elif test -z "$old_cc" -a -z "$old_cflags"; then
+ echo No shared library support.
diff --git a/sys-libs/zlib/files/zlib-1.2.1-glibc.patch b/sys-libs/zlib/files/zlib-1.2.1-glibc.patch
new file mode 100644
index 000000000000..db5e0df9fb58
--- /dev/null
+++ b/sys-libs/zlib/files/zlib-1.2.1-glibc.patch
@@ -0,0 +1,12 @@
+diff -urN zlib-1.2.1-old/Makefile.in zlib-1.2.1/Makefile.in
+--- zlib-1.2.1-old/Makefile.in 2003-11-08 18:29:23.000000000 -0800
++++ zlib-1.2.1/Makefile.in 2003-12-02 12:12:43.000000000 -0800
+@@ -78,7 +78,7 @@
+ rm -f _match.s
+
+ $(SHAREDLIBV): $(OBJS)
+- $(LDSHARED) -o $@ $(OBJS)
++ $(LDSHARED) -o $@ $(OBJS) -lc
+ rm -f $(SHAREDLIB) $(SHAREDLIBM)
+ ln -s $@ $(SHAREDLIB)
+ ln -s $@ $(SHAREDLIBM)
diff --git a/sys-libs/zlib/files/zlib-1.2.1-mapfile.patch b/sys-libs/zlib/files/zlib-1.2.1-mapfile.patch
new file mode 100644
index 000000000000..fa0e39df92f7
--- /dev/null
+++ b/sys-libs/zlib/files/zlib-1.2.1-mapfile.patch
@@ -0,0 +1,88 @@
+--- configure.orig 2003-12-02 12:48:03.882675272 -0800
++++ configure 2003-12-02 13:00:18.728031272 -0800
+@@ -76,7 +76,9 @@
+ SFLAGS=${CFLAGS-"-fPIC -O3"}
+ CFLAGS="$cflags"
+ case `(uname -s || echo unknown) 2>/dev/null` in
+- Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};;
++ Linux | linux | GNU | GNU/*)
++ LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"}
++ MAPFILE=${MAPFILE-"-Wl,--version-script,mapfile"};;
+ CYGWIN* | Cygwin* | cygwin* )
+ EXE='.exe';;
+ QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4
+@@ -123,6 +125,7 @@
+ LDSHARED=${LDSHARED-"cc -dy -KPIC -G"};;
+ SunOS\ 5*) SFLAGS=${CFLAGS-"-fast -xcg89 -KPIC -R."}
+ CFLAGS=${CFLAGS-"-fast -xcg89"}
++ MAPFILE=${MAPFILE-"-M mapfile"}
+ LDSHARED=${LDSHARED-"cc -G"};;
+ SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"}
+ CFLAGS=${CFLAGS-"-O2"}
+@@ -169,6 +172,7 @@
+ echo 'No shared library support; try without defining CC and CFLAGS'
+ shared=0;
+ fi
++ LDSHARED="${LDSHARED} ${MAPFILE}"
+ fi
+ if test $shared -eq 0; then
+ LDSHARED="$CC"
+--- /dev/null 2003-10-15 22:31:52.000000000 -0700
++++ mapfile 2003-12-02 12:59:22.275926800 -0800
+@@ -0,0 +1,56 @@
++{
++ global:
++ zlibVersion ;
++ deflateInit_ ;
++ deflateInit2_ ;
++ deflate ;
++ deflateSetDictionary ;
++ deflateCopy ;
++ deflateReset ;
++ deflateParams ;
++ deflateEnd ;
++ deflateBound ;
++ deflatePrime ;
++ inflateInit_ ;
++ inflateInit2_ ;
++ inflate ;
++ inflateSetDictionary ;
++ inflateSync ;
++ inflateReset ;
++ inflateEnd ;
++ inflateCopy ;
++ inflateBackInit_ ;
++ inflateBack ;
++ inflateBackEnd ;
++ zlibCompileFlags ;
++ compressBound ;
++ compress ;
++ compress2 ;
++ uncompress ;
++ gzopen ;
++ gzdopen ;
++ gzsetparams ;
++ gzread ;
++ gzwrite ;
++ gzprintf ;
++ gzputs ;
++ gzgets ;
++ gzputc ;
++ gzgetc ;
++ gzungetc ;
++ gzflush ;
++ gzseek ;
++ gzrewind ;
++ gztell ;
++ gzeof ;
++ gzclose ;
++ gzerror ;
++ gzclearerr ;
++ adler32 ;
++ crc32 ;
++ zError ;
++ inflateSyncPoint ;
++ get_crc_table ;
++ local:
++ *;
++};