From 909c82b99e98aac84cbc346ee263f574f564a6f8 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Sun, 13 Aug 2017 13:20:13 +1000 Subject: libarchive: use nettle instead of bcrypt for CNG(Crypto Next Generation) fixes #1876 closes #1877 --- src/libarchive-1-fixes.patch | 21 --------------------- src/libarchive-test.c | 4 ++++ src/libarchive.mk | 6 +++++- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/src/libarchive-1-fixes.patch b/src/libarchive-1-fixes.patch index 8d9423e..c77a7ac 100644 --- a/src/libarchive-1-fixes.patch +++ b/src/libarchive-1-fixes.patch @@ -19,24 +19,3 @@ index 1111111..2222222 100644 -Libs.private: @LIBS@ +Libs.private: @LIBS@ -liconv -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Tim Kientzle -Date: Sun, 16 Jul 2017 16:10:08 -0700 -Subject: [PATCH] Issue #924: fix capitalization of bcrypt.h header - -taken from: -https://github.com/libarchive/libarchive/commit/06052e47e500ef4c8c937c4c8b987433a647cb4c - -diff --git a/libarchive/archive_cryptor_private.h b/libarchive/archive_cryptor_private.h -index 1111111..2222222 100644 ---- a/libarchive/archive_cryptor_private.h -+++ b/libarchive/archive_cryptor_private.h -@@ -64,7 +64,7 @@ typedef struct { - } archive_crypto_ctx; - - #elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) --#include -+#include - - /* Common in other bcrypt implementations, but missing from VS2008. */ - #ifndef BCRYPT_SUCCESS diff --git a/src/libarchive-test.c b/src/libarchive-test.c index 65f87b3..df42857 100644 --- a/src/libarchive-test.c +++ b/src/libarchive-test.c @@ -7,6 +7,7 @@ int main(int argc, char *argv[]) { struct archive *tgz; + struct archive *zip; (void)argc; (void)argv; @@ -16,5 +17,8 @@ int main(int argc, char *argv[]) archive_write_set_format_ustar(tgz); archive_write_free(tgz); + zip = archive_read_new(); + archive_read_support_format_zip(zip); + return 0; } diff --git a/src/libarchive.mk b/src/libarchive.mk index 805a97e..2bafe73 100644 --- a/src/libarchive.mk +++ b/src/libarchive.mk @@ -9,7 +9,7 @@ $(PKG)_CHECKSUM := ed2dbd6954792b2c054ccf8ec4b330a54b85904a80cef477a1c74643ddafa $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := https://www.libarchive.org/downloads/$($(PKG)_FILE) -$(PKG)_DEPS := gcc bzip2 libiconv libxml2 openssl xz zlib +$(PKG)_DEPS := gcc bzip2 libiconv libxml2 nettle openssl xz zlib define $(PKG)_UPDATE $(WGET) -q -O- 'https://www.libarchive.org/downloads/' | \ @@ -22,11 +22,15 @@ define $(PKG)_BUILD $(if $(BUILD_STATIC),\ $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive.h' $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive_entry.h') + + # use nettle instead of bcrypt for CNG(Crypto Next Generation) cd '$(1)' && ./configure \ $(MXE_CONFIGURE_OPTS) \ --disable-bsdtar \ --disable-bsdcpio \ --disable-bsdcat \ + --without-cng \ + --with-nettle \ XML2_CONFIG='$(PREFIX)/$(TARGET)'/bin/xml2-config $(MAKE) -C '$(1)' -j '$(JOBS)' man_MANS= $(MAKE) -C '$(1)' -j 1 install man_MANS= -- cgit v0.12