FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

- Issue #22381: Update zlib to 1.2.8. · python-emscripten/cpython@77a64bf · GitHub

Repository navigation

Commit 77a64bf

Browse files
committed
- Issue python#22381: Update zlib to 1.2.8.
1 parent 7709a53 commit 77a64bf

44 files changed

Lines changed: 7795 additions & 3181 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Misc/NEWS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ IDLE
142142
Extension Modules
143143
-----------------
144144

145+
- Issue #22381: Update zlib to 1.2.8.
146+
145147
- Issue #22176: Update the ctypes module's libffi to v3.1. This release
146148
adds support for the Linux AArch64 and POWERPC ELF ABIv2 little endian
147149
architectures.

‎Modules/zlib/ChangeLog‎

Lines changed: 618 additions & 1 deletion
Large diffs are not rendered by default.

‎Modules/zlib/FAQ‎

Lines changed: 148 additions & 119 deletions
Large diffs are not rendered by default.

‎Modules/zlib/INDEX‎

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
1+
CMakeLists.txt cmake build file
12
ChangeLog history of changes
23
FAQ Frequently Asked Questions about zlib
34
INDEX this file
4-
Makefile makefile for Unix (generated by configure)
5-
Makefile.in makefile for Unix (template for configure)
5+
Makefile dummy Makefile that tells you to ./configure
6+
Makefile.in template for Unix Makefile
67
README guess what
7-
algorithm.txt description of the (de)compression algorithm
88
configure configure script for Unix
9-
zconf.in.h template for zconf.h (used by configure)
9+
make_vms.com makefile for VMS
10+
test/example.c zlib usages examples for build testing
11+
test/minigzip.c minimal gzip-like functionality for build testing
12+
test/infcover.c inf*.c code coverage for build coverage testing
13+
treebuild.xml XML description of source file dependencies
14+
zconf.h.cmakein zconf.h template for cmake
15+
zconf.h.in zconf.h template for configure
16+
zlib.3 Man page for zlib
17+
zlib.3.pdf Man page in PDF format
18+
zlib.map Linux symbol information
19+
zlib.pc.in Template for pkg-config descriptor
20+
zlib.pc.cmakein zlib.pc template for cmake
21+
zlib2ansi perl script to convert source files for C++ compilation
1022

1123
amiga/ makefiles for Amiga SAS C
12-
as400/ makefiles for IBM AS/400
24+
as400/ makefiles for AS/400
25+
doc/ documentation for formats and algorithms
1326
msdos/ makefiles for MSDOS
27+
nintendods/ makefile for Nintendo DS
1428
old/ makefiles for various architectures and zlib documentation
1529
files that have not yet been updated for zlib 1.2.x
16-
projects/ projects for various Integrated Development Environments
1730
qnx/ makefiles for QNX
31+
watcom/ makefiles for OpenWatcom
1832
win32/ makefiles for Windows
1933

20-
zlib public header files (must be kept):
34+
zlib public header files (required for library use):
2135
zconf.h
2236
zlib.h
2337

@@ -28,7 +42,11 @@ crc32.c
2842
crc32.h
2943
deflate.c
3044
deflate.h
31-
gzio.c
45+
gzclose.c
46+
gzguts.h
47+
gzlib.c
48+
gzread.c
49+
gzwrite.c
3250
infback.c
3351
inffast.c
3452
inffast.h
@@ -43,9 +61,8 @@ uncompr.c
4361
zutil.c
4462
zutil.h
4563

46-
source files for sample programs:
47-
example.c
48-
minigzip.c
64+
source files for sample programs
65+
See examples/README.examples
4966

50-
unsupported contribution by third parties
67+
unsupported contributions by third parties
5168
See contrib/README.contrib

‎Modules/zlib/Makefile‎

Lines changed: 4 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -1,154 +1,5 @@
1-
# Makefile for zlib
2-
# Copyright (C) 1995-2005 Jean-loup Gailly.
3-
# For conditions of distribution and use, see copyright notice in zlib.h
1+
all:
2+
-@echo "Please use ./configure first. Thank you."
43

