🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.ports
Article #207

Re: State of ports/packages and timely updates

#207
From: Tomoaki AOKI
Date: Tue, 24 Nov 2026 19:24
96 lines
7460 bytes
On Tue, 24 Nov 2026 18:50:27 +0100
Alexander Leidinger <Alexander@Leidinger.net> wrote:

> Am 2026-11-24 12:36, schrieb Patrick M. Hausen:
> 
> >> 3 days is too much to be sure, and indicates you're depending on
> >> pre-built pkg repos.  If you have over a 1000 customer systems to 
> >> patch
> >> you really should start building at least some of your own pkgs and
> >> minimizing OPTIONS to reduce the attack surface.
> > 
> > Our CI starts the poudriere run which
> > 
> > - updates the build jail to the latest patch release
> > - updates the quarterly ports tree
> > - starts the build of packages
> 
> This can be the issue of your full rebuild everytime.
> 
> > Most of the time for reasons I am trying to figure out everything or 
> > nearly everything
> > is re-built. >1000 packages including all the build dependencies per 
> > set.
> > llvm, gcc, rust alone: 5 hours.
> 
> Once you do a poudriere jail upgrade (you specified to the latest 
> release), poudriere does a full rebuild. I do not know if it does this 
> on FreeBSD_version change, or in general once you update the build jail. 
> I would rather guess once you update the build jail.

Not all jail upgrades cause full rebuilds.
In my experience, forced full rebuilds happen on:

  *OSVERSION (comes from __FreeBSD_version) is bumped

and/or 

  *whichever of REVISION and BRANCH in newvers.sh is changed

On patch releases like, the latter should always happen,
while (AFAIK) changes causing the former are basically
avoided.

But I think the former should better having option to ignore:
  *least 5 digits (just like pkg does for ports)
  *least 3 digits
  *least 2 digits
with current "ignore nothing".

This could be useful when security updates happened
on ports (avoid full rebuilds and focus on affected
ports only).


> As long as you do not update the build jail, it should only do 
> incremental builds. In fact, I have an arm64 system which runs poudriere 
> builds in a loop (waits 3600 minutes, and then fetches again the ports 
> tree and does a bulk build again).
> 
> There may be cases where you need to update all, but it may be faster to 
> first update the ports, then the OS (and then do the rebuild of the same 
> packages after the OS update again, without installing them, as in the 
> end they have not changed, but just got triggered because of the 
> build-jail update).
> 
> > Times four sets - MariaDB 10.11, 11.4, 11.8, 12.3 - makes for about 24 
> > hours total.
> 
> Do you use parallelism? If yes, how, per port parallelism (make -j X), 
> and/or several package builders in parallel?
> I see cases where the dependencies make all wait for one package. It may 
> make sense to have a build jail per set (even if it is exactly the same 
> setup as every other build jail), and then run the sets in parallel 
> (with less parallelism inside each set). If you find the sweet spot, you 
> may be able to gain some percentage of the build time.
> 
> Another idea is to copy over the build from one set to another, delete 
> the dependency which differs, and then let poudriere build incrementally 
> from there (it should delete the dependent ports as something in the 
> middle of the chain is missing).
> 
> Bye,
> Alexander.
> 
> -- 
> http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
> http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <20261125042454.44502ee5b8acbffefa4ae2a7@dec.sakura.ne.jp>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <> <f46b65686ec658f26672f7e792c9d44b@Leidinger.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Newsgroups: muc.lists.freebsd.ports
Subject: Re: State of ports/packages and timely updates
Date: Wed, 25 Nov 2026 04:24:54 +0900
Organization: Junchoon corps
Approved: news-admin@muc.de
Distribution: world
Message-ID: <20261125042454.44502ee5b8acbffefa4ae2a7@dec.sakura.ne.jp>
References: <> <f46b65686ec658f26672f7e792c9d44b@Leidinger.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="48435"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795548320;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-owner:list-unsubscribe:list-subscribe:list-post;
	bh=vL2KymLMfWhq82hjiVNYvCCbuGe18f7xka1eQWIoRoI=;
	b=t7onmJ3sSt4n29X00DJBZsCuPR9S4xD6qkPiW8tykkM7TMkwvxJvEizU7oVCz6Pit3CGUa
	fwDBe5iA8J6S+rd/Bid9u7n7Kv8vOz8A2PjvylqXaJazpaTLhZjenmIUd1sNdTZYJVY/O2
	QQJBO3dhLz4HUgR7If/33M8T7FOFPvhnOGrfHZmAOtA5BTmRt/UWamZBGQ78ozZ3rhTwdi
	rkkHQToVGraS17Z9w5FVW9POqU5O53ynxBZGpYZAHKpmSCHpq/RDJKzkaz9ojqeMn7zQW/
	C+zQOfyleGmsEoBY4eUAsQc2ZeXwO0RpaFkdOANxgzNu7Pdr1nQjruybWDslVg==
X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=fail ("headers rsa verify failed") header.d=dec.sakura.ne.jp header.s=s2405 header.b=jcFZelAh;
	spf=pass (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp designates 153.125.133.21 as permitted sender) smtp.mailfrom=junchoon@dec.sakura.ne.jp;
	dmarc=pass (policy=none) header.from=dec.sakura.ne.jp
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp;
	s=s2405; t=1795548296;
	bh=0KbeybaS8fVIhK9ZAoJ9n48gpWgXxCIlbWK9UgRA8Xc=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=jcFZelAhrQV7XJSGU5L2ki5klBTGUcvEGlVWi2XaysrzpRjpdKeA2QGUvGFvI73L0
	 doUUgooae+72f64BXhdFe+602JDW3icEBadCH1/jKMQBDaQNlSQntWEf0QAIgIhfQN
	 SMdSMHmc74O4z5fH4PKBwFFdaJVJ6YgMbEMji/to=
In-Reply-To: <f46b65686ec658f26672f7e792c9d44b@Leidinger.net>
X-BeenThere: freebsd-ports@freebsd.org
Precedence: list
X-Rspamd-Queue-Id: 4jYt706MJ7z4VYs
X-Spamd-Bar: ++
X-Spamd-Result: default: False [2.30 / 15.00];
	SUSPICIOUS_URL_IN_SUSPICIOUS_MESSAGE(1.00)[];
	MV_CASE(0.50)[];
	URIBL_RED(0.50)[dec.sakura.ne.jp:from_smtp,dec.sakura.ne.jp:mid,dec.sakura.ne.jp:email,dec.sakura.ne.jp:from_mime];
	ONCE_RECEIVED(0.20)[];
	BAD_REP_POLICIES(0.10)[];
	MIME_GOOD(-0.10)[text/plain];
	HAS_ANON_DOMAIN(0.10)[];
	RCPT_COUNT_THREE(0.00)[4];
	DKIM_TRACE(0.00)[dec.sakura.ne.jp:-];
	DMARC_POLICY_ALLOW(0.00)[dec.sakura.ne.jp,none];
	FROM_HAS_DN(0.00)[];
	TO_DN_ALL(0.00)[];
	R_DKIM_REJECT(0.00)[dec.sakura.ne.jp:s=s2405];
	ARC_NA(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	DMARC_POLICY_ALLOW_WITH_FAILURES(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP];
	DNSWL_BLOCKED(0.00)[153.125.133.21:from];
	TO_MATCH_ENVRCPT_SOME(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	HAS_ORG_HEADER(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org];
	R_SPF_ALLOW(0.00)[+ip4:153.125.133.16/28];
	MID_RHS_MATCH_FROM(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	MIME_TRACE(0.00)[0:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes