Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from zlib to zlib-ng #18

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "zlib"]
path = zlib
url = https://github.com/madler/zlib.git
[submodule "jpeg"]
path = jpeg
url = https://github.com/libjpeg-turbo/ijg.git
Expand Down Expand Up @@ -46,3 +43,6 @@
[submodule "xgboost"]
path = xgboost
url = https://github.com/dmlc/xgboost.git
[submodule "zlib-ng"]
path = zlib-ng
url = https://github.com/zlib-ng/zlib-ng.git
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
### Fixed
### Changed
### Removed

* Remove unmaintained zlib library

### Added

* zlib-ng 2.0.6

### Added

## [7.5.1] - 2022-08-22
Expand Down
18 changes: 9 additions & 9 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ RELEASE_FILE = $(MKFILE_DIRNAME)-$(DATE)
# Recurse Make in Sub-directories
# --------------------------------

ALLDIRS = antlr2 gsl jpeg zlib szlib curl hdf4 hdf5 netcdf netcdf-fortran netcdf-cxx4 \
ALLDIRS = antlr2 gsl jpeg zlib-ng szlib curl hdf4 hdf5 netcdf netcdf-fortran netcdf-cxx4 \
udunits2 nco cdo nccmp esmf xgboost \
GFE \
FLAP hdfeos hdfeos5 SDPToolkit
Expand All @@ -266,7 +266,7 @@ endif

GFE_DIRS = GFE

ESSENTIAL_DIRS = jpeg zlib szlib hdf5 netcdf netcdf-fortran esmf xgboost \
ESSENTIAL_DIRS = jpeg zlib-ng szlib hdf5 netcdf netcdf-fortran esmf xgboost \
$(GFE_DIRS) FLAP

ifeq ($(MACH),aarch64)
Expand Down Expand Up @@ -487,7 +487,7 @@ jpeg.config: jpeg/configure
CFLAGS="$(CFLAGS)" CC=$(CC) CXX=$(CXX) FC=$(FC) )
@touch $@

hdf4.config: hdf4/README.txt jpeg.install zlib.install szlib.install
hdf4.config: hdf4/README.txt jpeg.install zlib-ng.install szlib.install
@echo Configuring hdf4
@(cd hdf4; \
export PATH="$(prefix)/bin:$(PATH)" ;\
Expand All @@ -503,7 +503,7 @@ hdf4.config: hdf4/README.txt jpeg.install zlib.install szlib.install
CFLAGS="$(CFLAGS) $(NO_IMPLICIT_FUNCTION_ERROR)" FFLAGS="$(NAG_FCFLAGS) $(NAG_DUSTY) $(ALLOW_ARGUMENT_MISMATCH)" CC=$(CC) FC=$(FC) CXX=$(CXX) )
touch $@

hdf5.config :: hdf5/README.md szlib.install zlib.install
hdf5.config :: hdf5/README.md szlib.install zlib-ng.install
echo Configuring hdf5
(cd hdf5; \
export PATH="$(prefix)/bin:$(PATH)" ;\
Expand Down Expand Up @@ -643,17 +643,17 @@ szlib.config : szlib.download szlib/configure
CFLAGS="$(CFLAGS)" CC=$(CC) CXX=$(CXX) FC=$(FC) )
@touch $@

zlib.config : zlib/configure
@echo Configuring zlib
@(cd zlib; \
zlib-ng.config : zlib-ng/configure
@echo Configuring zlib-ng
@(cd zlib-ng; \
export PATH="$(prefix)/bin:$(PATH)" ;\
./configure --prefix=$(prefix) \
./configure --zlib-compat --prefix=$(prefix) \
--includedir=$(prefix)/include/zlib \
--libdir=$(prefix)/lib )
touch $@


curl.config : curl/configure.ac zlib.install
curl.config : curl/configure.ac zlib-ng.install
@echo "Configuring curl"
@(cd curl; \
export PATH="$(prefix)/bin:$(PATH)" ;\
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NASA/GSFC.
| [antlr2](https://www.antlr2.org/) | 2.7.7 |
| [GSL](https://www.gnu.org/software/gsl/) | 2.7 |
| [jpeg](http://www.ijg.org/) | 9e |
| [zlib](http://www.zlib.net/) | 1.2.11 |
| [zlib-ng](https://github.com/zlib-ng/zlib-ng) | 2.0.6 |
| [szip](https://support.hdfgroup.org/doc_resource/SZIP/) | 2.1.1 |
| [cURL](https://curl.haxx.se/) | 7.83.1 |
| [UDUNITS2](https://github.com/Unidata/UDUNITS-2) | 2.2.26 |
Expand Down
8 changes: 4 additions & 4 deletions make_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ then
echo_version jpeg "$JPEG_VERSION" "$JPEG_VERSION_LOC"
fi

ZLIB_VERSION_LOC="zlib/zlib.h"
if [[ -e $ZLIB_VERSION_LOC ]]
ZLIBNG_VERSION_LOC="zlib-ng/zlib.h"
if [[ -e $ZLIBNG_VERSION_LOC ]]
then
ZLIB_VERSION=$(awk '/#define ZLIB_VERSION/ {print $3}' $ZLIB_VERSION_LOC | sed 's/"//g')
echo_version zlib "$ZLIB_VERSION" "$ZLIB_VERSION_LOC"
ZLIBNG_VERSION=$(awk '/#define ZLIBNG_VERSION/ {print $3}' $ZLIBNG_VERSION_LOC | sed 's/"//g')
echo_version zlib-ng "$ZLIBNG_VERSION" "$ZLIBNG_VERSION_LOC"
fi

SZLIB_VERSION_LOC="szlib/src/szlib.h"
Expand Down
1 change: 0 additions & 1 deletion zlib
Submodule zlib deleted from cacf7f
1 change: 1 addition & 0 deletions zlib-ng
Submodule zlib-ng added at b56a2f