Thread View: muc.lists.freebsd.ports
5 messages
5 total messages
Started by Patrick M. Hausen
Tue, 24 Nov 2026 11:36
Re: State of ports/packages and timely updates
Author: Patrick M. Hausen
Date: Tue, 24 Nov 2026 11:36
Date: Tue, 24 Nov 2026 11:36
85 lines
15109 bytes
15109 bytes
SGkgYWxsLA0KDQo+IEFtIDIzLjExLjIwMjYgdW0gMjI6NTggc2NocmllYiBSb2dlciBNYXJxdWlz IDxtYXJxdWlzQHJvYmxlLmNvbT46DQo+IFdlbGNvbWUgdG8gZGV2b3BzIGJ1dCwgY2FuIHlvdSBx dWFsaWZ5IHRob3NlIFJDRXMgKG90aGVyIHRoYW4gUEhQKT8NCg0KUEhQMlNoZWxsPyBKYXZhNFNo ZWxsPyBOZ2luWCAuLi4NCg0KV2UgYXJlIHdlbGwgb3JnYW5pc2VkIGluIHRoYXQgcmVnYXJkIGhh dmluZyBpbnN0YWxsZWQgYSBuOG4gYmFzZWQgd29ya2Zsb3cNCnRoYXQgY3JlYXRlcyBub3RpZmlj YXRpb25zIGluIE1hdHRlcm1vc3QgYW5kIEpJUkEgaXNzdWVzIGZyb20gQ1ZFcyBhcyB0aGV5DQph cmUgcHVibGlzaGVkLg0KDQpCZWluZyBhIGhvc3RpbmcgcHJvdmlkZXIgYmFzZWQgb24gRnJlZUJT RCB3ZSBuZWVkIHRvIHJlYWN0IC0gc29tZXRpbWVzIGZhc3QuDQoNCj4+IEkganVzdCBmaW5pc2hl ZCBwYXRjaGluZyBvdXIgYXJvdW5kIDEwMDAgY3VzdG9tZXIgamFpbHMuIEFmdGVyIHB1dHRpbmcg aW4gYQ0KPj4gdmVyeSBsYXRlIHNoaWZ0IG9uIEZyaWRheSBhbmQgbW9yZSBob3VycyBvdmVyIHRo ZSB3ZWVrZW5kLg0KPiANCj4gTmljZS4gIEFyZSB5b3UgYXV0b21hdGluZyB0aGF0IHdpdGggc29t ZXRoaW5nIGxpa2UgQW5zaWJsZT8NCg0KT2YgY291cnNlLg0KDQo+IElmIH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ZWQNCmRhdGFiYXNlcy9sbWRiIGFyY2hpdGVjdHVyZSBpbiBI RUFELCB5ZXQgbG1kYiBpcyBzdGlsbCBhdCB0aGUgb2xkIHZlcnNpb24gaW4gMjAyNlE0Lg0KSSBw dWxsZWQgbG1kYiBmcm9tIEhFQUQgdG8gZmluZCB0aGF0IHRoaXMgbm93IG1ha2VzIGhhbGYgYSBk b3plbiBkaWZmZXJlbnQgcG9ydHMgZmFpbC4NClNvIEkgZG93bmdyYWRlZCBwb3dlcmRucyBhbmQg ZmluYWxseSBnb3QgYSBjbGVhbiBwb3VkcmllcmUgcnVuLg0KDQpTbyB0aGF0J3MgMzYgaG91cnMg bm93IG9mIHBvdWRyaWVyZSwgdHJ5IHRvIGZpeCB0aGluZ3MsIHBvdWRyaWVyZSwgcmVhbGx5IGZp eCB0aGluZ3MsIHBvdWRyaWVyZS4NCg0KQW55IGhpbnRzIG9uIGhvdyB0byBpbXByb3ZlIHRoaXMg cHJvY2VkdXJlIHZlcnkgbXVjaCBhcHByZWNpYXRlZC4NCg0KS2luZCByZWdhcmRzLA0KUGF0cmlj aw0KLS0gDQpwdW5rdC5kZSBHbWJIDQpQYXRyaWNrIE0uIEhhdXNlbg0KLmluZnJhc3RydWN0dXJl DQoNClNvcGhpZW5zdHIuIDE4Nw0KNzYxODUgS2FybHNydWhlDQoNClRlbC4gKzQ5IDcyMSA5MTA5 NTAwDQoNCmh0dHBzOi8vaW5mcmFzdHJ1Y3R1cmUucHVua3QuZGUNCmluZm9AcHVua3QuZGUNCg0K QUcgTWFubmhlaW0gMTA4Mjg1DQpHZXNjaMOkZnRzZsO8aHJlcjogRGFuaWVsIExpZW5lcnQsIEZh YmlhbiBTdGVpbg0KDQo= -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: State of ports/packages and timely updates
Author: Alexander Leidinger
Date: Tue, 24 Nov 2026 17:50
Date: Tue, 24 Nov 2026 17:50
100 lines
7928 bytes
7928 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_614155f5be5d3390b74427d49bc677d2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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. 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 --=_614155f5be5d3390b74427d49bc677d2 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=870 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQJPBAEBCAA5FiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmsFzm8bFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwzAAoJEBINsJsD+NiGtY4P/RTp7ptg0bZ65OAMHQaY SieKnzhLZB60J1d4JPwpdkcPs3cquhNZoMMY4uDGO3DGd/6UTwT+dzBcj4cQfRJU 83a7bpsiBHQLNAIwDtZqb/SBjRDd1kRA04V2A1rFqVb+jKX6yJe+vy/wR54527FM T0/4QPlvJQgN6gHMHbwaaGkd3TcwP/5Ude156uBK0uN7c7gcJVXh7tbEWRUtjzOO ra5Pzn46SjiF1iby+gtoEMkyJwYsgFbRI/1XeDNU5K8zjiiYgXY1Ir2MEvrub0FO ZKwJaKubbv42Ta3TaGTRSz1P0eN2BelJ2NteQXoswik5s1ev287AYKpFXjOyBZ+8 0ELOEwnY/ITYgRcvENsWm7ZupULffyjoSYm69rn5woCs/4MQtLCZ0if1tr8CWZyP fgJ/kkvZ4ZiHH0AnOCFus1QNZr70hLnaJxnn7F8eKdyupndwCGbgjpBUZmLFqnGd GIubV8v57hBbt2K42Zl2nmN0b0yVWfUhtvq7eSutGjiTLR0QtdH/0eoq7kTyOAZN AjPosaWVH3QooOf2SoXDPS7Bw6DDmr0FEoIWTwp1rlcRQxvmpV0KjEvFb6unoH9N AXKH/I1htsC2CRArZ9LQ2OoTxbPeDXJ94a0gV1vj//i3SzF6jMMCi7qrZPBENOA6 wuOBnqSowkB9l2e2Un7pZKuI =oQ26 -----END PGP SIGNATURE----- --=_614155f5be5d3390b74427d49bc677d2-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: State of ports/packages and timely updates
Author: Tomoaki AOKI
Date: Tue, 24 Nov 2026 19:24
Date: Tue, 24 Nov 2026 19:24
96 lines
7460 bytes
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
Re: State of ports/packages and timely updates
Author: Mark Millard
Date: Tue, 24 Nov 2026 23:01
Date: Tue, 24 Nov 2026 23:01
199 lines
13361 bytes
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
Re: State of ports/packages and timely updates
Author: Patrick M. Hausen
Date: Wed, 25 Nov 2026 12:32
Date: Wed, 25 Nov 2026 12:32
32 lines
10805 bytes
10805 bytes
SGkhDQoNCj4gQW0gMjQuMTEuMjAyNiB1bSAxODo1MCBzY2hyaWViIEFsZXhhbmRlciBMZWlkaW5n ZXIgPEFsZXhhbmRlckBMZWlkaW5nZXIubmV0PjoNCj4+IFRpbWVzIGZvdXIgc2V0cyAtIE1hcmlh REIgMTAuMTEsIDExLjQsIDExLjgsIDEyLjMgLSBtYWtlcyBmb3IgY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HJ5LiBTb21lb25lIHN1Z2dlc3RlZCB0aGUgb3RoZXIgd2F5 IHJvdW5kIC0gbGltaXQgdGhlIGh1Z2UgY29tcGlsZXJzIHRvDQpvbmx5IG9uZSBidWlsZCBidXQg dXNlIHBhcmFsbGVsaXNtIHdpdGhpbiBhIHNpbmdsZSBwb3J0Lg0KDQpJJ2xsIGhhdmUgbG90cyBv ZiB0aGluZ3MgdG8gZXhwZXJpbWVudCB3aXRoIGluIHRoZSBuZXh0IGNvdXBsZSBvZiB3ZWVrcy4N Cg0KTm90IGFuc3dlcmluZyBldmVyeSBzaW5nbGUgbWFpbCwgc28gYSBnZW5lcmFsIHRoYW5rIHlv dSB0byBldmVyeW9uZSBjb250cmlidXRpbmchDQoNCktpbmQgcmVnYXJkcywNClBhdHJpY2sNCi0t IA0KcHVua3QuZGUgR21iSA0KUGF0cmljayBNLiBIYXVzZW4NCi5pbmZyYXN0cnVjdHVyZQ0KDQpT b3BoaWVuc3RyLiAxODcNCjc2MTg1IEthcmxzcnVoZQ0KDQpUZWwuICs0OSA3MjEgOTEwOTUwMA0K DQpodHRwczovL2luZnJhc3RydWN0dXJlLnB1bmt0LmRlDQppbmZvQHB1bmt0LmRlDQoNCkFHIE1h bm5oZWltIDEwODI4NQ0KR2VzY2jDpGZ0c2bDvGhyZXI6IERhbmllbCBMaWVuZXJ0LCBGYWJpYW4g U3RlaW4NCg0K -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads