🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Which ports get their PORTVERSION from outside the Makefile

#25
From: Dan Langille
Date: Wed, 14 Oct 2026 12:22
99 lines
10377 bytes
On Thu, Sep 17, 2026, at 1:33 PM, Dan Langille wrote:
> On Thu, Sep 17, 2026, at 12:42 PM, Mathieu Arnold wrote:
>> On Thu, Sep 17, 2026 at 05:11:13PM +0200, Thierry Thomas wrote:
>>> Le jeu. 17 sept. 26 à 17:00:55 +0200, Dan Langille <dan@langille.org>
>>>  écrivait :
>>> 
>>> > The creation of INDEX takes time. By the time it is ready, more commits have
>>> > occurred and INDEX is already out of date and some PORTVERSION values have
>>> > changed.
>>> 
>>> `make fetchindex` is fine.
>>
>> Well, it is faster, but it will not be what `make index` would output,
>> as it's a previously generated INDEX that was geneated from another
>> ports tree.
>
> That gave me an idea.  I ran `make index` in a jail[1]. It took 747 
> seconds (or 12.5 minutes).
>
> How does this sound for a strategy?
>
> * periodic/cronjob inserts a job into the FreshPorts work queue
> * freshports daemon (FPD) processes the queue in order, so commit 
> processing is not going on during that job
> * FPD find the job, notes the time, and launches a background job to 
> `make index` (MI)
> * FPD continues on with the queue
> * ...
> * 12.5 minutes later, as the MI job completes, it inserts a reconcile 
> job into the queue
> * when FPD gets to the reconcile job, it knows the start time 
> associated with the MI
> * FPD compares the INDEX against the database and compiles a list of 
> ports which don't match INDEX
> * any ports with commits after that MI start time are not included in 
> that list
> * The ports on that list are refreshed from their Makefiles (because 
> more than just PORTVERSION can change) in the usual way that FP handles 
> a commit
> * FPD continues on with the queue
> * ...
>
>
> 1 - [17:03 mydev dvl /usr/ports] % sudo time make index
> Generating INDEX-15 - please wait..--- describe.accessibility ---
> --- describe.arabic ---
> --- describe.archivers ---
> ...
> --- describe.x11-toolkits ---
> --- describe.x11-wm ---
>  Done.      747.38 real      2831.68 user      1706.13 sys

FYI, this solution is going to production soon.

The scripts on the FreshPorts ingress (commit ingesting) nodes are now keeping a running list of ports which get PORTVERSION bumps from outside their Makefile.

This is the compare script:

https://github.com/FreshPorts/ingress-scripts/blob/main/compare-index.sh

This script is where the running list is maintained:

https://github.com/FreshPorts/ingress-scripts/blob/main/compare-index-daily.sh

This is the list after few days.

[12:06 dvl-ingress01 dvl ~freshports/cache/spooling] % sudo cat refresh-history.txt
databases/py-gdbm
databases/py-sqlite3
graphics/scantpaper
lang/python-tools
misc/eightctl
multimedia/gstreamer1-plugins-all
multimedia/gstreamer1-plugins-core
security/py-blake3
security/x11appjail
shells/meka
sysutils/xxd
www/github-release-monitor
www/libdatachannel
x11-toolkits/py-tkinter


-- 
  Dan Langille
  dan@langille.org


--
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: <272def03-b20b-4c6c-8ae4-59f53a94a40d@app.fastmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <744da68d-7f33-44d1-b8c2-bd4f3c8af3cb@app.fastmail.com> <>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: "Dan Langille" <dan@langille.org>
Newsgroups: muc.lists.freebsd.ports
Subject: Re: Which ports get their PORTVERSION from outside the Makefile
Date: Wed, 14 Oct 2026 08:22:08 -0400
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-ports@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <272def03-b20b-4c6c-8ae4-59f53a94a40d@app.fastmail.com>
References: <744da68d-7f33-44d1-b8c2-bd4f3c8af3cb@app.fastmail.com> <>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="63736"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1791980571; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to: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=KS5V+25yCH0XX+xAdQDalLOVQIaMM8FMhji44SCtBgc=;
	b=I4VlHp82iZM5GoDTciJWB+n2lZTfTVCMHUzWprQbLpqfIMjgj/DJ2LCjwXLAm5N2R05xHu
	eO/zUY1YUAfN9P1EMwnF3kX6TDhk7mj8bYuO0gKqgC7HQPMQAaSUR0m+sPlyjCPj0JyxM4
	ot5ExWLdHSl4bPMHXfoWmWmLkdOHHpUoN1LQWq1Gchrzx/x1fSh97Oc4vm04c1sbk1Z+lu
	k7q35MhP/vFsKDAVQm/hsP+lErBC2NY7eLBRyPmr4AbRZA66t+CixXsz+p0aJgXoGxzLcn
	pM/lscn/mVdySEscay2eUZOMXZAlQw0fnOfLSYtioAh56GDXoS/53yQd4fN+Pg==
