[Bug 297279] graphics/drm-kmod: pkg upgrade should not try to install an earlier version

[email protected] Wed, 05 Aug 2026 22:16:47 +0000
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297279

--- Comment #7 from Tomoaki AOKI <[email protected]> ---
(In reply to Gleb Popov from comment #3)
Strange.

The logic to choose dependency in graphics/nvidia-drm-kmod/Makefile is as
follows.

.if ${OPSYS} != FreeBSD
IGNORE=         not supported on anything but FreeBSD (missing linuxkpi
functionality)
.else
.  if ${OSVERSION} >= 1500509 && ${ARCH} == amd64
RUN_DEPENDS+=  
${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-612-kmod${PKGNAMESUFFIX}
.  elif ${OSVERSION} >= 1500031 && ${ARCH} == amd64
RUN_DEPENDS+=  
${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-66-kmod${PKGNAMESUFFIX}
.  else
RUN_DEPENDS+= 
${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-61-kmod${PKGNAMESUFFIX}
.  endif
.endif


15.1-RELEASE{-p*} should have __FreeBSD_version (== OSVERSION in ports
framework) >= 1501000, thus, graphics/nvidia-drm-612-kmod should be chosen.
And stable/15 AFTER releng/15.1 branched has at minimum 1501500 (currently
bumped to 1501501), which is larger than 1501000.

PKGNAMESUFFIX is for -580 and -devel variants (set by Makefile of each) and not
set for graphics/nvidia-drm-kmod.

Note that graphics/nvidia-drm-kmod/Makefile.common is NOT used for
graphics/nvidia-drm-kmod{-580|-devel}, but included by each "actual" kmod ports
graphics/nvidia-drm-{515|61|66|612|latest}-kmod{-580|devel}.

-- 
You are receiving this mail because:
You are the assignee for the bug.