We may still want to remove markers when we remove packages,
but for now just make sure the patched packages set does not
strip any packets to aux that are acutally runtime.
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.
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.
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.
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.
The CONFDIGEST is now the same as 7f52269887 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.
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.
This is a stop-gap measure to some degree since 64118a5160 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.
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.
Let the patch stage know which packages should be run through
the hotfix stage while adhering to RECIPE when building from
the authorative branch even though we may leave it due to the
modifications. It also passes all the to be rebuilt packages
to the hotfix step at once, which may need more scrutiny later
on but should be fine now that we an also expand implicit ports
through hotfix.
The interesting aspects are that:
1. recipe/patch use is entirely optional even for hotfixes or
full patch releases.
2. it uses the same infrastructure but makes the build repeatable
which could also be published especially if commit and tree
hashes are no longer matching what's in the stable branches.
3. it self-documents the used components even if we don't use
the patch build and the dist file also records matching hashes
of src, ports, plugins and core repositories.
While here remove old COREVERSION support because the RECIPE has
the same type of support and it was largely unused because it was
missing the right facility to be used from.
-devel rebuilds are a bit of a hit and miss but that was always
the case before. In the average case offering the rebuild as
well is fine since without EXTRABRANCH=master we don't see these
packages and they are not rebuild. If they are expected they use
the latest master branch state at the time of the build which is
also what should be the expected outcome. In the latter case
one needs to remember to run the update target beforehand. Most
things hotfixed also apply to the master branch wanting these
shipped as well.
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.
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.
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.
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.