Solved FreeBSD-kmods que pasa?

Just noticed this since upgrading to 14.3 while running poudriere.

Code:
FreeBSD repository update completed. 35988 packages processed.
Updating FreeBSD-kmods repository catalogue...
pkg-static: An error occured while fetching package: No error
pkg-static: An error occured while fetching package: No error
repository FreeBSD-kmods has no meta file, using default settings
pkg-static: An error occured while fetching package: No error
pkg-static: An error occured while fetching package: No error
pkg-static: An error occured while fetching package: No error
pkg-static: An error occured while fetching package: No error
Unable to update repository FreeBSD-kmods
Error updating repositories!

Anyone know how I should be dealing with FreeBSD-kmods as I seem to be missing some configuration. Any hints/tips welcome, thanks.
 
I get the same error sometimes.
The file you picked contains one error. It's ${VERSION_MINOR} instead of ${VERSION_VERSION}.
 
Checked, yup it's there in /etc/pkg/FreeBSD.conf but fails unless I have it in /usr/local/etc/pkg/repos/ as well. Go figure...
 
That's ok only for quarterly packages. If you are on latest, you need a suited file in /usr/local/etc/pkg/repo/.
I am confused with pkg.conf settings. I have on FreeBSD 14.2_RELEASE:

Code:
FreeBSD: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
and it works. What are correct settings? "VERSION_VERSION"?

Thank you.
 
I am confused with pkg.conf settings. I have on FreeBSD 14.2_RELEASE:

Code:
FreeBSD: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
and it works. What are correct settings? "VERSION_VERSION"?

Thank you.
This works, but it seems you modified /etc/pkg/FreeBSD.conf.
Don't do that because it's a default configuration file. At next upgrade you will certainly receive a complain about this.
The best way is to add a .conf file in /usr/local/etc/pkg/repos/ like /usr/local/etc/pkg/repos/latest.conf.

Now (I mean since 14.3-RELEASE), to have a system on latest repo, latest.conf must contains:
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}
FreeBSD-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}"
}

PS: the var ${VERSION_VERSION} does not exist. It's a typo. See pkg.conf(5) in section VARIABLES.
 
My FreeBSD.conf is in /usr/local/etc/repos/
IMO, they should put official how should "conf" should be and where before updating OS.

https://forums.freebsd.org/threads/...er-upgrade-from-bapt.96058/page-3#post-704586
Thanks for the 's' of 'repos'. I corrected it.

The problem is you override all the parameters defined in FreeBSD.conf. You don't have to and it's better to not do so. If one day these defaults change, you won't follow them.

Many things should be done, many things lack. FreeBSD is improving day after day. See the kmods repos, for instance.

For the rest, if you think something should be done, do it. That's the way this ecosystem goes.
 
Do you know which packages are included in the FreeBSD-kmods repository? Are they limited only to packages with names containing '-kmod' ?
 
Are they limited only to packages with names containing '-kmod' ?
Not in their name, not all of them do, comms/uarduno for example. It does seem limited to those ports that have USES= kmod though. That makes sense, as it's only kernel modules that could potentially be impacted with a minor version upgrade. Everything else is linked to the ABI and should never be impacted.
 
So I have the exact error message that started this thread...

I build my own packages though. Per pkg.conf(5), I created /usr/local/etc/pkg/repos/FreeBSD.conf with contents "FreeBSD: { enabled: no }" and in the same folder created my own .conf file that points to my poudriere server, specifically:

sh:
# cat /usr/local/etc/pkg/repos/amd64-14-3-default.conf
amd64-14-3-default: {
    url: "https://pkg.example.com/packages/amd64-14-3-default",
    enabled: yes,
}

What more do I need to do after these changes made in FreeBSD 14.3?

Thanks.
 
Back
Top