X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=langille.org header.s=fm2 header.b=CB32cuER;
	dkim=pass header.d=messagingengine.com header.s=fm2 header.b=dcrRYO9U;
	spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 103.168.172.153 as permitted sender) smtp.mailfrom=dan@langille.org;
	dmarc=pass (policy=none) header.from=langille.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h=
	cc:content-transfer-encoding:content-type:content-type:date:date
	:from:from:in-reply-to:in-reply-to:message-id:mime-version
	:references:reply-to:subject:subject:to:to; s=fm2; t=1791980550;
	 x=1792066950; bh=KS5V+25yCH0XX+xAdQDalLOVQIaMM8FMhji44SCtBgc=; b=
	CB32cuERHyH+OXogXXSwLTC664/Ey3Lrypmxo9/Wx8eq7AGnXHUxlkkIPcH7uocS
	4LpyeliLTJE5R19LG7Y/prhyb7FinV3s+U742nF+7hiK0hzaaGd1l9jmB86iAqdD
	Ifz1wM/QXTmlbbQe/JtWhLMswxcxKX5dN59x4tsE+f87uACvftDHh3fBvLmY8d0o
	pEuqYvmongaF4dYiLk5npfiag3aIcAdfV6Gp4DiY9hAUAnHEDGyNBnQ9h2KMAtoA
	BHwtbmxe6HAiEL1ix2gfeCY/0AsNjrc1fKPL3BrF2AtwEGkJrONJ9BcABXyte2BW
	+HZpZmc2z5c6cKptITe9Bw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:content-transfer-encoding:content-type
	:content-type:date:date:feedback-id:feedback-id:from:from
	:in-reply-to:in-reply-to:message-id:mime-version:references
	:reply-to:subject:subject:to:to:x-me-proxy:x-me-sender
	:x-me-sender:x-sasl-enc; s=fm2; t=1791980550; x=1792066950; bh=K
	S5V+25yCH0XX+xAdQDalLOVQIaMM8FMhji44SCtBgc=; b=dcrRYO9UZFGFwegKO
	1IWO5VZGU870CtxXwv+sEljUyxtLAMCafGojEUxhu3kZR1IVTfhq3I4jxVBEED2v
	TFNDJSiHYFaLyU4WzErnNx2msQK2sLmx76pdcOnH5y9mjPOKBlSLxTDwGPlCMspW
	D9KgKka3IdvGNDgSJiZr3dOkFWh4Eaadar399V2Wr/u26daVv5129JWWCohRsZVG
	w3urILdW+UC86aUvFkhXb0doPgn6cBvDqAZImoZVX/jeLuME/FmaVUHlHqDDPz2e
	9SkFSrA3W+2sy3+lWtbH3FmwtSaTp7DWLXyRzhZVcg/dwE+qXmHHXgULLQQUK0Yu
	TItLQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=sign d=langille.org a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791980550; d=langille.org;
	mf=PGRhbkBsYW5naWxsZS5vcmc+;
	rt=PGZyZWVic2QtcG9ydHNARnJlZUJTRC5vcmc+;
	s=fm2:rsa-sha256:fbgwqNsxlbQjR2BH+krAmd/tpsspUkIuqAne7tUGZLwz8n3
	CNz9G0cwC85EmH3O5Ui9KOhJnZ0fDuzuPIM5+5/uhSHpimq/ayYZgFK+G+2I76qq
	bd4HWf6jZ2FepLn1TrbNZANfmybSe+ZtJ6uITW0qshV//aw0aG1nEsYNFedAhhJj
	lxlzJZIFQeFA3snFj84ruaxrazfk/ASfedWchrcEuG7rf37w0FNvv/JQXHPcpoFM
	DhltuEUtp9HnU96rhfQFd35LM0+myYlu5YfEo8xXRrqhWlmmBybPY2xHcgKJeiX4
	Nyi2u1kxaJD11pCH4Tj09o9NO0T7ytRNV6RTZDg==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=mi-m=1; hc=11;
	hn=content-transfer-encoding,content-type,date,feedback-id,from,
	in-reply-to,message-id,mime-version,references,subject,to;