5-
# To compile and test, type:
6-
# ./configure; make test
7-
# The call of configure is optional if you don't have special requirements
8-
# If you wish to build zlib as a shared library, use: ./configure -s
9-
10-
# To use the asm code, type:
11-
# cp contrib/asm?86/match.S ./match.S
12-
# make LOC=-DASMV OBJA=match.o
13-
14-
# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
15-
# make install
16-
# To install in $HOME instead of /usr/local, use:
17-
# make install prefix=$HOME
18-
19-
CC=cc
20-
21-
CFLAGS=-O
22-
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
23-
#CFLAGS=-g -DDEBUG
24-
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
25-
# -Wstrict-prototypes -Wmissing-prototypes
26-
27-
LDFLAGS=libz.a
28-
LDSHARED=$(CC)
29-
CPP=$(CC) -E
30-
31-
LIBS=libz.a
32-
SHAREDLIB=libz.so
33-
SHAREDLIBV=libz.so.1.2.3
34-
SHAREDLIBM=libz.so.1
35-
36-
AR=ar rc
37-
RANLIB=ranlib
38-
TAR=tar
39-
SHELL=/bin/sh
40-
EXE=
41-
42-
prefix = /usr/local
43-
exec_prefix = ${prefix}
44-
libdir = ${exec_prefix}/lib
45-
includedir = ${prefix}/include
46-
mandir = ${prefix}/share/man
47-
man3dir = ${mandir}/man3
48-
49-
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
50-
zutil.o inflate.o infback.o inftrees.o inffast.o
51-
52-
OBJA =
53-
# to use the asm code: make OBJA=match.o
54-
55-
TEST_OBJS = example.o minigzip.o
56-
57-
all: example$(EXE) minigzip$(EXE)
58-
59-
check: test
60-
test: all
61-
@LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
62-
echo hello world | ./minigzip | ./minigzip -d || \
63-
echo ' *** minigzip test FAILED ***' ; \
64-
if ./example; then \
65-
echo ' *** zlib test OK ***'; \
66-
else \
67-
echo ' *** zlib test FAILED ***'; \
68-
fi
69-
70-
libz.a: $(OBJS) $(OBJA)
71-
$(AR) $@ $(OBJS) $(OBJA)
72-
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
73-
74-
match.o: match.S
75-
$(CPP) match.S > _match.s
76-
$(CC) -c _match.s
77-
mv _match.o match.o
78-
rm -f _match.s
79-
80-
$(SHAREDLIBV): $(OBJS)
81-
$(LDSHARED) -o $@ $(OBJS)
82-
rm -f $(SHAREDLIB) $(SHAREDLIBM)
83-
ln -s $@ $(SHAREDLIB)
84-
ln -s $@ $(SHAREDLIBM)
85-
86-
example$(EXE): example.o $(LIBS)
87-
$(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS)
88-
89-
minigzip$(EXE): minigzip.o $(LIBS)
90-
$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
91-
92-
install: $(LIBS)
93-
-@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
94-
-@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi
95-
-@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi
96-
-@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi
97-
cp zlib.h zconf.h $(includedir)
98-
chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
99-
cp $(LIBS) $(libdir)
100-
cd $(libdir); chmod 755 $(LIBS)
101-
-@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
102-
cd $(libdir); if test -f $(SHAREDLIBV); then \
103-
rm -f $(SHAREDLIB) $(SHAREDLIBM); \
104-
ln -s $(SHAREDLIBV) $(SHAREDLIB); \
105-
ln -s $(SHAREDLIBV) $(SHAREDLIBM); \
106-
(ldconfig || true) >/dev/null 2>&1; \
107-
fi
108-
cp zlib.3 $(man3dir)
109-
chmod 644 $(man3dir)/zlib.3
110-
# The ranlib in install is needed on NeXTSTEP which checks file times
111-
# ldconfig is for Linux
112-
113-
uninstall:
114-
cd $(includedir); \
115-
cd $(libdir); rm -f libz.a; \
116-
if test -f $(SHAREDLIBV); then \
117-
rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \
118-
fi
119-
cd $(man3dir); rm -f zlib.3
120-
121-
mostlyclean: clean
122-
clean:
123-
rm -f *.o *~ example$(EXE) minigzip$(EXE) \
124-
libz.* foo.gz so_locations \
125-
_match.s maketree contrib/infback9/*.o
126-
127-
maintainer-clean: distclean
128-
distclean: clean
129-
cp -p Makefile.in Makefile
130-
cp -p zconf.in.h zconf.h
131-
rm -f .DS_Store
132-
133-
tags:
134-
etags *.[ch]
135-
136-
depend:
137-
makedepend -- $(CFLAGS) -- *.[ch]
138-
139-
# DO NOT DELETE THIS LINE -- make depend depends on it.
140-
141-
adler32.o: zlib.h zconf.h
142-
compress.o: zlib.h zconf.h
143-
crc32.o: crc32.h zlib.h zconf.h
144-
deflate.o: deflate.h zutil.h zlib.h zconf.h
145-
example.o: zlib.h zconf.h
146-
gzio.o: zutil.h zlib.h zconf.h
147-
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
148-
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
149-
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
150-
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
151-
minigzip.o: zlib.h zconf.h
152-
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
153-
uncompr.o: zlib.h zconf.h
154-
zutil.o: zutil.h zlib.h zconf.h
4+
distclean:
5+
make -f Makefile.in distclean

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL