From 703f10bc2e5f01879026a09cce3a74ed9821d945 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 3 May 2016 04:06:03 -0400 Subject: [PATCH] libarchive: Update from 3.1.2 to 3.2.0 --- packages/libarchive/archive.h.patch | 15 +++++++++++ packages/libarchive/archive_entry.h.patch | 15 +++++++++++ .../archive_write_set_format_zip.c.patch | 26 +++++++++---------- packages/libarchive/build.sh | 4 +-- 4 files changed, 44 insertions(+), 16 deletions(-) create mode 100644 packages/libarchive/archive.h.patch create mode 100644 packages/libarchive/archive_entry.h.patch diff --git a/packages/libarchive/archive.h.patch b/packages/libarchive/archive.h.patch new file mode 100644 index 000000000..fff33a86f --- /dev/null +++ b/packages/libarchive/archive.h.patch @@ -0,0 +1,15 @@ +diff -u -r ../libarchive-3.2.0/libarchive/archive.h ./libarchive/archive.h +--- ../libarchive-3.2.0/libarchive/archive.h 2016-04-30 00:44:07.000000000 -0400 ++++ ./libarchive/archive.h 2016-05-02 19:58:33.742590137 -0400 +@@ -96,11 +96,6 @@ + # endif + #endif + +-/* Large file support for Android */ +-#ifdef __ANDROID__ +-#include "android_lf.h" +-#endif +- + /* + * On Windows, define LIBARCHIVE_STATIC if you're building or using a + * .lib. The default here assumes you're building a DLL. Only diff --git a/packages/libarchive/archive_entry.h.patch b/packages/libarchive/archive_entry.h.patch new file mode 100644 index 000000000..38a99044a --- /dev/null +++ b/packages/libarchive/archive_entry.h.patch @@ -0,0 +1,15 @@ +diff -u -r ../libarchive-3.2.0/libarchive/archive_entry.h ./libarchive/archive_entry.h +--- ../libarchive-3.2.0/libarchive/archive_entry.h 2016-04-30 00:44:07.000000000 -0400 ++++ ./libarchive/archive_entry.h 2016-05-02 19:58:22.878678982 -0400 +@@ -75,11 +75,6 @@ + # define __LA_MODE_T mode_t + #endif + +-/* Large file support for Android */ +-#ifdef __ANDROID__ +-#include "android_lf.h" +-#endif +- + /* + * On Windows, define LIBARCHIVE_STATIC if you're building or using a + * .lib. The default here assumes you're building a DLL. Only diff --git a/packages/libarchive/archive_write_set_format_zip.c.patch b/packages/libarchive/archive_write_set_format_zip.c.patch index 490072be5..8d19fa6da 100644 --- a/packages/libarchive/archive_write_set_format_zip.c.patch +++ b/packages/libarchive/archive_write_set_format_zip.c.patch @@ -1,15 +1,15 @@ -diff -u -r ../libarchive-3.1.2/libarchive/archive_write_set_format_zip.c ./libarchive/archive_write_set_format_zip.c ---- ../libarchive-3.1.2/libarchive/archive_write_set_format_zip.c 2013-01-14 02:43:45.000000000 +0100 -+++ ./libarchive/archive_write_set_format_zip.c 2014-07-15 19:11:00.070843621 +0200 -@@ -413,7 +413,10 @@ +diff -u -r ../libarchive-3.2.0/libarchive/archive_write_set_format_zip.c ./libarchive/archive_write_set_format_zip.c +--- ../libarchive-3.2.0/libarchive/archive_write_set_format_zip.c 2016-01-01 17:18:57.000000000 -0500 ++++ ./libarchive/archive_write_set_format_zip.c 2016-05-02 20:09:52.331542213 -0400 +@@ -651,10 +651,8 @@ if (strcmp(archive_string_conversion_charset_name( - zip->opt_sconv), "UTF-8") == 0) - zip->flags |= ZIP_FLAGS_UTF8_NAME; + zip->opt_sconv), "UTF-8") == 0) + zip->entry_flags |= ZIP_ENTRY_FLAG_UTF8_NAME; -#if HAVE_NL_LANGINFO -+#ifdef __ANDROID__ -+ } else if (1) { -+ zip->flags |= ZIP_FLAGS_UTF8_NAME; -+#elif HAVE_NL_LANGINFO - } else if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) { - zip->flags |= ZIP_FLAGS_UTF8_NAME; - #endif +- } else if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) { ++ } else { + zip->entry_flags |= ZIP_ENTRY_FLAG_UTF8_NAME; +-#endif + } + } + filename_length = path_length(zip->entry); diff --git a/packages/libarchive/build.sh b/packages/libarchive/build.sh index 1c1ff2ae7..221ecbbd1 100644 --- a/packages/libarchive/build.sh +++ b/packages/libarchive/build.sh @@ -1,9 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://www.libarchive.org/ TERMUX_PKG_DESCRIPTION="Multi-format archive and compression library" -TERMUX_PKG_VERSION=3.1.2 -TERMUX_PKG_BUILD_REVISION=3 +TERMUX_PKG_VERSION=3.2.0 TERMUX_PKG_SRCURL=http://www.libarchive.org/downloads/libarchive-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_DEPENDS="libbz2, liblzma, libxml2, openssl" # --without-nettle to use openssl instead: