Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Aug 2026 22:16:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 297279] graphics/drm-kmod: pkg upgrade should not try to install an earlier version
Message-ID:  <bug-297279-7141-G50DL87P1A@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-297279-7141@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297279

--- Comment #7 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
(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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-297279-7141-G50DL87P1A>