Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Build system setup issue
« previous
next »
Print
Pages: [
1
]
Author
Topic: Build system setup issue (Read 5259 times)
esurplusplus
Newbie
Posts: 5
Karma: 0
Build system setup issue
«
on:
January 01, 2017, 06:13:08 am »
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.
Logged
franco
Administrator
Hero Member
Posts: 17657
Karma: 1611
Re: Build system setup issue
«
Reply #1 on:
January 01, 2017, 02:51:33 pm »
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
Logged
esurplusplus
Newbie
Posts: 5
Karma: 0
Re: Build system setup issue
«
Reply #2 on:
January 01, 2017, 06:09:28 pm »
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.
Logged
franco
Administrator
Hero Member
Posts: 17657
Karma: 1611
Re: Build system setup issue
«
Reply #3 on:
January 01, 2017, 09:55:52 pm »
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
Logged
esurplusplus
Newbie
Posts: 5
Karma: 0
Re: Build system setup issue
«
Reply #4 on:
January 08, 2017, 01:09:29 am »
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.
Logged
franco
Administrator
Hero Member
Posts: 17657
Karma: 1611
Re: Build system setup issue
«
Reply #5 on:
January 08, 2017, 10:14:17 am »
I see. Packages from the ports tree can be built from a running OPNsense, this thread has some insights:
https://forum.opnsense.org/index.php?topic=4218
In a nutshell:
# opnsense-code tools ports
# cd /etc
# ln -s /usr/tools/config/16.7/make.conf make.conf
# cd /usr/ports/category/port
# make install PRODUCT_FLAVOUR=OpenSSL
"OpenSSL" and "16.7" need to be changed to whatever the system has right now.
I'm going to make this a bit simpler in the future.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Build system setup issue