mirror of https://git.wownero.com/dsc/mxe.git
libarchive: use nettle instead of bcrypt for CNG(Crypto Next Generation)
fixes #1876 closes #1877
This commit is contained in:
parent
a31891146d
commit
909c82b99e
|
@ -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 <kientzle@acm.org>
|
||||
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 <Bcrypt.h>
|
||||
+#include <bcrypt.h>
|
||||
|
||||
/* Common in other bcrypt implementations, but missing from VS2008. */
|
||||
#ifndef BCRYPT_SUCCESS
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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=
|
||||
|
|
Loading…
Reference in New Issue