From nobody Sat Apr 4 14:50:00 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fnz5k4j8Gz6Yr95 for ; Sat, 04 Apr 2026 14:50:02 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pelorus.zefox.org", Issuer "pelorus.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fnz5j1Q70z416s for ; Sat, 04 Apr 2026 14:50:00 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.18.1/8.18.1) with ESMTPS id 634Eo0kB013096 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 4 Apr 2026 07:50:00 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.18.1/8.18.1/Submit) id 634Eo0B3013093; Sat, 4 Apr 2026 07:50:00 -0700 (PDT) (envelope-from fbsd) Date: Sat, 4 Apr 2026 07:50:00 -0700 From: bob prohaska To: Mark Millard Cc: freebsd-current@freebsd.org Subject: Re: Etcupdate runtime has more than doubled....Why? Message-ID: References: <626584dc-ea9c-4a63-902c-4de4e10bba00@yahoo.com> <3580ce8f-3500-4386-a35a-f1b49dbc7d44@yahoo.com> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3580ce8f-3500-4386-a35a-f1b49dbc7d44@yahoo.com> X-Spamd-Result: default: False [1.87 / 15.00]; AUTH_NA(1.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_SHORT(-0.98)[-0.979]; NEURAL_SPAM_MEDIUM(0.95)[0.946]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MISSING_XM_UA(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_COUNT_TWO(0.00)[2]; DMARC_NA(0.00)[zefox.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; R_SPF_NA(0.00)[no SPF record] X-Rspamd-Queue-Id: 4fnz5j1Q70z416s X-Spamd-Bar: + On Wed, Apr 01, 2026 at 12:20:11PM -0700, Mark Millard wrote: > On 4/1/26 12:10, Mark Millard wrote: > > On 4/1/26 11:34, bob prohaska wrote: > >> On Wed, Apr 01, 2026 at 11:00:56AM -0700, Mark Millard wrote: > >>>> > >>> > >>> etcupdate has the option: > >>> > >>> > >>> -B Do not build generated files in a private object tree. > >>> Instead, reuse the generated files from a previously built > >>> object tree that matches the source tree. This can be > >>> useful to avoid gratuitous conflicts in sendmail(8) > >>> configuration files when bootstrapping. It can also be > >>> useful for building a tarball that matches a specific > >>> world build. > >>> I misunderstood the gist of the description, thinking -B was intended only for special cases of multiple source and object trees. In fact -B seems to solve my problem entirely, etcupdate finishes in minutes now, not hours. Thanks to all who responded! bob prohaska > >>> > >>> So, if one already has the required context, its use might be relevant. > >>> Of course, without the proper context, it should not be used. > >>> > >>> What was the context-status and use vs. not for -B ? > >> > >> There's only one /usr/obj on the system. > >> > >> The buildworld command used was > >> make -j3 KERNCONF=GENERIC TARGET=arm TARGET_ARCH=armv7 buildworld > >> and the etcupdate command following buildworld was > >> etcupdate -p > >> > >> After installing world and kernel, etcupdate runs again as > >> etcupdate > >> > >> Might using etcupdate -B in the second invocation be a remedy? > > > > Extracted/simplified from my more overall scripts full of local details: > > > > # make WITH_META_MODE=yes buildworld > > # make WITH_META_MODE=yes buildkernel > > # etcupdate -p > > # etcupdate resolve -p > > # make WITH_META_MODE=yes installkernel > > Note for live updating the booted file system: > > # # Possibly: vi /boot/loader.conf > # shutdown -r now > . . . > > (I have contexts that do not involve that.) > > > > # make WITH_META_MODE=yes installworld > > # etcupdate -B > > # etcupdate resolve > > # make delete-old check-old > > # #AS NEEDED for timing?: make delete-old-libs > > # etcupdate status > > Note for live updates the booted file system or just wanting to: > > # # Possibly: vi /boot/loader.conf > # shutdown -r now > . . . > > (I have contexts that do not involve that. For those I may deal with > booting at some later time for some other reason.) > > > > >> > >> Thanks for writing! > >> > >> bob prohaska > >> > >> > >> > > > > > > > -- > === > Mark Millard > marklmi at yahoo.com