On Wed, 26 Feb 2025 14:42:14 -0800
Steve Kargl <s...@troutmask.apl.washington.edu> wrote:

> On Thu, Feb 27, 2025 at 07:28:41AM +0900, Tomoaki AOKI wrote:
> > On Wed, 26 Feb 2025 13:25:20 -0800
> > Steve Kargl <s...@troutmask.apl.washington.edu> wrote:
> > 
> > > Recently update a freebsd-current system and all ports.
> > > Prior to updating the ports, I did
> > > 
> > > % cd /usr/ports
> > > % git pull -ff
> > > % make fetchindex
> > > 
> > > After the update I see,
> > > 
> > > % pkg version -vl '<' | grep drm
> > > drm-515-kmod-5.15.160.1500031_3 < needs updating (index has 
> > > 5.15.160.1500033_3)
> > > 
> > > OK, first, attempt,
> > > 
> > > % portmaster -Byd drm-515-kmod
> > > % pkg version -vl '<' | grep drm
> > > drm-515-kmod-5.15.160.1500031_3 < needs updating (index has 
> > > 5.15.160.1500033_3)
> > > 
> > > Second, attempt,
> > > 
> > > % cd /usr/ports
> > > % git reset --hard
> > > % make fetchindex
> > > % cd graphics/drm-515-kmod
> > > % make clean && make
> > > % pkg delete -f drm-515-kmod
> > > % make install && make clean
> > > % pkg version -vl '<' | grep drm
> > > drm-515-kmod-5.15.160.1500031_3 < needs updating (index has 
> > > 5.15.160.1500033_3)
> > > 
> > > Ok, so where is 1500033_3 coming from?
> > > 
> > 
> > Would be:
> >   
> > https://cgit.freebsd.org/ports/commit/Mk/Uses/kmod.mk?id=a5fc087131e66513d1c74f8427c924afff580a15
> > 
> > and
> >   https://cgit.freebsd.org/ports/tree/graphics/drm-515-kmod/Makefile#n3
> > 
> 
> And why is drm-515-kmod-5.15.160.1500031_3 not being updated
> to 5.15.160.1500033_3?  Hmmm,

Just a prediction, but possibly build cluster for main (15-Current) are
running on 1500033, while your build environment is running on 1500031.

IIUC, the purpose of the kmod version string change is to provide
kmod pkgs for multiple minor releases (i.e., provide kmod pkgs for 14.2
even until 14.1 is EoL'ed).

So pkg needs to compare here sanely on upgrades and/or installations.
(If not, kmod pkgs for 14.2 are installed even on systems running on
14.1, thus, at worst brick the computer until rescued with another
installation including installer.)

OTOH, version comparison alone is possibly not as precisely comparing
versions as installations/upgrades.

> 
> % sysctl -a | grep 15000
> kern.osreldate: 1500031
> 
> % cat INDEX-15 | sed s/\ /\\n/g | grep drm-515-kmod | sed s/\|/\\n/ | head -1
> drm-515-kmod-5.15.160.1500033_3
> 
> It seems ports/INDEX-15 is now completely useless.  The former
> commit appears to be not too well thought out.
> 
> -- 
> Steve


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

Reply via email to