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

Add zlib-ng 2.1.6, remove zlib #75

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
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 @@ -49,3 +46,6 @@
[submodule "fortran_udunits2"]
path = fortran_udunits2
url = https://github.com/GMAO-SI-Team/fortran_udunits2.git
[submodule "zlib-ng"]
path = zlib-ng
url = https://github.com/zlib-ng/zlib-ng.git
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
### Fixed
### Changed
### Removed

- Remove zlib library

### Added

- zlib-ng 2.1.6

## [7.18.1] - 2024-02-08

### Fixed
Expand Down
18 changes: 9 additions & 9 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,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 fortran_udunits2 nco cdo nccmp esmf xgboost \
GFE \
FLAP hdfeos hdfeos5 SDPToolkit
Expand All @@ -287,7 +287,7 @@ ifeq ($(findstring nvfortran,$(notdir $(FC))),nvfortran)
ALLDIRS := $(filter-out $(NO_NVHPC_DIRS),$(ALLDIRS))
endif

ESSENTIAL_DIRS = jpeg zlib szlib hdf4 hdf5 netcdf netcdf-fortran \
ESSENTIAL_DIRS = jpeg zlib-ng szlib hdf4 hdf5 netcdf netcdf-fortran \
udunits2 fortran_udunits2 esmf GFE

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

hdf4.config: hdf4/README.md jpeg.install zlib.install szlib.install
hdf4.config: hdf4/README.md jpeg.install zlib-ng.install szlib.install
@echo Configuring hdf4
@(cd hdf4; \
export PATH="$(prefix)/bin:$(PATH)" ;\
Expand All @@ -537,7 +537,7 @@ hdf4.config: hdf4/README.md jpeg.install zlib.install szlib.install
CFLAGS="$(CFLAGS) $(NO_IMPLICIT_FUNCTION_ERROR) $(NO_IMPLICIT_INT_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 @@ -683,17 +683,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.3.1 |
| [zlib-ng](https://github.com/zlib-ng/zlib-ng) | 2.1.6 |
| [szip](https://support.hdfgroup.org/doc_resource/SZIP/) | 2.1.1 |
| [cURL](https://curl.haxx.se/) | 8.6.0 |
| [UDUNITS2](https://github.com/GMAO-SI-Team/UDUNITS-2.git) | 2.2.28 |
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 51b7f2
1 change: 1 addition & 0 deletions zlib-ng
Submodule zlib-ng added at 742537