From owner-svn-src-head@freebsd.org Wed Apr 8 23:01:47 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2796F27F539 for ; Wed, 8 Apr 2020 23:01:47 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-vk1-f196.google.com (mail-vk1-f196.google.com [209.85.221.196]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48yKXT72v8z3H59 for ; Wed, 8 Apr 2020 23:01:45 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-vk1-f196.google.com with SMTP id n128so2295777vke.5 for ; Wed, 08 Apr 2020 16:01:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8nT6NfP0UC89ARQXjPWqYuZnpe3zfAjIyyiYgqwcvxQ=; b=tKvNowIGuCJ9kskS2CS+gaXa2KLIavBkGwp+sa1rwREQqRITVqyYeoGLGABmvpkdyn p3hR41Vkp2Wv94T3eb6RfyqHECWLVE2VNb5fkD98FvcHp4S2/0L0oT3KNKAnzlicEJP9 fDXjHLBI5mXZlhI59nyEuJ8FD5YmjceX1uQbcf9OyegsADMjY1aQsd+SYyLaSxovNOuW p6x/wS6Dl/+NJZXBc4XRaHRxwNlZuAIiLdeUJ5OvagdaF5UWn/sBN8UI+wDncH0KpQ1Y 3V5txV7bDSTkR2IohUgZY4NxkR3UkBPtH/zAo9md+jc5qJ1X6sxKouJIZXgQwKQHKpqF n4Ww== X-Gm-Message-State: AGi0PuYrydsSRZthMCFcjtLVs3kMKFcMzeqgU3KO21mUXpS8FsqpO8ny Dyp5Oj51Wlv8A89KhKGatN0scZP+6NmkAPo/6SQxDA== X-Google-Smtp-Source: APiQypJy/JQW32iF0dM1uKFrxRZsUTUwGM5kFNhC1cpAiJ8djJ7dcjqe9yxOb9wbdGFh3NMMZynwYWgyhRU1LQdokjQ= X-Received: by 2002:a1f:2706:: with SMTP id n6mr7741628vkn.88.1586386904460; Wed, 08 Apr 2020 16:01:44 -0700 (PDT) MIME-Version: 1.0 References: <202004070246.0372kNIx036216@repo.freebsd.org> <202004071037.037Abd5T091937@gndrsh.dnsmgr.net> In-Reply-To: <202004071037.037Abd5T091937@gndrsh.dnsmgr.net> From: Maxim Sobolev Date: Wed, 8 Apr 2020 16:01:33 -0700 Message-ID: Subject: Re: svn commit: r359685 - in head: . etc lib/libc/gen share/mk share/termcap usr.bin/login usr.bin/vgrind usr.sbin/services_mkdb To: "Rodney W. Grimes" Cc: src-committers , svn-src-all , svn-src-head X-Rspamd-Queue-Id: 48yKXT72v8z3H59 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of sobomax@sippysoft.com designates 209.85.221.196 as permitted sender) smtp.mailfrom=sobomax@sippysoft.com X-Spamd-Result: default: False [-2.20 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[svn-src-head@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[196.221.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.21)[ip: (-0.16), ipnet: 209.85.128.0/17(-0.40), asn: 15169(-0.43), country: US(-0.05)]; FORGED_SENDER(0.30)[sobomax@freebsd.org,sobomax@sippysoft.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[196.221.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[sobomax@freebsd.org,sobomax@sippysoft.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2020 23:01:47 -0000 On Tue, Apr 7, 2020 at 3:37 AM Rodney W. Grimes wrote: > > Author: sobomax > > Date: Tue Apr 7 02:46:22 2020 > > New Revision: 359685 > > URL: https://svnweb.freebsd.org/changeset/base/359685 > > > > Log: > > Normalize deployment tools usage and definitions by putting into one > place > > instead of sprinkling them out over many disjoint files. This is a > follow-up > > to achieve the same goal in an incomplete rev.348521. > > I have concerns that this factoring out of 5 values that have not changed > in 25 years is a pessimization, it is one more file that make has to > open on each invocation. > Well, luckily enough the cost of opening a file has been exponentially declining over those 25 years, so we are probably many-orders of magnitude faster than we used to be back in 1995. Or so I've heard. :) Having those variables defined in a centralized manner allows us here for example to convert the result of what would be installworld/installkernel/distribution action into a self-extracting archive (optionally signed) with automatically generated script, which does the action in question. As such, we can now build in a completely sandboxed environment with 0 privileges (potentially even on something completely alien like GNU/Linux) and then deploy it to as many systems as we need or use to create VM images / Jails. https://github.com/sobomax/sysmaker/blob/master/makeargs/distribution.sub https://github.com/sobomax/sysmaker/blob/master/makeargs/installkernel.sub https://github.com/sobomax/sysmaker/blob/master/makeargs/installworld.sub I have very few reasons to believe that our needs to be unique in this, I am pretty sure others will find some interesting use for this as well (e.g. signing binaries being installed, etc). -Max