diff options
author | brooks <brooks@FreeBSD.org> | 2018-03-03 06:34:53 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2018-03-03 06:34:53 +0800 |
commit | 2770369de4372bb3b959b5e3eed35f5457e3f815 (patch) | |
tree | 74598255802a1be780cec8e6fed3805dd3777ae6 /mail | |
parent | 7c39fc5b64d6f513d4378960f349476dbd662ed6 (diff) | |
download | freebsd-ports-gnome-2770369de4372bb3b959b5e3eed35f5457e3f815.tar.gz freebsd-ports-gnome-2770369de4372bb3b959b5e3eed35f5457e3f815.tar.zst freebsd-ports-gnome-2770369de4372bb3b959b5e3eed35f5457e3f815.zip |
Work around the lack of definition of union semun per POSIX.
When feasible do this by adding -D_WANT_SEMUN to CFLAGS or CXXFLAGS.
Where this fails due to ports not honoring C*FLAGS, patch using
__FreeBSD_version to enable the definition.
PR: 224300, 224443 (exp-run)
Approved by: portmgr (antoine)
Exp-run: antoine
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14137
Diffstat (limited to 'mail')
5 files changed, 57 insertions, 0 deletions
diff --git a/mail/batv-milter/Makefile b/mail/batv-milter/Makefile index 4b47d3bda8bd..056bb96ae3b6 100644 --- a/mail/batv-milter/Makefile +++ b/mail/batv-milter/Makefile @@ -18,6 +18,7 @@ USES= uidfix ssl USE_RC_SUBR= milter-batv MAKE_ARGS= UBINOWN=${UID} UBINGRP=${GID} +CFLAGS+= -D_WANT_SEMUN WCONF= ${WRKSRC}/devtools/Site PLIST_FILES= bin/batv-filter man/man8/batv-filter.8.gz diff --git a/mail/batv-milter/files/patch-include_sm_os_sm__os__freebsd.h b/mail/batv-milter/files/patch-include_sm_os_sm__os__freebsd.h new file mode 100644 index 000000000000..427c6d1c3a15 --- /dev/null +++ b/mail/batv-milter/files/patch-include_sm_os_sm__os__freebsd.h @@ -0,0 +1,14 @@ +--- include/sm/os/sm_os_freebsd.h.orig ++++ include/sm/os/sm_os_freebsd.h +@@ -34,7 +34,11 @@ + # define SM_CONF_SHM 1 + #endif /* SM_CONF_SHM */ + #ifndef SM_CONF_SEM ++#if __FreeBSD_version < 1200059 + # define SM_CONF_SEM 1 ++#else ++# define SM_CONF_SEM 2 ++#endif + #endif /* SM_CONF_SEM */ + #ifndef SM_CONF_MSG + # define SM_CONF_MSG 1 diff --git a/mail/dk-milter/files/patch-include_sm_os_sm__os__freebsd.h b/mail/dk-milter/files/patch-include_sm_os_sm__os__freebsd.h new file mode 100644 index 000000000000..427c6d1c3a15 --- /dev/null +++ b/mail/dk-milter/files/patch-include_sm_os_sm__os__freebsd.h @@ -0,0 +1,14 @@ +--- include/sm/os/sm_os_freebsd.h.orig ++++ include/sm/os/sm_os_freebsd.h +@@ -34,7 +34,11 @@ + # define SM_CONF_SHM 1 + #endif /* SM_CONF_SHM */ + #ifndef SM_CONF_SEM ++#if __FreeBSD_version < 1200059 + # define SM_CONF_SEM 1 ++#else ++# define SM_CONF_SEM 2 ++#endif + #endif /* SM_CONF_SEM */ + #ifndef SM_CONF_MSG + # define SM_CONF_MSG 1 diff --git a/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h b/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h new file mode 100644 index 000000000000..427c6d1c3a15 --- /dev/null +++ b/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h @@ -0,0 +1,14 @@ +--- include/sm/os/sm_os_freebsd.h.orig ++++ include/sm/os/sm_os_freebsd.h +@@ -34,7 +34,11 @@ + # define SM_CONF_SHM 1 + #endif /* SM_CONF_SHM */ + #ifndef SM_CONF_SEM ++#if __FreeBSD_version < 1200059 + # define SM_CONF_SEM 1 ++#else ++# define SM_CONF_SEM 2 ++#endif + #endif /* SM_CONF_SEM */ + #ifndef SM_CONF_MSG + # define SM_CONF_MSG 1 diff --git a/mail/sid-milter/files/patch-include_sm_os_sm__os__freebsd.h b/mail/sid-milter/files/patch-include_sm_os_sm__os__freebsd.h new file mode 100644 index 000000000000..427c6d1c3a15 --- /dev/null +++ b/mail/sid-milter/files/patch-include_sm_os_sm__os__freebsd.h @@ -0,0 +1,14 @@ +--- include/sm/os/sm_os_freebsd.h.orig ++++ include/sm/os/sm_os_freebsd.h +@@ -34,7 +34,11 @@ + # define SM_CONF_SHM 1 + #endif /* SM_CONF_SHM */ + #ifndef SM_CONF_SEM ++#if __FreeBSD_version < 1200059 + # define SM_CONF_SEM 1 ++#else ++# define SM_CONF_SEM 2 ++#endif + #endif /* SM_CONF_SEM */ + #ifndef SM_CONF_MSG + # define SM_CONF_MSG 1 |