Package: mtd-utils Severity: wishlist mtd-utils can be built with AES support. As OpenSSL cannot be used for license reasons, compile with wolfSSL's OpenSSL compatibility layer.
From 1d226f5bd2929ceef6df9a327a1cf492984e2a3b Mon Sep 17 00:00:00 2001 From: Bastian Germann <bastiangerm...@fishpost.de> Date: Tue, 12 May 2020 00:05:55 +0200 Subject: [PATCH] Add AES support via wolfSSL
--- debian/control | 2 +- debian/patches/check-for-wolfssl.patch | 22 ++++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 2 ++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 debian/patches/check-for-wolfssl.patch diff --git a/debian/control b/debian/control index 5d296b5..1a8dca7 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: mtd-utils Section: utils Priority: optional Maintainer: Riku Voipio <riku.voi...@linaro.org> -Build-Depends: debhelper (>= 9), pkg-config, dh-autoreconf, dh-exec (>= 0.3), zlib1g-dev, libacl1-dev, libcmocka-dev <!nocheck>, liblzo2-dev, uuid-dev, libzstd-dev +Build-Depends: debhelper (>= 9), pkg-config, dh-autoreconf, dh-exec (>= 0.3), zlib1g-dev, libacl1-dev, libcmocka-dev <!nocheck>, liblzo2-dev, uuid-dev, libwolfssl-dev (>= 4.4), libzstd-dev Build-Conflicts: libssl-dev Standards-Version: 4.3.0 Homepage: http://www.linux-mtd.infradead.org/ diff --git a/debian/patches/check-for-wolfssl.patch b/debian/patches/check-for-wolfssl.patch new file mode 100644 index 0000000..1c90b6f --- /dev/null +++ b/debian/patches/check-for-wolfssl.patch @@ -0,0 +1,22 @@ +From 72e050136fc2ad363f67e082be3ab91902a15c3e Mon Sep 17 00:00:00 2001 +From: Bastian Germann <bastiangerm...@fishpost.de> +Date: Mon, 11 May 2020 22:03:33 +0200 +Subject: [PATCH] Check for wolfSSL + +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 1b97ff6..1061c33 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -252,7 +252,7 @@ fi + + if test "x$need_openssl" = "xyes"; then + AC_CHECK_HEADER(openssl/rand.h) +- PKG_CHECK_MODULES(OPENSSL, [openssl], [], [openssl_missing="yes"]) ++ PKG_CHECK_MODULES(OPENSSL, [wolfssl], [], [openssl_missing="yes"]) + fi + + if test "x$need_cmocka" = "xyes"; then diff --git a/debian/patches/series b/debian/patches/series index 2b16aae..bf09369 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ +check-for-wolfssl.patch libubigen-remove-unnecessary-include.patch libubi-remove-private-kernel-header.patch diff --git a/debian/rules b/debian/rules index 14b0bb2..9b8da76 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,6 @@ #!/usr/bin/make -f +export DEB_CPPFLAGS_MAINT_APPEND=-I/usr/include/wolfssl + %: dh $@ --parallel --with autoreconf -- 2.26.2