From owner-freebsd-arch@freebsd.org Fri Jan 25 21:08:35 2019 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8517414C333F for ; Fri, 25 Jan 2019 21:08:35 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1C58D72D8D for ; Fri, 25 Jan 2019 21:08:35 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CB34714C333E; Fri, 25 Jan 2019 21:08:34 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9AA314C333D for ; Fri, 25 Jan 2019 21:08:34 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E79172D8C; Fri, 25 Jan 2019 21:08:34 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from ivaldir.etoilebsd.net (etoilebsd.net [178.32.217.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 24745AD86; Fri, 25 Jan 2019 21:08:34 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id 61E38B48B5; Fri, 25 Jan 2019 22:08:33 +0100 (CET) Date: Fri, 25 Jan 2019 22:08:33 +0100 From: Baptiste Daroussin To: "Rodney W. Grimes" Cc: arch@freebsd.org Subject: Re: Importing mksh in base Message-ID: <20190125210833.ltnvsxbnlkc6njaw@ivaldir.net> References: <20190125165751.kpcjjncmf7j7maxd@ivaldir.net> <201901251936.x0PJaepi089796@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="adpwicfakkugy5gt" Content-Disposition: inline In-Reply-To: <201901251936.x0PJaepi089796@pdx.rh.CN85.dnsmgr.net> User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 5E79172D8C X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2019 21:08:35 -0000 --adpwicfakkugy5gt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 25, 2019 at 11:36:40AM -0800, Rodney W. Grimes wrote: > > Hi everyone, > >=20 > > I would like to import mksh in base, https://www.mirbsd.org/mksh.htm > > And make it the default root shell (not necessary in one step) > >=20 > > Why: > > 1/ it is tiny 400k (in the packaged version) all other shells fitting t= he > > expectation are bigger > It is more than twice the size of our current /bin/sh, and giving up > 200k on the nano/tiny/wifi BSD is hard to justify. 400k is near the > size of tcsh. >=20 To be fair here: mksh is 331k on my amd64 machine /bin/sh is 165k mksh only depends on libc /bin/sh depends on libc + libedit which adds an additional 231k to the batt= le. If now we are comparing to the actual root shell: csh is 419k on the same machine and it depends on libncursesw and libcrypt Best regards, Bapt --adpwicfakkugy5gt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlxLetEACgkQY4mL3PG3 Plor4hAAhZIPpHG6/DfdaUR1yReBOOQq0hLBPlfbICu0UYoNDOUgrp+/TMzYGH7H B6cqnbIRltrGUIhW/gwYrtBnbaO/cTWauY6wIeTo0gbVe3R8NEr7zvsF1CIJPgrU 1yltYciHO0v6kIFBNX28iNH0PdJK5w3Itak7hW0Nz/7IYevAAzJnxHM0oaDiDPC+ DaVZapKwXOixlGrV9kzVtMVpGJGDXHUhtRQY9BLVzm+abk8a2Ww2A8d+4DwwFBk0 pjXw2lgUweq0Lm5EMTcoN8OJZqnnur4T6dxog+pBNcj2cA/NDo3KCCwL/XQxxC58 WG/85nsZA7kVFkHzBgZUCQasclIBldoxovgmEYwqcPdP8U3/6j2zlq5r7bHoa6oh ptH2b8NXZepuTAGqE/KByqnJo8zf3AvTwdRKOgnayudYaa1SMM216oNBG05LTexb /RwxNnqo3PAa8z8jn/Y1+29arvkdv874koXxZ9jPSWiiAudeGubxtmAPhd2u7tkS mVdTicfImUZJJ98bVTMA3BhafKk5I0yl3rKlPLzbeLvrxo6QLXWzkgQIvnD2kyej grjXC0zuKTEQcqUGzIfHsPqHcU1zrSbsvyF7IUy9MrgZLFIxQDNsED7elDOYs6QU NmLXD+Re5HnIE6qvalQgw9qQYI5adxXOQRX5Rm5iMH8W6hmccao= =EXRQ -----END PGP SIGNATURE----- --adpwicfakkugy5gt--