Date: Fri, 03 Apr 2026 20:47:40 +0000 From: Kevin Bowling <kbowling@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> Subject: git: a92d927574fc - main - graphics/nvidia-drm-*-kmod*: Fix build for 13.5, 14.3 and 15.0 Message-ID: <69d0276c.3b900.7e07165@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/ports/commit/?id=a92d927574fca313453ae266f4e78517eb406a33 commit a92d927574fca313453ae266f4e78517eb406a33 Author: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> AuthorDate: 2026-04-03 20:44:48 +0000 Commit: Kevin Bowling <kbowling@FreeBSD.org> CommitDate: 2026-04-03 20:46:30 +0000 graphics/nvidia-drm-*-kmod*: Fix build for 13.5, 14.3 and 15.0 Latest upgrade to 595.58.03 caused build failure as of requirements for a stub function pm_vt_switch_required(). The commit introduced it is not MFC'ed to 13.5-RELEASE, stable/13, 14.3-RELEASE and 15.0-RELEASE and unlikely to be done as it's not a security fix, more, stable/13 is going to be EoL'ed in 1 month. As this function, defined in sys/compat/linuxkpi/common/linux/pm.h, is still a blank, stub function even on main, drop the offending line for affected versions, keeping as-is for versions which has it. No PORTREVISION bumps, as this is build fix. PR: 294096 Reported by: alt2600@icloud.com Reviewed by: ashafer MFH: 2026Q2 Differential Revision: https://reviews.freebsd.org/D56214 --- graphics/nvidia-drm-kmod/Makefile.common | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphics/nvidia-drm-kmod/Makefile.common b/graphics/nvidia-drm-kmod/Makefile.common index 016558cb30ac..e7d8fac4620a 100644 --- a/graphics/nvidia-drm-kmod/Makefile.common +++ b/graphics/nvidia-drm-kmod/Makefile.common @@ -82,3 +82,7 @@ post-patch: linenum=$$(${SED} -ne '/^#if __FreeBSD_version/ { = ; q ; }' \ ${WRKSRC}/../nvidia/nv-freebsd.h) ; ${REINPLACE_CMD} \ -e "$$linenum,+2d" ${WRKSRC}/../nvidia/nv-freebsd.h + # Workaround for build failure on any base without pm_vt_switch_required(). + # 13.5, 14.3 and 15.0 doesn't have the stub (blank) function. + ${REINPLACE_CMD} -e 's/.*pm_vt_switch_required(dev->dev, true);.*/#if __FreeBSD_version >= 1403507 \&\& __FreeBSD_version < 1500000 || __FreeBSD_version >= 1500504\n&\n#endif/' \ + ${WRKSRC}/nvidia-drm-drv.chome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d0276c.3b900.7e07165>
