From owner-freebsd-arch@freebsd.org Sat Jan 26 09:22:46 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 A791F14BA8FD for ; Sat, 26 Jan 2019 09:22:46 +0000 (UTC) (envelope-from gljennjohn@gmail.com) 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 CD16070B46 for ; Sat, 26 Jan 2019 09:22:45 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 9013514BA8FC; Sat, 26 Jan 2019 09:22:45 +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 6D82F14BA8F9 for ; Sat, 26 Jan 2019 09:22:45 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E50C170B45 for ; Sat, 26 Jan 2019 09:22:44 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x436.google.com with SMTP id v13so12667976wrw.5 for ; Sat, 26 Jan 2019 01:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=DMs/ryw2pgxlzo/7pHsdrrAJQyWjEqPeIKO1EG4L3gM=; b=PUeWbknnNM4TjmCY364MAAL0gApnYslxthMVU49arPGsvY3heSOv4rMLr7m1zIZqjr fbOtBZOaVv3rG/3AWsVIY9V4cms8ZRQ3BgIi5pij69BTxyAceUN9lKfvACSf6F3r2i4S NpCsFF6g0L1e3etjvTvAUyQgTzHeExh1tCExWhSY9niUQrZeH3gsmEqMdLoxswT3mHsm 5BheFvi5NFaEVTnuB7BSz2PkMuQVsmWxRnKOuFytrn+90luOA0SPQ+gX6upDcSDrYs81 8Yw/MsUOaeBT6+0rtA+t6IV501AUWWaU9Dx154tbUg/PmJ/bpAGQ3nZTbK+fxQyasdXe Lj/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=DMs/ryw2pgxlzo/7pHsdrrAJQyWjEqPeIKO1EG4L3gM=; b=a1CFLT4Ir5PwjzBaeNYWBhpy0IkBpAd9yEd+mfaPJYBxZn1oBtYb1wkXTmp1IqTeZY /ct10pAQE1VZjVvH8DSth9e7zat+gm5r3K2FVFbIUqF23lm2lE7HLFBlsDzuTcJAURiA yiMqpRdlfyuEYe40Pir0SdAduA5btRd8G11pZMzKF4xSFO37sFchpmZ6gU3Z6eLsOsjo IWZ34zfT0GsAGyH7L7Nu2W1yaSpMB3aC2cWszfV48aqXZnGb9Lftn3hVpNc3AwWzU0Q4 sGoK2SH03c/DfyyNsBcwLdxC3UvDICqj+9Wo0sj/ZYmViej9SAM6aoDNAcUOeNdAUApB r0HQ== X-Gm-Message-State: AJcUukeEv32kS5TjbpoS/k46Jc1ccnQom1/Na5/Kxv6VphRrNCdxiwim /4F3Bl/WSZQv+8FfetS2BQw7gl9c X-Google-Smtp-Source: ALg8bN7LnlGTtlf+5vheTGZEaJv69uFYIaaapwrwRiIOyXFEcQ3aM/UR3qB0B4lkfu5arFoX62uCjQ== X-Received: by 2002:adf:81c4:: with SMTP id 62mr13657157wra.266.1548494562615; Sat, 26 Jan 2019 01:22:42 -0800 (PST) Received: from ernst.home (pD9E23F45.dip0.t-ipconnect.de. [217.226.63.69]) by smtp.gmail.com with ESMTPSA id p139sm131915830wmd.31.2019.01.26.01.22.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Jan 2019 01:22:41 -0800 (PST) Date: Sat, 26 Jan 2019 10:22:38 +0100 From: Gary Jennejohn To: arch@freebsd.org Subject: Re: Importing mksh in base Message-ID: <20190126102238.3b5e0a80@ernst.home> In-Reply-To: <20190125210833.ltnvsxbnlkc6njaw@ivaldir.net> References: <20190125165751.kpcjjncmf7j7maxd@ivaldir.net> <201901251936.x0PJaepi089796@pdx.rh.CN85.dnsmgr.net> <20190125210833.ltnvsxbnlkc6njaw@ivaldir.net> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: E50C170B45 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.978,0] 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: Sat, 26 Jan 2019 09:22:46 -0000 On Fri, 25 Jan 2019 22:08:33 +0100 Baptiste Daroussin wrote: > On Fri, Jan 25, 2019 at 11:36:40AM -0800, Rodney W. Grimes wrote: > > > Hi everyone, > > > > > > 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) > > > > > > Why: > > > 1/ it is tiny 400k (in the packaged version) all other shells fitting the > > > 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. > > > 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 battle. > > If now we are comparing to the actual root shell: > csh is 419k on the same machine and it depends on libncursesw and libcrypt > How large is a statically linked mksh? /rescue/sh is 8.5MB. Amazingly, that's four times larger than a statically linked bash. If mksh is supposed to be the default, then it might make sense to have a statically linked binary under /rescue. -- Gary Jennejohn