build: let RECIPE pull configurations from git #529
Revisiting previous it looks like we can just pull a configuration
from git. Make this true for ports.conf and plugins.conf and
unify some of the necessary code.
All we need for this is TOOLSTAG, which already works for 26.7.10
because there is a tag for it.
make.conf is a bit harder, but definitely not impossible.
build: digest ports, plugins and make configs as well for RECIPE #529
This is a stop-gap measure to some degree since 64118a51609d showed
we can alter the recipe by changing a config file amongst other
things. This is neither easily visible to the user of a RECIPE nor
is it going to help much in the long run considering how many
knobs there are to alter the build as it is now.
At the moment this is an experimental run so simply invalidate the
RECIPE instead of letting it run even though things are going out
of sync quickly. Later we need to thing of something else, ideally
not having to copy every config file and dropping the environment
into a file as well because we also have to consider other archs,
kernels, .conf.local files, etc.
The next time touching the file we should also refactor this into
a single function to make it easier to handle in the future.
build: add RECIPE/patch support
With this we can make hotfixes much better visible, repeatable
and manageable.
makedist generates the RECIPE distribution file for later
use making sure to use the suffix, repeatable commit hash and
write-tree hash. The package respositories will build upon
all of those when specifying RECIPE which makes checking the
version against tampering very easy. Tree hash visibility
is also available in core and plugin components with
# opnsense-version -T <core_or_plugin_name>
The dist file also has a way of enforcing that the content of the
conf file is valid by registering a hash of its content in dist.
It's true that every whitespace change will change the CONFDIGEST
but I also see no point in touching the recipe if it works.
[32 lines not shown]
composite: fix a problem with recursed VERBOSE=1 use
eval would pick up the cd .. echoed by make on stdout
instead of stderr, causing commits to run twice and
breaking subsequent runs of the print target. Instead
of retaining the command echo on stderr we simply remove
that feature since debugging the make launch into the
build and composite scripts is not something we need
to debug a lot.
build: fix git_reset wanting a tag by default
This way we can imply HEAD but still use REPO_TAG if needed.
I don't think it's used anywhere but update and may have been
a leftover from the infamous rewind step gone since 2eee34003.
build: use a modified setup_clone() and remove setup_copy()
We clone the .git metadata now but leave the working dir to be modified.
Also remove the HEAD use since that is the default behavior. This should
still be quite fast while allowing us to modify the working tree without
fatal errors in the future.
config: switch suricata and rspamd to vectorscan (#522)
Hyperscan 5.4.2 has no fat runtime on FreeBSD so our build was
pinned to core2. Vectorscan selects SSE4.2, AVX2 and AVX-512
engines at runtime instead.