opnsense / tools

OPNsense release engineering toolkit
https://opnsense.org/
BSD 2-Clause "Simplified" License
279 stars 206 forks source link

Update `pkg` port #442

Closed 0xThiebaut closed 1 day ago

0xThiebaut commented 1 day ago

On a stock 14.1-RELEASE, make ports fails due to a mismatch of the installed pkg version.

>>> Running build step: ports
>>> Passing arguments: (none)
Installed pkg version '1.21' does not match required version '1.19'
*** Error code 1
# pkg --version
1.21.3
# freebsd-version
14.1-RELEASE

On a side-note, where could I find the documentation to bump the package myself?

fichtner commented 1 day ago

Yes, you need to reinstall pkg from our ports tree to ensure a compatible build.

0xThiebaut commented 1 day ago

Thanks for the info, seems I missed that part. I would recommend adding this to the opnsense/tools documentation which just mentions "FreeBSD 14.1-RELEASE for amd64" as a build dependency.

fichtner commented 1 day ago

Normally the versions should be in sync so the issue does not pop up. Unfortunately a lot of other work made us fall behind (and we do not particularity need the newer stuff in pkg).

Maybe we can just improve the error message to ask user to install our version?

0xThiebaut commented 1 day ago

Maybe we can just improve the error message to ask user to install our version?

That would be ideal indeed, alongside some instructions on how to perform this install?

Unfortunately a lot of other work made us fall behind

Absolutely understandable, I'm grateful for OPNsense to exist and be opensource. Thanks for the swift responses!

fichtner commented 1 day ago

fa856d166fb4 should do the trick :)