From owner-freebsd-ports@FreeBSD.ORG Sun Sep 14 22:50:13 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1EB3F4CA; Sun, 14 Sep 2014 22:50:13 +0000 (UTC) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CB667E4; Sun, 14 Sep 2014 22:50:12 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id kq14so5122209pab.39 for ; Sun, 14 Sep 2014 15:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=BaDtI1QgZxw2WQ/uTXDOex7f0vZglHkU/bTBwSdS1PA=; b=tBsZWKZ1m+DDm8wJZTQ5V12nWsfrS4GDPhOYEftC7+u6/dE04mH8CZgWgnv8IT7iaO yhySkjktDH7Qw+zG2/aBE2XjxAGsGv89fVcrwbn5s3czZ+DPZWqHOTWBqhuOT/f6G73Y 8neS86KgX2+mHFVEdlEgAt+typYnYBsPy9tr1AZM190i9TfQHt2SsTUI22ROv289N7fJ e/7xxnMya2FRgwyqgZiNbD+XMUN9roBwQzUIYSGNl0kMR668FQqQYYrnwPyrJCM5cAqB 8XLnu4DobDQZt7ceM8wjcIlTIfcx0q5o6hBz9/g89PNmuy8vyhtK1QSX5OsY89HndeDx 1FtA== X-Received: by 10.70.134.98 with SMTP id pj2mr6696072pdb.65.1410735012455; Sun, 14 Sep 2014 15:50:12 -0700 (PDT) Received: from ?IPv6:2601:8:ab80:7d6:809f:4f41:54cc:4ede? ([2601:8:ab80:7d6:809f:4f41:54cc:4ede]) by mx.google.com with ESMTPSA id c3sm9661553pdk.3.2014.09.14.15.50.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Sep 2014 15:50:11 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_192EBD2A-700B-41B6-B1A2-13D2C7891F52"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? From: Garrett Cooper In-Reply-To: <541367D1.8090002@FreeBSD.org> Date: Sun, 14 Sep 2014 15:50:10 -0700 Message-Id: References: <541367D1.8090002@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.1878.6) Cc: Craig Rodrigues , freebsd-current Current , Emanuel Haupt , ports 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: Sun, 14 Sep 2014 22:50:13 -0000 --Apple-Mail=_192EBD2A-700B-41B6-B1A2-13D2C7891F52 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Sep 12, 2014, at 14:38, Bryan Drewery wrote: > "No" (as portmgr). >=20 > 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > The proper fix is to fix scripts to be portable and use #! = /usr/bin/env > bash rather than /bin/bash. >=20 > 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. Hi Bryan, I understand portmgr=92s reasoning for removing these knobs as = it improves =93portability=94 (builds and runtime won=92t depend on = broken code), but I see the merits of making a separate package for = Linux =93compatibility=94 for the various items that people have brought = up (mostly the LDAP issue and the vendor/legacy script portability = issue). Plus it makes the barrier for entry lower, and less of a reason = for Linux users to complain about how FreeBSD is different from Linux. = Adding these as options to the port(s) won=92t work for various reasons, = two of which came to mind are: 1. People should be able to install packages from FreeBSD.org = instead of having to roll their own ports with custom options. 2. It=92s best not to build other packages on unportable = (/bin/bash) behavior. Thanks! -Garrett PS I don=92t agree with Fedora/FreeDesktop=92s push to move everything = to /usr (I think it=92s a wee bit radical, to say the least, and seems = like it=92s optimizing the wrong thing), but it=92s something to keep in = mind as this non-portable decision may start working its way into = upstream ports: https://fedoraproject.org/wiki/Features/UsrMove . --Apple-Mail=_192EBD2A-700B-41B6-B1A2-13D2C7891F52 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUFhuiAAoJEMZr5QU6S73eBQwIAKQtl1/sj9eHok+1UIFaySx6 7KEyvzG8VZ+ApqV/SCURzVu832b/Qr+oh+GvEiekvlOdjbMJb6aVGYf4Efe7Nm+D 97ijaSA4f+Evvau4fzH1qOS4n+WTeOJloq5sQk4cD++CZWnGmfqpYHeiUHN03mI+ sv0TE+ArEI06Yt2IsMcl7wNTFeRZ9ieNrN1a9bdErhlkJTstBP4JVWt5qXDUYkxx m4a9guKmpUy2DozZFvTyi/UY1WFoBVtJLyk8MrpRtQ3zzKIEhmHbBrKAlBvP7Y0Y LdmNign9w3xyx3J52EofpPfiBYEr+NL85djpfOrDejreo7WeoCEgEVk3xWB0TJw= =GMEd -----END PGP SIGNATURE----- --Apple-Mail=_192EBD2A-700B-41B6-B1A2-13D2C7891F52--