From owner-svn-ports-head@freebsd.org Fri Mar 2 22:34:57 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0371FF28784; Fri, 2 Mar 2018 22:34:57 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9CE2A7D1CA; Fri, 2 Mar 2018 22:34:56 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8CFDC1D9C1; Fri, 2 Mar 2018 22:34:56 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w22MYuJi070343; Fri, 2 Mar 2018 22:34:56 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w22MYrYJ070311; Fri, 2 Mar 2018 22:34:53 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201803022234.w22MYrYJ070311@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Fri, 2 Mar 2018 22:34:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463452 - in head: audio/alsa-lib audio/gramofile audio/wavplay audio/xmcd audio/zinf benchmarks/super-smack databases/fastdb deskutils/fusenshi devel/ace devel/libmba devel/libshbuf de... X-SVN-Group: ports-head X-SVN-Commit-Author: brooks X-SVN-Commit-Paths: in head: audio/alsa-lib audio/gramofile audio/wavplay audio/xmcd audio/zinf benchmarks/super-smack databases/fastdb deskutils/fusenshi devel/ace devel/libmba devel/libshbuf devel/nspr devel/poco-ssl d... X-SVN-Commit-Revision: 463452 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 22:34:57 -0000 Author: brooks Date: Fri Mar 2 22:34:53 2018 New Revision: 463452 URL: https://svnweb.freebsd.org/changeset/ports/463452 Log: 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 Added: head/emulators/virtualbox-ose/files/patch-src_libs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c (contents, props changed) head/lang/cint/files/patch-cint_lib_ipc_ipcif.h (contents, props changed) head/mail/batv-milter/files/patch-include_sm_os_sm__os__freebsd.h (contents, props changed) head/mail/dk-milter/files/patch-include_sm_os_sm__os__freebsd.h (contents, props changed) head/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h (contents, props changed) head/mail/sid-milter/files/patch-include_sm_os_sm__os__freebsd.h (contents, props changed) head/www/mod_cband/files/patch-src_mod__cband.c (contents, props changed) Modified: head/audio/alsa-lib/Makefile head/audio/gramofile/Makefile head/audio/wavplay/Makefile head/audio/xmcd/Makefile head/audio/zinf/Makefile head/benchmarks/super-smack/Makefile head/databases/fastdb/Makefile head/deskutils/fusenshi/Makefile head/devel/ace/Makefile head/devel/libmba/Makefile head/devel/libshbuf/Makefile head/devel/nspr/Makefile head/devel/poco-ssl/Makefile head/devel/shmap/Makefile head/emulators/qemu-sbruno/Makefile head/ftp/gftp/Makefile head/lang/ferite/Makefile head/lang/rexx-regutil/Makefile head/mail/batv-milter/Makefile head/misc/buffer/Makefile head/multimedia/py-kaa-base/Makefile head/net-mgmt/sdig/Makefile head/net-p2p/monero-cli/Makefile head/sysutils/freeipmi/Makefile head/sysutils/symon/Makefile Modified: head/audio/alsa-lib/Makefile ============================================================================== --- head/audio/alsa-lib/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/audio/alsa-lib/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -23,6 +23,7 @@ INSTALL_TARGET= install-strip TEST_ENV= ${MAKE_ENV} ALSA_CONFIG_PATH="${FILESDIR}/asound.conf.sample" TEST_TARGET= check CPPFLAGS+= -I${FILESDIR} +CPPFLAGS+= -D_WANT_SEMUN OPTIONS_DEFINE= PYTHON OPTIONS_SUB= yes Modified: head/audio/gramofile/Makefile ============================================================================== --- head/audio/gramofile/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/audio/gramofile/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -22,6 +22,7 @@ USE_CSTD= gnu89 MAKE_ARGS= CC="${CC}" \ CXX="${CXX}" \ PERLCOREDIR=${PERLCOREDIR} +CFLAGS+= -D_WANT_SEMUN PERLCOREDIR= ${LOCALBASE}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE Modified: head/audio/wavplay/Makefile ============================================================================== --- head/audio/wavplay/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/audio/wavplay/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -13,6 +13,8 @@ COMMENT= Wav player and recorder LICENSE= GPLv2 # only LICENSE_FILE= ${WRKSRC}/COPYING +CFLAGS+= -D_WANT_SEMUN + ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 INSTALL_TARGET= install PREFIX="${STAGEDIR}${PREFIX}" Modified: head/audio/xmcd/Makefile ============================================================================== --- head/audio/xmcd/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/audio/xmcd/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -20,6 +20,8 @@ PLIST_SUB+= RELEASE=${OSREL:R:R} ARCH=${ARCH} OPSYS=${ SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message +CFLAGS+= -D_WANT_SEMUN + LIBBINDIR= ${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-${OPSYS}_${OSREL:R:R}-${ARCH} BROKEN_aarch64= Fails to compile: many undefined symbols in xorg.cf Modified: head/audio/zinf/Makefile ============================================================================== --- head/audio/zinf/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/audio/zinf/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -20,6 +20,7 @@ CONFIGURE_ARGS= --enable-ipv6 \ --disable-arts CPPFLAGS+= -I${LOCALBASE}/include +CPPFLAGS+= -D_WANT_SEMUN LDFLAGS+= -lpthread -L${LOCALBASE}/lib OPTIONS_DEFINE= ESOUND VORBIS Modified: head/benchmarks/super-smack/Makefile ============================================================================== --- head/benchmarks/super-smack/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/benchmarks/super-smack/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -15,6 +15,7 @@ LICENSE= GPLv2+ GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-smacks-dir=${DATADIR} MAKE_JOBS_UNSAFE= yes +CPPFLAGS+= -D_WANT_SEMUN PORTDOCS= CHANGES README MANUAL TUTORIAL Modified: head/databases/fastdb/Makefile ============================================================================== --- head/databases/fastdb/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/databases/fastdb/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -22,6 +22,7 @@ MAKE_ENV= OSTYPE="${OPSYS}" MAKEFILE= makefile USE_LDCONFIG= yes DOS2UNIX_FILES= ${MAKEFILE} +CXXFLAGS+= -D_WANT_SEMUN PORTDOCS= FastDB.htm Modified: head/deskutils/fusenshi/Makefile ============================================================================== --- head/deskutils/fusenshi/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/deskutils/fusenshi/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -15,6 +15,7 @@ USE_CXXSTD= c++11 USE_GNOME= gtkmm24 gtksourceview libxml2 USE_XORG= x11 MAKE_JOBS_UNSAFE= yes +CXXFLAGS+= -D_WANT_SEMUN .ifdef WITHOUT_SSL MAKE_ARGS+= WITHOUT_SSL=yes Modified: head/devel/ace/Makefile ============================================================================== --- head/devel/ace/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/devel/ace/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -27,6 +27,7 @@ MAKEFILE= GNUmakefile USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include +CPPFLAGS+= -D_WANT_SEMUN LDFLAGS+= -L${LOCALBASE}/lib PLIST_SUB= VERSION="${PORTVERSION}" Modified: head/devel/libmba/Makefile ============================================================================== --- head/devel/libmba/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/devel/libmba/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -14,6 +14,7 @@ COMMENT= Collection of C modules potentially useful to MAKE_JOBS_UNSAFE= yes USE_LDCONFIG= yes MAKE_ARGS= prefix="${STAGEDIR}${PREFIX}" +CFLAGS+= -D_WANT_SEMUN post-patch: @${REINPLACE_CMD} -e 's,-g,$$(CFLAGS),' \ Modified: head/devel/libshbuf/Makefile ============================================================================== --- head/devel/libshbuf/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/devel/libshbuf/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -16,5 +16,6 @@ USES= pathfix libtool GNU_CONFIGURE= yes CONFIGURE_ARGS+=--disable-lynx --disable-doxygen INSTALL_TARGET= install-strip +CFLAGS+= -D_WANT_SEMUN .include Modified: head/devel/nspr/Makefile ============================================================================== --- head/devel/nspr/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/devel/nspr/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -18,6 +18,7 @@ CPE_PRODUCT= netscape_portable_runtime WRKSRC_SUBDIR= nspr GNU_CONFIGURE= yes USE_LDCONFIG= yes +CFLAGS+= -D_WANT_SEMUN OPTIONS_DEFINE= DEBUG TEST Modified: head/devel/poco-ssl/Makefile ============================================================================== --- head/devel/poco-ssl/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/devel/poco-ssl/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -25,6 +25,7 @@ USES= gmake tar:bzip2 ssl HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} --config=FreeBSD USE_LDCONFIG= yes +CXXFLAGS+= -D_WANT_SEMUN OPTIONS_DEFINE= TEST SAMPLES MYSQL SQLITE ODBC OPTIONS_DEFAULT=MYSQL SQLITE Modified: head/devel/shmap/Makefile ============================================================================== --- head/devel/shmap/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/devel/shmap/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -17,6 +17,7 @@ GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib USE_LDCONFIG= yes +CPPFLAGS+= -D_WANT_SEMUN post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libshmap.so Modified: head/emulators/qemu-sbruno/Makefile ============================================================================== --- head/emulators/qemu-sbruno/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/emulators/qemu-sbruno/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -131,6 +131,7 @@ PLIST_SUB+= STATIC="" WITHOUT_CPU_CFLAGS=yes #to avoid problems with register allocation CFLAGS:= ${CFLAGS:C/-fno-tree-vrp//} CFLAGS+= -Wno-address-of-packed-member +CFLAGS+= -D_WANT_SEMUN CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC} --enable-docs \ --disable-linux-user --disable-linux-aio \ --disable-kvm --disable-xen \ Added: head/emulators/virtualbox-ose/files/patch-src_libs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src_libs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c Fri Mar 2 22:34:53 2018 (r463452) @@ -0,0 +1,22 @@ +--- src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c.orig ++++ src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c +@@ -49,6 +49,9 @@ + #include + #include + #include ++#ifdef FREEBSD ++#include ++#endif + + static pthread_mutexattr_t _pt_mattr; + static pthread_condattr_t _pt_cvar_attr; +@@ -798,7 +801,8 @@ + * From the semctl(2) man page in glibc 2.0 + */ + #if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \ +- || defined(FREEBSD) || defined(OPENBSD) || defined(BSDI) ++ || (defined(FREEBSD) && __FreeBSD_version < 1200059) \ ++ || defined(OPENBSD) || defined(BSDI) + /* union semun is defined by including */ + #else + /* according to X/OPEN we have to define it ourselves */ Modified: head/ftp/gftp/Makefile ============================================================================== --- head/ftp/gftp/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/ftp/gftp/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -15,6 +15,7 @@ LICENSE= GPLv2 USES= pathfix pkgconfig tar:bzip2 ssl GNU_CONFIGURE= yes USE_GNOME= glib20 gtk20 +CFLAGS+= -D_WANT_SEMUN OPTIONS_DEFINE= NLS OPTIONS_SUB= yes Added: head/lang/cint/files/patch-cint_lib_ipc_ipcif.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/cint/files/patch-cint_lib_ipc_ipcif.h Fri Mar 2 22:34:53 2018 (r463452) @@ -0,0 +1,20 @@ +--- cint/lib/ipc/ipcif.h.orig ++++ cint/lib/ipc/ipcif.h +@@ -28,13 +28,16 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #if defined(G__APPLE) || defined(__APPLE__) + /* union semun is defined by including */ + #elif defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) + /* union semun is defined by including */ + #else + /* according to X/OPEN we have to define it ourselves */ +-#if !defined(__FreeBSD__) && !defined(__KCC) && !defined(__sgi) ++#if (!defined(__FreeBSD__) || __FreeBSD_version >= 1200059) && !defined(__KCC) && !defined(__sgi) + union semun { + int val; /* value for SETVAL */ + struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */ Modified: head/lang/ferite/Makefile ============================================================================== --- head/lang/ferite/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/lang/ferite/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -23,6 +23,7 @@ LDFLAGS+= -lpthread -L${LOCALBASE}/lib USE_LDCONFIG= yes PLIST_SUB= MACHINE_ARCH=${MACHINE_ARCH} INSTALL_TARGET= install-strip +CFLAGS+= -D_WANT_SEMUN PORTDOCS= * Modified: head/lang/rexx-regutil/Makefile ============================================================================== --- head/lang/rexx-regutil/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/lang/rexx-regutil/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -24,6 +24,7 @@ USE_LDCONFIG= yes LLD_UNSAFE= yes # lld lacks built-in search paths MAKEFILE= Makefile.bsd MAKE_ARGS+= PLIBS="${LDFLAGS:M-L*} -lncurses" +CFLAGS+= -D_WANT_SEMUN SUB_FILES= regutil.1 Modified: head/mail/batv-milter/Makefile ============================================================================== --- head/mail/batv-milter/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/mail/batv-milter/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -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 Added: head/mail/batv-milter/files/patch-include_sm_os_sm__os__freebsd.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/batv-milter/files/patch-include_sm_os_sm__os__freebsd.h Fri Mar 2 22:34:53 2018 (r463452) @@ -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 Added: head/mail/dk-milter/files/patch-include_sm_os_sm__os__freebsd.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/dk-milter/files/patch-include_sm_os_sm__os__freebsd.h Fri Mar 2 22:34:53 2018 (r463452) @@ -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 Added: head/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h Fri Mar 2 22:34:53 2018 (r463452) @@ -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 Added: head/mail/sid-milter/files/patch-include_sm_os_sm__os__freebsd.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/sid-milter/files/patch-include_sm_os_sm__os__freebsd.h Fri Mar 2 22:34:53 2018 (r463452) @@ -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 Modified: head/misc/buffer/Makefile ============================================================================== --- head/misc/buffer/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/misc/buffer/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -13,6 +13,7 @@ COMMENT= Buffer sporadic I/O for faster tape and pipe USES= tar:tgz PLIST_FILES= bin/buffer \ man/man1/buffer.1.gz +CFLAGS+= -D_WANT_SEMUN post-patch: @${REINPLACE_CMD} -E \ Modified: head/multimedia/py-kaa-base/Makefile ============================================================================== --- head/multimedia/py-kaa-base/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/multimedia/py-kaa-base/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -18,5 +18,6 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} USES= python:2.7 USE_GNOME= glib20 USE_PYTHON= distutils autoplist +CFLAGS+= -D_WANT_SEMUN .include Modified: head/net-mgmt/sdig/Makefile ============================================================================== --- head/net-mgmt/sdig/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/net-mgmt/sdig/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -15,6 +15,7 @@ LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp USES= gmake GNU_CONFIGURE= yes +CFLAGS+= -D_WANT_SEMUN PLIST_FILES= bin/sdig etc/sdig.conf etc/mactable man/man5/sdig.conf.5.gz \ man/man8/sdig.8.gz Modified: head/net-p2p/monero-cli/Makefile ============================================================================== --- head/net-p2p/monero-cli/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/net-p2p/monero-cli/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -30,6 +30,7 @@ USES= cmake compiler:c++11-lib pkgconfig readline ssl USE_GITHUB= yes GH_ACCOUNT= monero-project GH_PROJECT= monero +CFLAGS+= -D_WANT_SEMUN OPTIONS_DEFINE= DOXYGEN DOXYGEN_BUILD_DEPENDS= dot:graphics/graphviz \ Modified: head/sysutils/freeipmi/Makefile ============================================================================== --- head/sysutils/freeipmi/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/sysutils/freeipmi/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -36,6 +36,7 @@ CONFIGURE_ENV= PTHREAD_LIBS=-lpthread ac_cv_path_CPP=$ GNU_CONFIGURE= yes USE_LDCONFIG= yes USES= gmake libtool localbase shebangfix +CFLAGS+= -D_WANT_SEMUN INFO= freeipmi-faq PLIST_SUB= CACHE_DIR=${CACHE_DIR} Modified: head/sysutils/symon/Makefile ============================================================================== --- head/sysutils/symon/Makefile Fri Mar 2 22:31:38 2018 (r463451) +++ head/sysutils/symon/Makefile Fri Mar 2 22:34:53 2018 (r463452) @@ -16,6 +16,7 @@ USES= groff perl5 shebangfix SHEBANG_FILES= client/getsymonitem.pl USE_PERL5= build MAKE_JOBS_UNSAFE= yes +CFLAGS+= -D_WANT_SEMUN USERS= _symon GROUPS= _symon Added: head/www/mod_cband/files/patch-src_mod__cband.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/mod_cband/files/patch-src_mod__cband.c Fri Mar 2 22:34:53 2018 (r463452) @@ -0,0 +1,27 @@ +--- src/mod_cband.c.orig ++++ src/mod_cband.c +@@ -56,6 +56,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #include + + #include "mod_cband.h" +@@ -74,6 +77,14 @@ + } + #endif + ++#if defined(__FreeBSD__) && __FreeBSD_version >= 1200059 ++union semun { ++ int val; /* value for SETVAL */ ++ struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ ++ u_short *array; /* array for GETALL & SETALL */ ++}; ++#endif ++ + static mod_cband_config_header *config = NULL; + static const char mod_cband_filter_name[] = "CBAND_FILTER"; + ap_filter_rec_t *mod_cband_output_filter_handle;