From: Aleksey Vasilenko Date: Tue, 23 Sep 2025 05:41:56 +0000 (+0300) Subject: sendmail: fix build on hosts with Berkley DB installed X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d84ce3454aa0453e1462d99e1cd98a46820c707b;p=feed%2Fpackages.git sendmail: fix build on hosts with Berkley DB installed Buildbot caught an error: "Berkeley DB file locking needs flock() for version 5.x (and greater?)" It is caused by leakage of host-installed Berkley DB into the build. Since libmilter is not using the DB and because of convoluted build process of sendmail, we do the workaround - define a macro which prevents the error without affecting libmilter binary. Also change source URL from FTP to HTTPS. Signed-off-by: Aleksey Vasilenko --- diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index a7f5c61587..d124420c01 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/Makefile @@ -8,10 +8,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sendmail PKG_VERSION:=8.18.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=ftp://ftp.sendmail.org/pub/sendmail +PKG_SOURCE_URL:=https://ftp.sendmail.org PKG_HASH:=cbf1f309c38e4806f7cf3ead24260f17d1fe8fb63256d13edb3cdd1a098f0770 PKG_MAINTAINER:=W. Michael Petullo diff --git a/mail/sendmail/files/site.OpenWrt.m4 b/mail/sendmail/files/site.OpenWrt.m4 index 9c485e493a..07734fb76f 100644 --- a/mail/sendmail/files/site.OpenWrt.m4 +++ b/mail/sendmail/files/site.OpenWrt.m4 @@ -1,5 +1,5 @@ define(`confCC', `TARGET_CC') define(`confCCOPTS', `TARGET_CFLAGS') APPENDDEF(`confENVDEF',`-DSTARTTLS') +APPENDDEF(`confENVDEF',`-DHASFLOCK') APPENDDEF(`confLIBS', `-lssl -lcrypto') -