Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177462698
D56214.1794476681.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
743 B
Referenced Files
None
Subscribers
None
D56214.1794476681.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, Nov 12, 9:44 AM (18 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41674475
Default Alt Text
D56214.1794476681.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