sendmail: fix build on hosts with Berkley DB installed
authorAleksey Vasilenko <[email protected]>
Tue, 23 Sep 2025 05:41:56 +0000 (08:41 +0300)
committerWesley Gimenes <[email protected]>
Wed, 24 Sep 2025 04:11:42 +0000 (01:11 -0300)
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 <[email protected]>
mail/sendmail/Makefile
mail/sendmail/files/site.OpenWrt.m4

index a7f5c61587e949904d80e3400ef4f2cadbf92c2e..d124420c01c4d5edf0661035b0a127ce1b83caa0 100644 (file)
@@ -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 <[email protected]>
 
index 9c485e493ac0e0f89138e315ec6cbd06b7abccce..07734fb76f979c6f5fba9905646e943ff23ea388 100644 (file)
@@ -1,5 +1,5 @@
 define(`confCC', `TARGET_CC')
 define(`confCCOPTS', `TARGET_CFLAGS')
 APPENDDEF(`confENVDEF',`-DSTARTTLS')
+APPENDDEF(`confENVDEF',`-DHASFLOCK')
 APPENDDEF(`confLIBS', `-lssl -lcrypto')
-