Solved drm-kmod binary always wrong os version

It took two installs before I realized that the reason I am unable to get my screen to work is because the drm-kmod binary is the wrong OS version. I am running FreeBSD 12.2-release and whenever I install drm-kmod using pkg install drm-kmod I get kernel errors because its the wrong kernel / os version.

Whenever I build it, it works flawlessly. Then I run pkg update to update, for example, MariaDB server and then my screen does not work properly because the drm-kmod will be updated, installed from the binary from the server and it will not load anymore. This is the only package that is missmatched for me. How do I fix this?
 
Here we go again ... o_O
Whenever I build it, it works flawlessly. Then I run pkg update to update, for example, MariaDB server and then my screen does not work properly because the drm-kmod will be updated, installed from the binary from the server and it will not load anymore. This is the only package that is missmatched for me. How do I fix this?
That should only happen if the available binary package has a version newer than the one you built from ports. Are you sure you keep your ports tree properly updated?
 
I am running FreeBSD 12.2-release and whenever I install drm-kmod using pkg install drm-kmod I get kernel errors because its the wrong kernel / os version.
Build graphics/drm-fbsd12.0-kmod from ports. The packages are still being built for 12.1 because its still supported. This will resolve itself when 12.1 is end-of-life in February 2021 and packages will start to get built for 12.2. And it's like mickey says, this would only happen if the package happens to be newer than what you have installed. As a stopgap measure you can pkg-lock(8) it to prevent it from being updated at all.

Then I run pkg update to update, for example, MariaDB server
Keep in mind that the default is MySQL 5.7, not MariaDB. So anything that needs a client is going to depend on the MySQL 5.7 client, which is going conflict with MariaDB.
 
Whenever I build it, it works flawlessly. Then I run pkg update to update, for example, MariaDB server and then my screen does not work properly because the drm-kmod will be updated, installed from the binary from the server and it will not load anymore.
pkg lock graphics/drm-fbsd12.0-kmod and then you can run updates without touch the drm package. To unlock it, just use pkg unlock graphics/drm-fbsd12.0-kmod.
 
Back
Top