[Bug 289647] graphics/drm-61-kmod: X11 with nvidia-drm-61-kmod fails to start after commit ac934345a14f

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Sep 2025 23:37:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289647

--- Comment #52 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
(In reply to Bjoern A. Zeeb from comment #51)
We kill the version check routine in upstream tarball to disallow building on
main in generic way like below.

# We should support -CURRENT: kill the check (first #if __FreeBSD_version)
        linenum=$$(${SED} -ne '/^#if __FreeBSD_version/ { = ; q ; }' \
                ${WRKSRC}/src/${NVSRC}/nv-freebsd.h) ; ${REINPLACE_CMD} \
                -e "$$linenum,+2d" ${WRKSRC}/src/${NVSRC}/nv-freebsd.h

This is in the Makefile of x11/nvidia-driver (would move to x11/nvidia-kmod
once review D52178 lands).

  https://cgit.freebsd.org/ports/tree/x11/nvidia-driver/Makefile#n181

So it should still work (I cannot take time to switch to main recently, though)
unless some KPI breakages are introduced.

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