English Forums > Development and Code Review

Build system setup issue

(1/2) > >>

esurplusplus:
Guess I'm the only one having this issue. Trying to setup a build system, following the steps @ https://github.com/opnsense/tools . Issue I'm having is when I try to make anything, I get the error "/usr/src does not match expected branch: stable/16.7". I'm using FreeBSD 10.3-RELEASE AMD64.

franco:
Hi there,

This sanity check is quite new: you're trying to build OPNsense 16.7.x on top of FreeBSD 11.0, but it requires 10.3.

# cd /usr/src && git checkout stable/16.7


Happy new year,
Franco

esurplusplus:
Hmm, I thought I was following directions. If FreeBSD 10.3-RELEASE isn't 10.3, what ISO should I download? FreeBSD-10.3-RELEASE-amd64-dvd1.iso is what I am using atm.

Thanks for the help, that has things moving forward now, but may be pointless if I'm using the wrong version of FreeBSD.

franco:
No, that's all right. It's just that with 17.1 almost released the master branch of src.git is now FreeBSD 11.0. You need to switch to stable/16.7. Not more. :)

Note you're trying to build snapshots based on the latest changes of branches, but you could just as easily build proper releases by checking out the appropriate tags for versions, e.g. "16.7" in all relevant repositories. If a tag is missing, the latest tag is the one to use. Tags have a far better indication of good build spots, commits can go out of sync between repos and one needs to be prepared for this.

It depends on what you are trying to achieve (custom builds, OEM, test build, etc.)


Cheers,
Franco

esurplusplus:
Not having much luck. I'm mainly interested in LPRng, which is available as a package in FreeBSD, but not sure how to install it in OPNsense. I would think it would be best if it was compiled under an OPNsense system, rather than a plain FresBSD one.

Navigation

[0] Message Index

[#] Next page

Go to full version