Skip to content

Commit

Permalink
ZlibNG: Update to 2.1.6 (JuliaPackaging#8007)
Browse files Browse the repository at this point in the history
* ZlibNG: Update to 2.1.6

* ZlibNG: Correct build error on Power
  • Loading branch information
eschnett authored and grasph committed Jul 1, 2024
1 parent 1eef686 commit 2915ecb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Z/ZlibNG/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
using BinaryBuilder, Pkg

name = "ZlibNG"
version = v"2.1.0"
version = v"2.1.6"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/zlib-ng/zlib-ng.git", "b3dcf11b4204a16fde71fa8224d7b7054e225b93")
GitSource("https://github.com/zlib-ng/zlib-ng.git", "74253725f884e2424a0dd8ae3f69896d5377f325"),
DirectorySource("bundled"),
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/zlib-ng
# Correct Power build (see <https://github.com/zlib-ng/zlib-ng/issues/1648>)
atomic_patch -p1 ${WORKSPACE}/srcdir/patches/power.patch
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
Expand Down
12 changes: 12 additions & 0 deletions Z/ZlibNG/bundled/patches/power.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/arch/power/power_features.c b/arch/power/power_features.c
index 35145177..a5c0a470 100644
--- a/arch/power/power_features.c
+++ b/arch/power/power_features.c
@@ -7,6 +7,7 @@
#ifdef HAVE_SYS_AUXV_H
# include <sys/auxv.h>
#endif
+#include <linux/auxvec.h>
#ifdef __FreeBSD__
# include <machine/cpu.h>
#endif

0 comments on commit 2915ecb

Please sign in to comment.