Skip to content

Commit

Permalink
print miniz version correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tpimh committed Jul 31, 2018
1 parent 8e47fff commit e2a5ac9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libarchive/opkg/miniz-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/libarchive/archive_version_details.c.orig
+++ b/libarchive/archive_version_details.c
@@ -65,7 +65,11 @@

archive_strcat(&str, ARCHIVE_VERSION_STRING);
if (zlib != NULL) {
+#ifdef MZ_VERSION
+ archive_strcat(&str, " miniz/");
+#else
archive_strcat(&str, " zlib/");
+#endif
archive_strcat(&str, zlib);
}
if (liblzma) {
1 change: 1 addition & 0 deletions libarchive/opkg/rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ case "$1" in
build)
patch -p1 < opkg/libressl-fix.patch
patch -p1 < opkg/miniz-support.patch
patch -p1 < opkg/miniz-version.patch
rm -rf build-ninja
cmake -Bbuild-ninja -H. -GNinja -DCMAKE_INSTALL_PREFIX="" -DBUILD_SHARED_LIBS=ON -DCMAKE_SYSROOT=/x86_64-pc-linux-musl -DENABLE_CAT_SHARED=ON -DENABLE_CPIO_SHARED=ON -DENABLE_TAR_SHARED=ON
ninja -Cbuild-ninja -j1
Expand Down

0 comments on commit e2a5ac9

Please sign in to comment.