Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152603662
D56214.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
743 B
Referenced Files
None
Subscribers
None
D56214.diff
View Options
diff --git a/graphics/nvidia-drm-kmod/Makefile.common b/graphics/nvidia-drm-kmod/Makefile.common
--- a/graphics/nvidia-drm-kmod/Makefile.common
+++ b/graphics/nvidia-drm-kmod/Makefile.common
@@ -82,3 +82,7 @@
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.c
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 10:53 PM (15 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30771501
Default Alt Text
D56214.diff (743 B)
Attached To
Mode
D56214: graphics/nvidia-drm-*-kmod*: Fix build for 13.5, 14.3 and 15.0
Attached
Detach File
Event Timeline
Log In to Comment