pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/libopensmtpd
Module Name: pkgsrc
Committed By: vins
Date: Tue Sep 5 13:22:43 UTC 2023
Modified Files:
pkgsrc/devel/libopensmtpd: Makefile
Log Message:
libopensmtpd: enable backward-compatibility for OpenBSD funcs on Linux.
Required for glibc < 2.24, as it lacks reallocarray() and
explicit_bzero().
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/libopensmtpd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/libopensmtpd/Makefile
diff -u pkgsrc/devel/libopensmtpd/Makefile:1.2 pkgsrc/devel/libopensmtpd/Makefile:1.3
--- pkgsrc/devel/libopensmtpd/Makefile:1.2 Sun Sep 3 10:07:33 2023
+++ pkgsrc/devel/libopensmtpd/Makefile Tue Sep 5 13:22:43 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2023/09/03 10:07:33 vins Exp $
+# $NetBSD: Makefile,v 1.3 2023/09/05 13:22:43 vins Exp $
DISTNAME= libopensmtpd-0.7
CATEGORIES= devel mail
@@ -20,6 +20,14 @@ MAKE_ENV+= MANFORMAT=man
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Linux"
+SUBST_CLASSES+= defs
+SUBST_STAGE.defs= post-configure
+SUBST_FILES.defs+= iobuf.c ioev.c
+SUBST_SED.defs= -e 's|_BSD_SOURCE|_DEFAULT_SOURCE|'
+SUBST_MESSAGE.defs= Replacing deprecated preprocessor-defined macros.
+.endif
+
.if ${OPSYS} != "OpenBSD"
. if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} >= 051100
MAKE_ENV+= NEED_RECALLOCARRAY=0
@@ -33,6 +41,8 @@ MAKE_ENV.Darwin+= NEED_STRTONUM=1
MAKE_ENV.Linux+= NEED_STRLCAT=1
MAKE_ENV.Linux+= NEED_STRLCPY=1
MAKE_ENV.Linux+= NEED_STRTONUM=1
+MAKE_ENV.Linux+= NEED_EXPLICIT_BZERO=1
+MAKE_ENV.Linux+= NEED_REALLOCARRAY=1
INSTALL_ENV= INSTALL=${INSTALL:Q} LINK=${LN:Q}
INSTALLATION_DIRS+= include lib ${PKGMANDIR}/man3
Home |
Main Index |
Thread Index |
Old Index