🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: State of ports/packages and timely updates

#208
From: Mark Millard
Date: Tue, 24 Nov 2026 23:01
199 lines
13361 bytes
On 11/24/26 11:24, Tomoaki AOKI wrote:
> 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

Here are some notes about the version string comparison that can be
involved in causing a full delete-and-rebuild sequence . . .

Example jail files involved for illustration (more for general type of
text than anything more specific):

==>
/usr/local/poudriere/data/packages/release14p3-amd64-alt/.jailversion <==
14.3-RELEASE-p10

(So the release involved in the prior package repository build.)

==> /usr/local/etc/poudriere.d/jails/release14p3-amd64/version <==
14.3-RELEASE-p16

(So the release after a jail update --for forms of update t hat
correctly record that anyway.)

/usr/local/share/poudriere/common.sh has the following that involve
comparing those:

_attr_get() {
        [ $# -eq 4 ] || eargs _attr_get var_return type name property
        local _ag_outvar="$1"
        local type="$2"
        local name="$3"
        local property="$4"

        read_file "${_ag_outvar}" \
            "${POUDRIERED}/${type}/${name}/${property}"
}

attr_get() {
        local attr_get_data

        if _attr_get attr_get_data "$@"; then
                if [ -n "${attr_get_data}" ]; then
                        echo "${attr_get_data}"
                fi
                return 0
        fi
        return 1
}

jget() { attr_get jails "$@" ; }
_jget() {
        [ $# -eq 3 ] || eargs _jget var_return ptname property
        local _jg_outvar="$1"

        shift
        _attr_get "${_jg_outvar}" jails "$@"
}
. . .
        if was_a_bulk_run; then
                . . .

                if [ -f "${PACKAGES:?}/.jailversion" ]; then
                        local jailversion

                        read_line jailversion
"${PACKAGES:?}/.jailversion" ||
                            err 1 "failed to read .jailversion"
                        case "${jailversion}" in
                        "$(jget ${JAILNAME} version)") ;;
                        *)
                                delete_all_pkgs "newer version of jail"
                                ;;
                        esac
                fi

(Note that any difference in the 2 text's leads to: delete_all_pkgs .
Also the "newer" wording is over specific and so a misnomer: Just
different version text leads to a delete_all_pkgs.)

/usr/local/share/poudriere/jail.sh has setting the jail version code:

# Lookup new version from newvers and set in jset version
update_version() {
        local version_extra="$1"

        if [ -r "${SRC_BASE}/sys/conf/newvers.sh" ]; then
                eval `egrep "^REVISION=|^BRANCH="
${SRC_BASE}/sys/conf/newvers.sh `
                RELEASE=${REVISION}-${BRANCH}
        else
                RELEASE=$(jget ${JAILNAME} version)
        fi
        [ -n "${RELEASE}" ] || err 1 "updated_version: Failed to
determine RELEASE"
        if [ -n "${version_extra}" ]; then
                RELEASE="${RELEASE} ${version_extra}"
        fi
        jset ${JAILNAME} version "${RELEASE}"
        echo "${RELEASE}"
}


> 
> 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
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com


--
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: <49ba2578-396a-4ff9-8097-e41ac05d4888@yahoo.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <> <20261125042454.44502ee5b8acbffefa4ae2a7@dec.sakura.ne.jp>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Mark Millard <marklmi@yahoo.com>
Newsgroups: muc.lists.freebsd.ports
Subject: Re: State of ports/packages and timely updates
Date: Tue, 24 Nov 2026 15:01:03 -0800
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <49ba2578-396a-4ff9-8097-e41ac05d4888@yahoo.com>
References: <> <20261125042454.44502ee5b8acbffefa4ae2a7@dec.sakura.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="2015"; mail-complaints-to="news-admin@muc.de"
User-Agent: Mozilla Thunderbird
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795561288;
	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=I7VTZ5m/mePCxbdWrqGgOZrkT0J1+Nmfqz2Uv6ekZTQ=;
	b=CvL08fAr0dn/b2kdhrXahEqmLKVDEuCHDftqnNSYGp191585vsuKHKLU8H69hp/3wmqdhq
	9gHqyIjsHCuJ2MuwaFFBRR1BEPW6yObQF2dGbXUzj0OZR7ywi/QFn73GYK0ZWFf14utswL
	1dD5wmqHVWqJzU7COxzZ3+lXd3Q9BJrJz1CikkmxB7RYuiSJM5VK0pc/OvtylAfw2NCWt4
	KU04kY/mOLaIzatnU5Rm5R9NL36V5UJDPY+Oyvxm+D4ZQGO6UaEvzMv41CWrDKgr3lfADw
	8c7ysakIjICPQVitMzLB6/ISFKJaeGmS87lgvDkk/SBzrAUwCqhLchWR+YQNaA==
