mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
x11/nvidia-driver: lax the check when applying fix for src df38ada293
It turns out that NVVERSION check is not very accurate and may easily break the build in various circumstances. Also, do not use the line number as an anchor, just spell out the #include line in its entirety when removing it. PR: 260318
This commit is contained in:
parent
04138ea7ad
commit
0375fc8f10
1 changed files with 4 additions and 3 deletions
|
@ -169,9 +169,10 @@ post-patch: .SILENT
|
|||
${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c
|
||||
.endif
|
||||
# After src df38ada2931f, `sys/module.h' must be included after `sys/param.h'
|
||||
.if ${OSVERSION} >= 1400042 && ${NVVERSION} >= 358.009
|
||||
@${REINPLACE_CMD} -e '/^#include <sys\/module/ { x; \
|
||||
s:^:#include <sys/param.h>:; G; }; 14d' \
|
||||
.if ${NVVERSION} >= 358.009
|
||||
@${REINPLACE_CMD} -e '/^#include <sys\/param\.h>/d; \
|
||||
/^#include <sys\/module\.h>/ { x; \
|
||||
s:^:#include <sys/param.h>:; G; }' \
|
||||
${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c
|
||||
.endif
|
||||
# Disable installation of Linux libraries (provided by the corresponding
|
||||
|
|
Loading…
Add table
Reference in a new issue