OPNsense Forum

English Forums => Development and Code Review => Topic started by: bigchips on January 09, 2023, 05:29:49 pm

Title: Installed pkg version '1.19' does not match required version '1.18'
Post by: bigchips on January 09, 2023, 05:29:49 pm
Trying to set up a OpnSense development environment on a fresh install of FreeBSD 13.1 and when executing "make ports" I am getting the following message:

Installed pkg version '1.19' does not match required version '1.18'

What is the preferred way to resolve this?  I can't figure out where this dependency is coming from.

Thanks,
Brett
Title: Re: Installed pkg version '1.19' does not match required version '1.18'
Post by: franco on January 09, 2023, 05:37:09 pm
Hi Brett,

FreeBSD's pkg version has been known to introduce incompatibilities and bugs so we lag a bit behind it for safety reasons. Unfortunately when setting up a new build system the latest version from FreeBSD is automatically installed and that would introduce said issues and also interfere with the ability to build.

So nowadays we require you to install the pkg version supplied by our ports tree. In your build system that would be:

# cd /usr/ports/ports-mgmt/pkg
# make && make reinstall

Sometimes the database is damaged doing a downgrade, but I don't know if that is the case for 1.19 yet.


Cheers,
Franco
Title: Re: Installed pkg version '1.19' does not match required version '1.18'
Post by: bigchips on January 09, 2023, 06:04:32 pm
That got it going.  Huge thanks for the quick reply.  Really appreciate the efforts of everyone on this project!
Title: Re: Installed pkg version '1.19' does not match required version '1.18'
Post by: franco on January 10, 2023, 03:09:15 pm
Thanks, small bump, nothing serious :D