Trying to build graphic driver from ports

I am new to freeBSD. I am trying to build the nvidia graphic drivers for 14.3.
The build runs in a thin jail with nothing installed.
The correct ports and src version were cloned.
The ports to build are graphics/drm-61-kmod graphics/nvidia-drm-61-kmod x11/nvidia-driver.
The build command is make DISABLE_VULNERABILITIES=yes package-recursive.
The goal is to get packages that I can install with pkg, so I dont have a mix of pkg and ports installations.
The build stops with the following error:

Code:
===>  py311-cython3-3.1.2 conflicts with installed package(s):
      py311-cython-0.29.37_2

      They install files into the same place.
      You may want to stop build with Ctrl + C.
===>  Checking if py311-cython3 is already installed
===>   Registering installation for py311-cython3-3.1.2 as automatic
[machine] Installing py311-cython3-3.1.2...
pkg-static: py311-cython3-3.1.2 conflicts with py311-cython-0.29.37_2 (installs files into the same place).  Problematic file: /usr/local/bin/cygdb-3.11
*** Error code 1

How can I solve this ?

On the website https://freebsd.sing.ne.jp/daily/06/90/40.html, i found something that looked like a solution.
It did not help in my case.
 
The first problem I see is that you do not need to build the metaport drm-61-kmod. Only the nvidia driver.

This is what I use to fulfill all dependencies for a port.
make build-depends-list | cut -c 12- | xargs pkg install -A -y

You should not see a python error if packages were used.
 
The build command is make DISABLE_VULNERABILITIES=yes package-recursive.
That is not what I would run.
Try make install after you install the dependencies.
Afterwards pkg lock it.
I do this with the nvidia package to get rid of Linux Layer stuff.
 
Can you have a look at the dependency for the old cython

Code:
pkg info -r py311-cython-0.29.37_2

If there is no dependency, you could remove it
 
The first problem I see is that you do not need to build the metaport drm-61-kmod. Only the nvidia driver.
I need the drm packages, in another post i found the info that i need to rebuild these 3 packages. The graphics/nvidia-drm-kmod seems to be the metaport. I should have mentioned that DRM is needed.
This is what I use to fulfill all dependencies for a port.
make build-depends-list | cut -c 12- | xargs pkg install -A -y

You should not see a python error if packages were used.
Yes, this is exactly what i was lookling for, now the build takes a few minutes instead of many hours. No more python errors.
But this dependency problem is a little worrying. Actually, my first try should have worked...

I need the packages because i wanted to install them on my "real" system. So I didn't use "install".
Instead I have installed them with pkg install -f packagename.pkg. (I hope this is ok.)
It seemed to work, the new files showed up in /boot/modules, but the result was mixed.
"hyprland" crashed the kernel. "wayfire" started, but when i went back to the vt console the display (framebuffer?) was completely messed up with colored rectangles, the size of letters, changing every time i type.

So, my original problem is solved, Thank You. I was able to build the packets. But the DRM drivers do not work correctly. I think I have to live with that.

During build, i was asked for a build configuration maybe i can change this to get better result. Maybe I should remove the linux config from the nvidia-driver.

BTW: The names of the packets look somehow suspicious.
nvidia-driver-570.169.1402000.pkg .1402000 <-- This looks like 14.2 , but i have 14.3 ! ( I am on branch 2025Q3 )
 
Can you have a look at the dependency for the old cython

Code:
pkg info -r py311-cython-0.29.37_2

If there is no dependency, you could remove it
I have tried this. I went into the lang/cpython directory and did a make deinstall clean.
But when I restarted make DISABLE_VULNERABILITIES=yes package-recursive they where built again, and the same error appeared.
 
Back
Top