X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=yahoo.com header.s=s2048 header.b=jAY3Pufp;
	spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 34.2.70.26 as permitted sender) smtp.mailfrom=marklmi@yahoo.com;
	dmarc=pass (policy=reject) header.from=yahoo.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1795561269; bh=I7VTZ5m/mePCxbdWrqGgOZrkT0J1+Nmfqz2Uv6ekZTQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:Content-Type:From:Subject:Reply-To:Content-Type; b=jAY3Pufp6FjQ7C24dNyuKRfnM9VGvO//uGPckmm5GY29d1ML8lx6ojhrEC6BSG3SBCEnQgqjWM+JHnLPWVsxqetmbMIB+mRZht5wDwJYy+LidkE9T7h97agVHFfEYPS1PMWo/QHo8V2kOFq4Z8RfOi3wTo+YzuuHH7JMvxqWsBnKCc9UX5eRBFWPEe2CGSO2O4e6dnawXtPM0Ei26ivqJ7IKU8a0erqYmAGXe3yfS3Y13C/40Wdx0EfoTqcesXbwLRyNy62mKb+sd2KqfwEaHk6N9hDmWL1NxVsLhonw2kDbiQJmP7cPGGWK++jnfWyFRpo/yMQs9a66bEfG+5SIMA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1795561269; bh=Wc8Ozm6S1f3vhayFv0M8O240WHuFhnxWwpTDefr/zHj=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=GwTWj5mpfBL+Dht10878DP5J9aRv7n9xX+pxxq+xuIUht6t3mHJ1NDQfgKc72RogSYzqJqHItuHpI+vLGaT9ocr+l1qRsTMEjbYDICJZ+/muiVBzuUQivqaJn4B8B4dPexip0r84E9oltERQej2sZeTM1Dnq7kNb5x/B0rGbnTLyRPNpkddS0zw9fGvLubwCjjjm/DQtJn0EbzptpJlZk7Et1xdWXLiY3ejeYea5hMcIyhFFaaSe7jZC+1qPByavBgv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T2uHusTuHsmL8XcKu
 AoTZuZOHgpR8svY8Ia_LLae5suQcWAdhXaI_TcceGcsKgBjqrNPB4UR7m5Z9Y
X-Sonic-MF: <marklmi@yahoo.com>
X-Sonic-ID: a1935045-bdf5-4f0c-9583-92411804b831
X-BeenThere: freebsd-ports@freebsd.org
Precedence: list
Content-Language: en-US
In-Reply-To: <20261125042454.44502ee5b8acbffefa4ae2a7@dec.sakura.ne.jp>
X-Rspamd-Queue-Id: 4jYywR4YRlz3Hch
X-Spamd-Bar: -
X-Spamd-Result: default: False [-1.20 / 15.00];
	DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject];
	R_SPF_ALLOW(-0.20)[+ip4:34.2.64.0/19];
	R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048];
	RWL_MAILSPIKE_VERYGOOD(-0.20)[34.2.70.26:from];
	MIME_GOOD(-0.10)[text/plain];
	ARC_NA(0.00)[];
	ASN(0.00)[asn:15169, ipnet:34.2.70.0/23, country:US];
	FREEMAIL_FROM(0.00)[yahoo.com];
	MIME_TRACE(0.00)[0:+];
	RCVD_IN_DNSWL_NONE(0.00)[34.2.70.26:from];
	FREEMAIL_ENVFROM(0.00)[yahoo.com];
	MID_RHS_MATCH_FROM(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org];
	RCVD_TLS_LAST(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	RCPT_COUNT_FIVE(0.00)[5];
	RCVD_COUNT_TWO(0.00)[2];
	DWL_DNSWL_NONE(0.00)[yahoo.com:dkim];
	TO_MATCH_ENVRCPT_SOME(0.00)[];
	TO_DN_ALL(0.00)[];
	DKIM_TRACE(0.00)[yahoo.com:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes