Skip to content

Commit

Permalink
(conan-io#20708) c-bllosc2: update zlib-ng, fix compilation errors wi…
Browse files Browse the repository at this point in the history
…th with_zlib=zlib-ng
  • Loading branch information
toge authored Oct 24, 2023
1 parent b6094c2 commit 77b4e50
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion recipes/c-blosc2/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def requirements(self):
if self.options.with_lz4:
self.requires("lz4/1.9.4")
if self.options.with_zlib in ["zlib-ng", "zlib-ng-compat"]:
self.requires("zlib-ng/2.1.3")
self.requires("zlib-ng/2.1.4")
elif self.options.with_zlib == "zlib":
self.requires("zlib/[>=1.2.11 <2]")
if self.options.with_zstd:
Expand Down
10 changes: 5 additions & 5 deletions recipes/c-blosc2/all/patches/2.10.0-0001-fix-cmake.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ index 85d1e03..00e6cad 100644
if(PREFER_EXTERNAL_ZLIB)
- find_package(ZLIB_NG)
- if(ZLIB_NG_FOUND)
+ find_package(zlib_ng)
+ if(zlib_ng_FOUND)
+ find_package(zlib-ng)
+ if(zlib-ng_FOUND)
set(HAVE_ZLIB_NG TRUE)
else()
find_package(ZLIB)
endif()

- if(NOT (ZLIB_NG_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib_ng_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib-ng_FOUND OR ZLIB_FOUND))
message(STATUS "No ZLIB found. Using ZLIB-NG internal sources.")
endif()
endif()
Expand Down Expand Up @@ -88,8 +88,8 @@ index a6d566d..ba65bae 100644
if(NOT DEACTIVATE_ZLIB)
- if(ZLIB_NG_FOUND)
- set(LIBS ${LIBS} ${ZLIB_NG_LIBRARY})
+ if(zlib_ng_FOUND)
+ set(LIBS ${LIBS} ${zlib_ng_LIBRARIES})
+ if(zlib-ng_FOUND)
+ set(LIBS ${LIBS} ${zlib-ng_LIBRARIES})
elseif(ZLIB_FOUND)
set(LIBS ${LIBS} ${ZLIB_LIBRARIES})
else()
Expand Down
10 changes: 5 additions & 5 deletions recipes/c-blosc2/all/patches/2.10.2-0001-fix-cmake.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ index 4b4fc6a..79d61da 100644
if(PREFER_EXTERNAL_ZLIB)
- find_package(ZLIB_NG)
- if(ZLIB_NG_FOUND)
+ find_package(zlib_ng)
+ if(zlib_ng_FOUND)
+ find_package(zlib-ng)
+ if(zlib-ng_FOUND)
set(HAVE_ZLIB_NG TRUE)
else()
find_package(ZLIB)
endif()

- if(NOT (ZLIB_NG_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib_ng_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib-ng_FOUND OR ZLIB_FOUND))
message(STATUS "No ZLIB found. Using ZLIB-NG internal sources.")
endif()
endif()
Expand Down Expand Up @@ -112,8 +112,8 @@ index b44b710..681705e 100644
if(NOT DEACTIVATE_ZLIB)
- if(ZLIB_NG_FOUND)
- set(LIBS ${LIBS} ${ZLIB_NG_LIBRARY})
+ if(zlib_ng_FOUND)
+ set(LIBS ${LIBS} ${zlib_ng_LIBRARIES})
+ if(zlib-ng_FOUND)
+ set(LIBS ${LIBS} ${zlib-ng_LIBRARIES})
elseif(ZLIB_FOUND)
set(LIBS ${LIBS} ${ZLIB_LIBRARIES})
else()
Expand Down
10 changes: 5 additions & 5 deletions recipes/c-blosc2/all/patches/2.10.5-0001-fix-cmake.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ index 19e203a..aa6ccdd 100644
if(PREFER_EXTERNAL_ZLIB)
- find_package(ZLIB_NG)
- if(ZLIB_NG_FOUND)
+ find_package(zlib_ng)
+ if(zlib_ng_FOUND)
+ find_package(zlib-ng)
+ if(zlib-ng_FOUND)
set(HAVE_ZLIB_NG TRUE)
else()
find_package(ZLIB)
endif()

- if(NOT (ZLIB_NG_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib_ng_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib-ng_FOUND OR ZLIB_FOUND))
message(STATUS "No ZLIB found. Using ZLIB-NG internal sources.")
endif()
endif()
Expand Down Expand Up @@ -111,8 +111,8 @@ index 8c7cf90..f7efbf5 100644
if(NOT DEACTIVATE_ZLIB)
- if(ZLIB_NG_FOUND)
- set(LIBS ${LIBS} ${ZLIB_NG_LIBRARY})
+ if(zlib_ng_FOUND)
+ set(LIBS ${LIBS} ${zlib_ng_LIBRARIES})
+ if(zlib-ng_FOUND)
+ set(LIBS ${LIBS} ${zlib-ng_LIBRARIES})
elseif(ZLIB_FOUND)
set(LIBS ${LIBS} ${ZLIB_LIBRARIES})
else()
Expand Down
14 changes: 7 additions & 7 deletions recipes/c-blosc2/all/patches/2.8.0-0001-fix-cmake.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ index bb7882f..92ac61c 100644
if(PREFER_EXTERNAL_ZLIB)
- find_package(ZLIB_NG)
- if(ZLIB_NG_FOUND)
+ find_package(zlib_ng)
+ if(zlib_ng_FOUND)
+ find_package(zlib-ng)
+ if(zlib-ng_FOUND)
set(HAVE_ZLIB_NG TRUE)
else()
find_package(ZLIB)
endif()

- if(NOT (ZLIB_NG_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib_ng_FOUND OR ZLIB_FOUND))
+ if(NOT (zlib-ng_FOUND OR ZLIB_FOUND))
message(STATUS "No ZLIB found. Using ZLIB-NG internal sources.")
endif()
endif()
Expand Down Expand Up @@ -65,8 +65,8 @@ index 365de33..74ed32e 100644
if(NOT DEACTIVATE_ZLIB)
- if(ZLIB_NG_FOUND)
- set(BLOSC_INCLUDE_DIRS ${BLOSC_INCLUDE_DIRS} ${ZLIB_NG_INCLUDE_DIR})
+ if(zlib_ng_FOUND)
+ set(BLOSC_INCLUDE_DIRS ${BLOSC_INCLUDE_DIRS} ${zlib_ng_INCLUDE_DIR})
+ if(zlib-ng_FOUND)
+ set(BLOSC_INCLUDE_DIRS ${BLOSC_INCLUDE_DIRS} ${zlib-ng_INCLUDE_DIR})
elseif(ZLIB_FOUND)
set(BLOSC_INCLUDE_DIRS ${BLOSC_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR})
else()
Expand Down Expand Up @@ -98,8 +98,8 @@ index 365de33..74ed32e 100644
if(NOT DEACTIVATE_ZLIB)
- if(ZLIB_NG_FOUND)
- set(LIBS ${LIBS} ${ZLIB_NG_LIBRARY})
+ if(zlib_ng_FOUND)
+ set(LIBS ${LIBS} ${zlib_ng_LIBRARY})
+ if(zlib-ng_FOUND)
+ set(LIBS ${LIBS} ${zlib-ng_LIBRARY})
elseif(ZLIB_FOUND)
- set(LIBS ${LIBS} ${ZLIB_LIBRARY})
+ set(LIBS ${LIBS} ${ZLIB_LIBRARIES})
Expand Down

0 comments on commit 77b4e50

Please sign in to comment.