Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 20:45:46 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317168 - in head: share/mk tools/build/options usr.sbin/rpcbind
Message-ID:  <201704192045.v3JKjkgh095435@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Apr 19 20:45:46 2017
New Revision: 317168
URL: https://svnweb.freebsd.org/changeset/base/317168

Log:
  Add a knob, WITH*_RPCBIND_WARMSTART_SUPPORT, to allow the end-user to build
  rpcbind(8) with/without warmstart support.
  
  The knob defaults to off to preserve POLA for the feature.
  
  See rpcbind(8) for more details about the warmstart feature.
  
  MFC after:	7 weeks
  Relnotes:	yes
  Sponsored by:	Dell EMC Isilon

Added:
  head/tools/build/options/WITH_RPCBIND_WARMSTART_SUPPORT   (contents, props changed)
Modified:
  head/share/mk/src.opts.mk
  head/usr.sbin/rpcbind/Makefile

Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk	Wed Apr 19 20:35:47 2017	(r317167)
+++ head/share/mk/src.opts.mk	Wed Apr 19 20:45:46 2017	(r317168)
@@ -186,6 +186,7 @@ __DEFAULT_NO_OPTIONS = \
     OFED \
     OPENLDAP \
     REPRODUCIBLE_BUILD \
+    RPCBIND_WARMSTART_SUPPORT \
     SHARED_TOOLCHAIN \
     SORT_THREADS \
     SVN \

Added: head/tools/build/options/WITH_RPCBIND_WARMSTART_SUPPORT
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/build/options/WITH_RPCBIND_WARMSTART_SUPPORT	Wed Apr 19 20:45:46 2017	(r317168)
@@ -0,0 +1,4 @@
+.\" $FreeBSD$
+Set to build
+.Xr rpcbind 8
+with warmstart support.

Modified: head/usr.sbin/rpcbind/Makefile
==============================================================================
--- head/usr.sbin/rpcbind/Makefile	Wed Apr 19 20:35:47 2017	(r317167)
+++ head/usr.sbin/rpcbind/Makefile	Wed Apr 19 20:45:46 2017	(r317168)
@@ -14,6 +14,10 @@ CFLAGS+= -DPORTMAP
 CFLAGS+= -DINET6
 .endif
 
+.if ${MK_RPCBIND_WARMSTART_SUPPORT} != "no"
+CFLAGS+= -DWARMSTART
+.endif
+
 .if ${MK_TCP_WRAPPERS} != "no"
 CFLAGS+= -DLIBWRAP
 LIBADD+= wrap



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704192045.v3JKjkgh095435>