From owner-freebsd-ports@FreeBSD.ORG Sat Sep 13 21:33:26 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 BAF8A111; Sat, 13 Sep 2014 21:33:26 +0000 (UTC) Received: from i3mail.icecube.wisc.edu (i3mail.icecube.wisc.edu [128.104.255.23]) by mx1.freebsd.org (Postfix) with ESMTP id 71477C88; Sat, 13 Sep 2014 21:33:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by i3mail.icecube.wisc.edu (Postfix) with ESMTP id EEC2338084; Sat, 13 Sep 2014 16:33:24 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from i3mail.icecube.wisc.edu ([127.0.0.1]) by localhost (i3mail.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id cub1bQMZjbC0; Sat, 13 Sep 2014 16:33:24 -0500 (CDT) Received: from comporellon.tachypleus.net (polaris.tachypleus.net [75.101.50.44]) by i3mail.icecube.wisc.edu (Postfix) with ESMTPSA id 544E138083; Sat, 13 Sep 2014 16:33:24 -0500 (CDT) Message-ID: <5414B0F3.50109@freebsd.org> Date: Sat, 13 Sep 2014 14:02:43 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Bryan Drewery , Craig Rodrigues , ports , Emanuel Haupt Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? References: <541367D1.8090002@FreeBSD.org> In-Reply-To: <541367D1.8090002@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 13 Sep 2014 21:33:27 -0000 As a slight distraction from the topic, is this actually possible in general? I'm thinking in particular of ports that install kernel modules. Since LOCALBASE may be (and very often is) a different file system from /, such modules cannot be accessible to loader and so can't be loaded in early boot. This is potentially a problem for wireless driver firmware modules, for example. -Nathan On 09/12/14 14:38, Bryan Drewery wrote: > "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=/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, >> >> 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. >> >> 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 >> >> or >> >> ln /usr/local/bin/bash /bin/bash >> >> and then make sure that /etc/shells as: >> /usr/local/bin/bash >> /bin/bash >> >> Can we add an optional knob (turned off by default) which creates this >> symlink >> and updates /etc/shells? >> >> This would help with interoperability of FreeBSD hosts in environments mixed >> with Linux and MacOS X. >> >> -- >> 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" >> >