build: remove packages cleaning aux side effect
Been bitten by this a few times. Might be useful to make the
download not fail if e.g. make download-packages,aux does not
manage to build the aux set because it's not gotten to the
packages stage yet.
make: add a "review" target which shows all recipe modifications
We need this for review and patch notes. This intentionally only
works after "makedist" so we know the modification feed is complete
and applies cleanly.
Revert "config: add KERBEROS option to kea"
This reverts commit 64118a51609de66906980523d766ab862ed6dc74.
Although this is probably fine the user requesting this didn't
come back yet with the results.
build/ports: detect a mismatch in the ports build dependencies
This is hard to detect. The ports tree knows this is happening
and rebuilds the differing version of the ports dependency every
time the parent needs to be rebuilt and ports.sh is right to not
cache this rebuild because another rebuild already existed.
We can find out after the fact and throw an error pointing the
user to one of two solutions. Make the build abort before
emitting a new packages set since worst case a shared library
mismatch could be introduced into it this way.
Hit this during a suricata rebuild with vectorscan differing in
port revision. Not a very light test case for further development
so next time this happens we can refactor the error passing.
build: remove AUXSET in favour of #528
As a test remove "gmake" which was one of the early build
dependencies added to ports.conf to make the build a bit
faster.
build: better load_config handling and TOOLSTAG check; closes #529
I think we can close this and add other configs under RECIPE
protection later on. hotfix runs fine with and without RECIPE
and thus covers ports, plugins, core, and packages no problem.
build: back to the beginning #529
The CONFDIGEST is now the same as 7f52269887ee again and
we can restore plugins.conf, ports.conf and make.conf from
git under RECIPE.
Add some exceptions for RECIPE-bound scripts. It helps
with identifying parts that are missing support.
Also refactor a bit more.
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.