From a79db5d81cdb1d92d760efabe0c871afca4a09ac Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Sun, 25 Jan 2026 11:05:43 -0500 Subject: [PATCH] mailsend: fix ssl variant to use opensssl As described in #28261 Not compiled with OpenSSL, the SSL variant of the mailsend package is not actually being compiled with OpenSSL. This is due to an upstream configure check borrowed from an ancient version of BIND, which no longer works. As a workaround we add `-DHAVE_OPENSSL=1` to the `TARGET_CFLAGS` when building the SSL variant. This results in a complaint about COPTS not being honoured correctly, but results in `mailsend` compiled with OpenSSL (i.e. works). Signed-off-by: Daniel F. Dickinson (cherry picked from commit 444b62cbccf13492096fc0216d661f2ccf47f069) --- mail/mailsend/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mail/mailsend/Makefile b/mail/mailsend/Makefile index a893c7a64f..aace9b4008 100644 --- a/mail/mailsend/Makefile +++ b/mail/mailsend/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mailsend PKG_VERSION:=1.19 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/muquit/mailsend/archive/$(PKG_VERSION) @@ -66,6 +66,10 @@ TARGET_CFLAGS += \ -DSTDC_HEADERS \ -DTIME_WITH_SYS_TIME +ifeq ($(BUILD_VARIANT),ssl) +TARGET_CFLAGS += "-DHAVE_OPENSSL=1" +endif + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) DEFS="$(TARGET_CFLAGS)" endef