2796 Commits
Author SHA1 Message Date
Franco Fichtner 00a0335dcd build: regenerate the runtime marker for implicit packages
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.
2026-12-03 15:28:30 +01:00
Franco Fichtner e35fda3636 config: update 26.7.10 recipe for p2 2026-12-03 14:27:58 +01:00
Franco Fichtner 44bc7f4da2 build: fix typo introduced in 25d8c66813 2026-12-03 14:27:58 +01:00
Franco Fichtner cb4133ef20 build: squelch git-am whitespace errors 2026-12-03 14:25:18 +01:00
Franco Fichtner 4e3d3f1a9f composite/nightly: add proper status for upload log 2026-12-02 11:36:16 +01:00
Franco Fichtner c6423eb980 config: fix options out of sync 2026-12-02 11:24:21 +01:00
Franco Fichtner 50e676eade build: allow bump to runtime for cached packages
Previous would move libidn2 to aux which then fails when
installing git/curl.
2026-12-02 10:41:15 +01:00
Franco Fichtner eba7b5ad89 build: add the packages stage to the nightly build
It will creat the aux set from the packages of it got
this far.
2026-12-02 10:13:56 +01:00
Franco Fichtner 43705d63b9 config: remove some ports that were added as build helpers a long time ago
If they are being built they will be added to the aux set now anyway.
2026-12-01 15:06:01 +01:00
Franco Fichtner 15efbc8457 build/skim: repair breakage 2026-12-01 13:26:43 +01:00
Franco Fichtner 2f841bee57 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.
2026-12-01 09:33:48 +01:00
Franco Fichtner 25d8c66813 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.
2026-11-30 20:35:42 +01:00
Franco Fichtner fcf17cb923 build: support rename for RECIPE 2026-11-30 12:01:06 +01:00
Franco Fichtner e895133817 config: update recipe 26.7.10p1
Our first real world test of recipe/patch support!
2026-11-30 11:40:23 +01:00
Franco Fichtner 8031e229ef config: plugins part of #527 was forgotten 2026-11-26 16:51:56 +01:00
Franco Fichtner 049fbb00d0 Revert "config: add KERBEROS option to kea"
This reverts commit 64118a5160.

Although this is probably fine the user requesting this didn't
come back yet with the results.
2026-11-26 16:50:47 +01:00
Franco Fichtner c5af0cf7c2 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.
2026-11-26 13:54:31 +01:00
Franco Fichtner d4e11a89a2 build: make list_config behave like list_packages 2026-11-26 11:51:06 +01:00
Franco Fichtner 67dff17791 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.
2026-11-26 11:35:00 +01:00
Franco Fichtner 9f938e68bb build: convert AUXLIST handling 2026-11-26 09:25:31 +01:00
Franco Fichtner 34a5dd5c92 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.
2026-11-26 08:51:09 +01:00
Franco Fichtner 4a251a6655 build: back to the beginning #529
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.
2026-11-26 08:50:25 +01:00
Franco Fichtner 25cb8128fa build: block RECIPE use for scripts that have no support 2026-11-25 22:58:57 +01:00
Franco Fichtner 7c713e595a build: verify_recipe now protects load_config, too #529 2026-11-25 22:52:32 +01:00
Franco Fichtner ecb836a549 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.
2026-11-25 22:35:16 +01:00
Franco Fichtner 6586fd9171 build: digest ports, plugins and make configs as well for RECIPE #529
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.
2026-11-25 20:02:05 +01:00
Franco Fichtner fa4e43bc92 build/skim: add a raw mode 2026-11-25 12:15:28 +01:00
Franco Fichtner 64118a5160 config: add KERBEROS option to kea 2026-11-24 13:19:55 +01:00
Franco Fichtner 7f52269887 config: add recipe for 26.7.10
To be continued...  ;)
2026-11-24 12:07:04 +01:00
Franco Fichtner 77f183c3c4 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.

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.
2026-11-23 14:51:19 +01:00
Franco Fichtner d59571f6ed 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.
26.7.10
2026-11-23 09:21:28 +01:00
Franco Fichtner 327aef6e0a build: use git_switch with all other setup_clone calls 2026-11-22 13:30:28 +01:00
Franco Fichtner bbe5004b9d build: use git_switch for setup_clone in ports, core and plugins 2026-11-22 13:08:09 +01:00
Franco Fichtner 7fc763c04a config: rebase for incoming 26.7.10 2026-11-22 12:29:44 +01:00
Franco Fichtner 6a56f17edf 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.
2026-11-22 10:46:04 +01:00
Franco Fichtner b21d3b9129 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.
2026-11-21 22:05:46 +01:00
Franco Fichtner dd33a59af9 build: export 1:1 PRODUCT environment variables from make
While here also add EMAIL.
2026-11-21 08:56:35 +00:00
MajorP93 92156e335d 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.
2026-11-19 16:37:30 +00:00
Franco Fichtner f8109cf123 build/ports: implement ports origin expansion; closes #525 2026-11-15 17:07:50 +01:00
Franco Fichtner 6e86fd035c build/skim: move make.conf to etc/ 2026-11-15 17:05:26 +01:00
Michal Weinert 5d2c0cc3a4 config: add zabbix 8.0 LTS 2026-11-15 14:45:04 +00:00
Franco Fichtner 877ba55e86 config: rebase for 26.7.9 26.7.9 2026-11-10 14:32:02 +01:00
Franco Fichtner dcf5abad6a config: UPNP_NOPPP is no longer a valid option 2026-11-02 09:31:39 +01:00
Franco Fichtner 9585462617 config: brace for VECTORSCAN
We want this but we don't want to break the build at the moment
and do a silent switch without a test.
26.7.8
2026-10-27 13:37:26 +01:00
Franco Fichtner 228d827769 composite/pkgver: improve to find packages in aux set 2026-10-26 16:41:30 +01:00
Franco Fichtner de55102bc4 config: 5e98733a.0 can't both be untrusted and obsolete 2026-10-26 10:55:34 +01:00
Franco Fichtner 2676d20045 config: rebase for 26.7.8 2026-10-26 10:29:31 +01:00
Franco Fichtner 5625ce5fae config: switch openldap from net to databases 26.7.7 2026-10-13 09:01:12 +02:00
Franco Fichtner b21a4bd55c composite/hotfix: do not use distfiles on single port hotfix 2026-10-13 08:44:19 +02:00
Franco Fichtner 15267ebcb4 config: add netflector plugin (devel for now) 2026-10-13 08:37:20 +02:00