Message-Instance: m=1; h=sha256:IURH3cQw3tgAjwGoScIiaiHsy7X1b/BMlirblv/DPsA=:7MK6U0ZoheFKMTS4POuE9yqk6jL4Uye8taf3mtm2mGs=;
X-ME-Sender: <xms:BXTPaoNycsQokL8L86w9caN6QmPAfCMCpl3GaudIvN0tsa5LYiGfww>
    <xme:BXTPapxH731ZOsN2CHAS-WLw3mRZgK1DDWPAAAqZrQ7xooBLHjphVNnpqKTfQFRb8
    uxvlzoV4jt6hRKKGr8g8ZkZAkQKXVj-dtdQV8oZtZenz7lJMXSjuA>
X-ME-Proxy-Cause: dmFkZTFkFp8ZQFvCh+RGAuD1xRdZUQYO/lgQaQ3OqoBkGe4UKsM24G9JyUU6SCEL+rGwXI
    7TE325OhgyXmgt91hcnQ4c6HYFrc1E0tK7I9MUOUDM7CEyrsgbovahgAr22DpEGxIzA6qB
    XIn9cuhw+6TVL1woMDtnUMwrF3HKXIzKn+WR0QtAUgyTaRRzDnik5atMaNH4+CGWczvy/j
    IRwltPWaO9xmhiqDpfElE0cuo/fA2orgO168dw1sKLhzb0GMYEP7E/FnRYO+VqUUp9vX1+
    hgKN4DEttX6L5iYkULWIjNK1Xd6rlRW/8TEBMTuWvueKF/1kyxc6Y9FuKYOp7f1liu40co
    ih0j3GablfPo2VEphlG9T/oCXNfyAbXaA01SEjGBSeMNaFcvHzZxtUDdl0DtDi+FoI2ABb
    6fhTaNPAd16nW/2bFzb/OxkIv3vSenHFaGfIfk4Wu4RDFmpNctuyRf2N86zNLTRCA//xuV
    /9Zqy0qDEgkjEPf5xdBArO7ZdWiidrci4o3p3Vo0z2tY0MYH0dbF9kVNVYj6BAn7zjn4La
    YH4ae2rHwjKxrNDSzEBnv6jrfeOV6+oa7uNIPBOSFiYlt7k4ZowD/U0wNzXGAt3aLC74Oy
    FVqEF/Y6LRjLtGH1WPReBWLpwWOC3nAIsiIeNcXaQWhJOkxOZL7f/Wud6itg
X-ME-Proxy: <xmx:BXTPavzqLD7s3ym3DHqvmtxGc9D-EOCgvzkYk8RPBZgSRN6Crit2Ag>
    <xmx:BXTPauOJLqOXEBr-OEXLS7Oq8ycpTjL_Lho5qy-UjFnM2Wr0Udba8g>
    <xmx:BXTPau8SGb7ioTAm9wNSsW9wNRzHb3zGv4gj5NFg_R6uCzi_UrF73Q>
    <xmx:BXTPaupKeZZP0nqRjsITl_EHtjLoVpxoAFEMd55B1W94yGXABbXBHw>
    <xmx:BnTPaqDfvdgssetb4jD1bn9W14Gy2tkTbgHk-LtrJsNDrGyffajKTagF>
Feedback-ID: ifbf9424e:Fastmail
X-BeenThere: freebsd-ports@freebsd.org
Precedence: list
In-Reply-To: <744da68d-7f33-44d1-b8c2-bd4f3c8af3cb@app.fastmail.com>
X-Spamd-Bar: /
X-Spamd-Result: default: False [-0.99 / 15.00];
	DMARC_POLICY_ALLOW(-0.50)[langille.org,none];
	R_DKIM_ALLOW(-0.20)[langille.org:s=fm2,messagingengine.com:s=fm2];
	R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27];
	MIME_GOOD(-0.10)[text/plain];
	XM_UA_NO_VERSION(0.01)[];
	FREEFALL_USER(0.00)[dan];
	ARC_NA(0.00)[];
	ASN(0.00)[asn:151847, ipnet:103.168.172.0/24, country:AU];
	RCPT_COUNT_ONE(0.00)[1];
	MIME_TRACE(0.00)[0:+];
	RCVD_TLS_LAST(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-ports@FreeBSD.org];
	RCVD_IN_DNSWL_NONE(0.00)[103.168.172.153:from];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	TO_DN_ALL(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	RCVD_COUNT_THREE(0.00)[3];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org];
	DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]
X-Rspamd-Queue-Id: 4j4VhR6YxZz3HBD
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes