Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2017 17:53:42 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r439339 - in branches/2017Q2/shells/bash: . files
Message-ID:  <201704241753.v3OHrgWa096736@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Apr 24 17:53:42 2017
New Revision: 439339
URL: https://svnweb.freebsd.org/changeset/ports/439339

Log:
  MFH: r439169, fix fdescfs being enabled by default
  
  Make bash use of fdescfs use optional, disabled by default, and forced off when
  disabled.
  
  This allows users to avoid mounting an extra FS that we don't enable by default.
  
  Only display pkg-message with fdescfs instructions when option is enabled.
  
  Submitted by:	swills
  Differential Revision:	https://reviews.freebsd.org/D10394
  
  Approved by:	ports-secteam (with hat)

Added:
  branches/2017Q2/shells/bash/files/pkg-message.in
     - copied unchanged from r439169, head/shells/bash/files/pkg-message.in
Deleted:
  branches/2017Q2/shells/bash/pkg-message
Modified:
  branches/2017Q2/shells/bash/Makefile
Directory Properties:
  branches/2017Q2/   (props changed)

Modified: branches/2017Q2/shells/bash/Makefile
==============================================================================
--- branches/2017Q2/shells/bash/Makefile	Mon Apr 24 17:43:08 2017	(r439338)
+++ branches/2017Q2/shells/bash/Makefile	Mon Apr 24 17:53:42 2017	(r439339)
@@ -4,7 +4,7 @@
 PORTNAME=		bash
 PATCHLEVEL=		12
 PORTVERSION=		4.4.${PATCHLEVEL:S/^0//g}
-PORTREVISION?=		1
+PORTREVISION?=		2
 CATEGORIES=		shells
 MASTER_SITES=		GNU/${PORTNAME}
 DISTNAME=		${PORTNAME}-${PORTVERSION:R}
@@ -22,8 +22,9 @@ COMMENT=		GNU Project's Bourne Again SHe
 LICENSE=		GPLv3+
 LICENSE_FILE=		${WRKSRC}/COPYING
 
-OPTIONS_DEFINE=		COLONBREAKSWORDS HELP NLS STATIC SYSLOG DOCS
+OPTIONS_DEFINE=		COLONBREAKSWORDS FDESCFS HELP NLS STATIC SYSLOG DOCS
 COLONBREAKSWORDS_DESC=	Colons break words
+FDESCFS_DESC=		Enable use of /dev/fd
 HELP_DESC=		Enable builtin help
 
 OPTIONS_DEFAULT=	COLONBREAKSWORDS HELP
@@ -35,6 +36,9 @@ CPE_VENDOR=		gnu
 
 COLONBREAKSWORDS_EXTRA_PATCHES=	${PATCHDIR}/extrapatch-colonbreakswords
 
+FDESCFS_CONFIGURE_ENV_OFF=	bash_cv_dev_fd=absent
+FDESCFS_SUB_FILES=	pkg-message
+
 HELP_CONFIGURE_ENABLE=	help-builtin
 NLS_CONFIGURE_ENABLE=	nls
 NLS_USES=		gettext

Copied: branches/2017Q2/shells/bash/files/pkg-message.in (from r439169, head/shells/bash/files/pkg-message.in)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2017Q2/shells/bash/files/pkg-message.in	Mon Apr 24 17:53:42 2017	(r439339, copy of r439169, head/shells/bash/files/pkg-message.in)
@@ -0,0 +1,13 @@
+======================================================================
+
+bash requires fdescfs(5) mounted on /dev/fd
+
+If you have not done it yet, please do the following:
+
+	mount -t fdescfs fdescfs /dev/fd
+
+To make it permanent, you need the following lines in /etc/fstab:
+
+	fdescfs	/dev/fd		fdescfs		rw,late	0	0
+
+======================================================================



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