Solved pkg, FreeBSD-kmods & drm-61-kmod version

Hi, everyone!
I recently switched from quarterly to latest, and so far, so good.

But what I really can't figure out is the installation order for the drm-61-kmod version (1404000_9 vs. 1404000_10).

% uname -a
FreeBSD stage_name.internal 14.4-RELEASE-p8 FreeBSD 14.4-RELEASE-p8 releng/14.4-n273754-3de2d29b088e GENERIC amd64


My /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
% pkg repos
FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_latest_4",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
and
Code:
pkg info drm-61-kmod
drm-61-kmod-6.1.128.1404000_9
Name           : drm-61-kmod
Version        : 6.1.128.1404000_9
Installed on   : Sat Aug  1 13:26:00 2026 CEST
Origin         : graphics/drm-61-kmod
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : graphics kld
Licenses       : BSD2CLAUSE, MIT, GPLv2
Maintainer     : x11@FreeBSD.org
WWW            : https://github.com/freebsd/drm-kmod/
Comment        : Direct Rendering Manager GPU drivers
Annotations    :                                                                                                                                                                                                                                            
        FreeBSD_version: 1404000                                                                                                                                                                                                                            
        repo_type      : binary                                                                                                                                                                                                                              
        repository     : FreeBSD-kmods                                                                                                                                                                                                                      
Flat size      : 16.9MiB
But pkg search drm-61-kmod shows:

drm-61-kmod-6.1.128.1404000_10 Direct Rendering Manager (DRM) GPU drivers
and
drm-61-kmod-6.1.128.1404000_9 Direct Rendering Manager GPU drivers

and
Code:
% pkg version -r FreeBSD-kmods -vRx drm                                                                                                                                                                                                 
drm-61-kmod-6.1.128.1404000_9      =   up-to-date with remote                                                                                                                                                                                                
libdrm-2.4.133,1                   ?   orphaned: graphics/libdrm
says its up-to-date and libdrm is orphaned?

The 1404000_10 is the version on freshports.org for latest and the 1404000_9 on FreeBSD-kmods (FreeBSD:14:amd64/kmods_latest_4/All/).



But why isn't the 1404000_10 version being installed?


I guess I've just fallen into my own rabbit hole.

Nandor
 
Last edited:
Ugh, of course—that's why:
Code:
# pkg install -r FreeBSD drm-61-kmod
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
FreeBSD is up to date.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        drm-61-kmod: 6.1.128.1404000_9 -> 6.1.128.1404000_10 [FreeBSD]

Number of packages to be upgraded: 1

3 MiB to be downloaded.

Proceed with this action? [y/N]:
The only question I have left is: if both repos have the same priority [0], why isn't the higher version installed?
 
The only question I have left is: if both repos have the same priority [0], why isn't the higher version installed?
Do you happen to know:
  1. What version of graphics/drm-61-kmod you had installed when you were on quarterly, just before switching to latest?
  2. When having set FreeBSD.conf to latest (instead of using quarterly), what pkg command did you give that got
    drm-61-kmod: 6.1.128.1404000_9 installed?
 
Hi Erichans,

I'm not entirely sure about that, but based on the times in the messages log and the FreeBSD.conf, it seems to add up:
1.
Code:
pkg: drm-61-kmod upgraded: 6.1.128.1404000_8 -> 6.1.128.1404000_9
2.
Code:
# pkg update -f
# pkg upgrade -n
# pkg upgrade
Just as an aside; I haven't used -r with pkg in months. Thanks for looking it over...
 
You can ignore the -kmods repository for now. It's really only useful during the transition period when the previous minor version is still supported. Packages in the 14 FreeBSD repository are specifically built for 14.4, so there's no need for the -kmods repository at this time.

The packages in the -kmods repositories are still a bit of a work-in-progress, some kinks need to be ironed out, like updating them at the same time as the other repositories (hence the version mismatch).
 
Hi SirDice!

Thank you very much for explaining why things got stuck here.
But it's good to know; I'll keep an eye on that during the next transition period.

Thanks to everyone & done!


Nandor
 
I'll keep an eye on that during the next transition period.
Probably around September, then you'll have a three month "grace" period when 14.4 and 14.5 are supported. At that time packages in FreeBSD repository will still be built for 14.4, the kernel modules (like the DRM driver) are likely to fail when installed on 14.5. That's where the kmods repository should be useful. Then in December when 14.4 is EoL, the packages in the FreeBSD repository will be built for 14.5.

 
Back
Top