Package: muchsync
Severity: serious

This package links to OpenSSL even though it does not have any license
exception for it. ftp-master considers this a serious issue. Please
replace libssl with a GPL compatible library. I successfully compiled
with libwolfssl which has an OpenSSL API compatibility layer. A patch is
included.
>From b7c366c5b06982fe94242780da844d5f9adaa497 Mon Sep 17 00:00:00 2001
From: Bastian Germann <[email protected]>
Date: Sat, 22 Feb 2020 12:21:16 +0100
Subject: [PATCH] Replace OpenSSL with wolfSSL


diff --git a/debian/control b/debian/control
index 05d60c4..b8b1523 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: muchsync
 Section: mail
 Priority: optional
 Maintainer: RĂ©mi Vanicat <[email protected]>
-Build-Depends: debhelper (>=9), dh-autoreconf, pkg-config, libnotmuch-dev, libsqlite3-dev, libxapian-dev, libssl-dev
+Build-Depends: debhelper (>=9), dh-autoreconf, pkg-config, libnotmuch-dev, libsqlite3-dev, libxapian-dev, libwolfssl-dev
 Standards-Version: 4.1.3
 Homepage: http://www.muchsync.org/
 
diff --git a/debian/patches/link-with-wolfssl-instead-of-libcrypto.patch b/debian/patches/link-with-wolfssl-instead-of-libcrypto.patch
new file mode 100644
index 0000000..da77d07
--- /dev/null
+++ b/debian/patches/link-with-wolfssl-instead-of-libcrypto.patch
@@ -0,0 +1,23 @@
+Subject: [PATCH] Link with wolfssl instead of libcrypto
+From: Bastian Germann <[email protected]>
+Last-Update: 2020-02-22
+
+muchsync is GPL-2+ licensed and incompatible with linking against OpenSSL.
+Link with the drop-in replacement wolfSSL instead.
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff -u a/configure.ac b/configure.ac
+index 9533bff..5878ab1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,7 +22,7 @@ AC_CHECK_FUNCS(openat)
+ AC_CHECK_FUNCS(fdopendir)
+ 
+ PKG_CHECK_MODULES([sqlite3], [sqlite3])
+-PKG_CHECK_MODULES([libcrypto], [libcrypto])
++PKG_CHECK_MODULES([libcrypto], [wolfssl])
+ 
+ AC_PATH_PROG(XAPIAN_CONFIG, xapian-config)
+ test -n "$XAPIAN_CONFIG" || AC_MSG_ERROR(Cannot find xapian-config)
diff --git a/debian/patches/series b/debian/patches/series
index 4a97dfa..8b85707 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-# You must remove unused comment lines for the released package.
+link-with-wolfssl-instead-of-libcrypto.patch
diff --git a/debian/rules b/debian/rules
index 16d6d38..6a05fac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,5 @@
 #!/usr/bin/make -f
-# You must remove unused comment lines for the released package.
+export DEB_CPPFLAGS_MAINT_APPEND=-I/usr/include/wolfssl
 
 %:
 	dh $@ --with autoreconf 

Reply via email to