From owner-freebsd-ports@FreeBSD.ORG Fri Sep 12 21:38:42 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E1E799D7 for ; Fri, 12 Sep 2014 21:38:41 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1BD5D07 for ; Fri, 12 Sep 2014 21:38:41 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.9/8.14.9) with ESMTP id s8CLcfm0058410 for ; Fri, 12 Sep 2014 21:38:41 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id s8CLcfsX058408 for freebsd-ports@freebsd.org; Fri, 12 Sep 2014 21:38:41 GMT (envelope-from bdrewery) Received: (qmail 74052 invoked from network); 12 Sep 2014 16:38:34 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 12 Sep 2014 16:38:34 -0500 Message-ID: <541367D1.8090002@FreeBSD.org> Date: Fri, 12 Sep 2014 16:38:25 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Craig Rodrigues , ports , Emanuel Haupt Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? References: In-Reply-To: OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="F7FUAdP0V4vcjdqnOdPIBbe1OrETM8Sfo" Cc: freebsd-current Current X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2014 21:38:42 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --F7FUAdP0V4vcjdqnOdPIBbe1OrETM8Sfo Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable "No" (as portmgr). Ports should not be touching the base system like this. Let's NOT go backwards and add a /bin/bash. In fact the /usr/bin/perl one will be removed soon as well. If we can actually eliminate ports touching /usr and / (not including /usr/local and /var) then we gain a very large memory optimization for package building by being able to ro null-mount these to the build jails.= There's no reason for bash (and perl) to be exceptions to the 24000 other ports that install to /usr/local/bin. I can think of dozens of other ports that will fall into the same arguments being made here, but it does not mean it is the right thing for FreeBSD. If you want to install the symlink on your system feel free to do it. I install a static bash to /bin/bash on mine and only because I prefer bash shell and want it in / for single-user mode. That's my personal choice though. The proper fix is to fix scripts to be portable and use #! /usr/bin/env bash rather than /bin/bash. We install all packages to PREFIX=3D/usr/local by default. Why should a bin symlink be an exception? There's no suggestion for symlinking includes or libraries which also hit users often. On 9/12/2014 4:12 PM, Craig Rodrigues wrote: > Hi, >=20 > In the last 3 jobs that I have worked at, there have been > a mix of Linux machines and FreeBSD machines. > When using an NIS or LDAP environment where > there is a single login across multiple machines, it is useful to > have a single shell setting. >=20 > Since Linux and MacOS X have "/bin/bash" as the shell, > in order to get the FreeBSD boxes to play in this environment, > I have seen admins do the following on FreeBSD setups: > ln -s /usr/local/bin/bash /bin/bash >=20 > or >=20 > ln /usr/local/bin/bash /bin/bash >=20 > and then make sure that /etc/shells as: > /usr/local/bin/bash > /bin/bash >=20 > Can we add an optional knob (turned off by default) which creates this > symlink > and updates /etc/shells? >=20 > This would help with interoperability of FreeBSD hosts in environments = mixed > with Linux and MacOS X. >=20 > -- > Craig > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org= " >=20 --=20 Regards, Bryan Drewery --F7FUAdP0V4vcjdqnOdPIBbe1OrETM8Sfo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJUE2fRAAoJEDXXcbtuRpfPxocH/2jJqFz0Ba3dJprTIAs7+qRR uUuD51jqElpSSL62kQZkrqPEIsReq2Y2cM7mAng3uArtbtP8s9GOYMT2fxVqxJOR 76OUz2F2EmXpIruOcu2/hSHS2FBQZGhb23CprLB6oncziByxiTJYvKIzthBlve7M xJ+oWZxHwOsIDFS+UhkVr2wutMf2oDfaRBbFNLIFpu5OmsCwXzH3YTgwuttFE5J6 OUcDYozWQcDY2a6hUMut+BQqPinKSvCtRrDoQ/HMY14aY2a0SeDz3DEHIufvuX/+ aqRr8KvB8JoVXQrqZwR+vmII2K5iEo+qL96XSwN5Js61vZCLvpBAYAjT6MipKvk= =1u+b -----END PGP SIGNATURE----- --F7FUAdP0V4vcjdqnOdPIBbe1OrETM8Sfo--