[Bug 270060] x11/nvidia-driver, x11/linux-nvidia-libs: update to 525.89.02

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 Mar 2023 11:24:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270060

--- Comment #24 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
(In reply to Bartek Jasicki from comment #21)

I agree with keeping these ports track with latest production branch.

But allowing builds with beta or new feature versions could help someone having
problems and beta and/or new feature versions states fixing them.

This means only Makefile (and possibly some extra patches) incoporates the
support but not with distfiles.


Unfortunately, on base main at commit 9b20ab1e1ef7d3de672ec20a62f26a605db8d3d0,
amd64 fails to build nvidia-driver 530.41.03 with errors below. my previous
test was on stable/13 at commit 38e0d28fa4e2f98ebb060441f0aeb0536d6fd202,
amd64.


--- nvidia_subr.o ---
nvidia_subr.c:1187:13: error: incompatible integer to pointer conversion
assigning to 'void *' from 'vm_offset_t' (aka 'unsigned long')
[-Wint-conversion]
    address = NV_KMEM_ALLOC_CONTIG(size, flags, 0,
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia_subr.c:1319:17: error: incompatible integer to pointer conversion
assigning to 'void *' from 'vm_offset_t' (aka 'unsigned long')
[-Wint-conversion]
        address = NV_KMEM_ALLOC_CONTIG(PAGE_SIZE, flags, 0,
                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
*** [nvidia_subr.o] Error code 1


Warnings are omitted.
Maybe CFLAGS should be somehow modified. 525.89.02 builds fine even on main.
I can upload the modified patch for testing, if anyone wants.
(Hand-crafted based on the patch here. Just for allowing builds and runs on
stable/13 and not at all tried on main until today.)

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