Commit Graph

256 Commits

Author SHA1 Message Date
Franco Fichtner 563165ede2 build: make DEVELBRANCH optional; closes #117 2019-02-24 18:33:44 +01:00
Franco Fichtner a999844f36 device: bpi.conf and cross-build docs #113 2019-02-13 21:39:48 +01:00
Franco Fichtner 3657c59694 build: remove mixed version-arch marker
This has been obsoleted in opnsense-update and shall be removed
for our 19.1 builds.  Hooray for progress.
2019-01-12 14:35:55 +01:00
Franco Fichtner 2eeb64271e build: only set marker if there's no '.pkg-err' file
Build steps for packages predate the .pkg-err file so we had no
way of knowning about the integrity of a build.  Now we can
directly check the status of the build.

The side effect is that "make plugins" and "make core" will run
"make ports" if that failed and fail there.  While there's a
little overhead in automated scripts this is more consistent with
build flow as we do not start higher targets that depend on broken
dependencies that look correct.  This was reported a few times
over the years.
2019-01-02 15:20:22 +01:00
Franco Fichtner afdaf2e32d build: add architecture to sets as well 2018-11-28 11:44:49 +01:00
Franco Fichtner 2299aca0ed build: offset issue with wc(1) 2018-11-28 10:50:35 +01:00
Franco Fichtner 314878d80f build: support ".size" versioning extention for sets 2018-11-28 06:47:16 +01:00
Franco Fichtner bbd3e45d62 build: exclude /var from mtree file
/var MFS kills all of the files and it's extremely difficult to
construct a safe health check around the fact that they can be
missing.
2018-11-21 08:24:48 +01:00
Franco Fichtner 3c8edd00fe build: remove spurious WRKDIR change
It was needed at some point in the past but hasn't been useful
for a good while now.  Recently it broke because the plist test
is now run prior to 'package' target and while it may be fixed
there by creating the directory this code using a custom WRKDIR
is the bigger bug so good-bye. :)
2018-11-04 16:46:40 +01:00
Franco Fichtner 7070e7a06e build: only show generated sets 2018-11-04 12:51:31 +01:00
Franco Fichtner 474e3188b7 build: add disabled lock set for testing 2018-11-02 02:40:05 +01:00
Franco Fichtner 578adffefe build: show package set file size after completion 2018-11-02 07:18:34 +01:00
Franco Fichtner 4f5a745c52 config: more changes for Pyhton split
ansible and py-boto3 are missing for now.
2018-10-28 08:34:44 +01:00
Franco Fichtner 63ad5534f7 build: inject obsolete set into base set 2018-10-15 16:04:08 +02:00
Franco Fichtner 68e33100d4 build: unify a few moving parts before obsolete rework 2018-10-15 07:48:05 +02:00
Franco Fichtner b79da85b72 build: signature doesn't have to be there 2018-10-13 14:11:24 +02:00
Franco Fichtner da742c492e build: two small changes
* Always purge signatures when we can't generate new ones.
* Instead of testing who called us see if config files are there.
2018-10-14 12:53:28 +02:00
Franco Fichtner 5cf68c1729 build/base: repack set for mtree inclusion as well 2018-10-13 10:23:34 +02:00
Franco Fichtner f90365b32b build/kernel: (re)generate mtree file for later use 2018-10-13 09:50:32 +02:00
Franco Fichtner a6f43962a2 build: do not start configd on image builds; closes #93 2018-10-09 15:34:50 +02:00
Franco Fichtner d163224a84 build/ports: correct origin for deps locking, add log line
While here, move cleanup_packages to common for the sake of making
it easier to comment out for testing / development purposes.
2018-09-30 20:29:04 +02:00
Franco Fichtner deada0aa82 scripts/nightly: improve logs set directory structure 2018-09-18 22:51:28 +02:00
Franco Fichtner 29c2abe2b0 build/rewind: finish tag matching, add experimental rewind target; closes #71
For now this goes undocumented.  The trouble with rewind is:

1. To rewind we need to reset all repositories.  That only really
   works on top of the current branch.  Possible solution: only
   allow rewind for the currently up-to-date version.

2. The master branch development version is in the way and will
   probably prevent people from building older versions because
   of this or that mismatch.  Possible solution: allow a build
   without development packages included and maybe default to it.
2018-09-17 22:08:35 +02:00
Franco Fichtner 418b0eec9a build/confirm: simple but effective confirmation dialog 2018-09-17 02:26:49 +02:00
Franco Fichtner 7315cf2f78 build: logs upload for nightly
Logs still have issues due to their incredible length, but
for now this makes daily checks easier than ever in any case.
2018-09-13 21:25:10 +02:00
Franco Fichtner 29d0b629c9 build: make some noise on stale PID
This should be fixed in ports now, but let's not gamble too much.
2018-06-28 07:47:48 +02:00
Franco Fichtner 488a87f9ac build: image names inherit suffix, easier to tell images apart 2018-05-28 08:07:10 +02:00
Franco Fichtner bd75b54236 build: install additions before core to avoid spurious errors 2018-04-29 16:10:17 +02:00
Franco Fichtner 95cff08473 build: do not overwrite version tag 2018-04-08 13:35:21 +02:00
Franco Fichtner ac27bedd2d config: register all languages as modifiable versions 2018-04-01 08:34:46 +02:00
Franco Fichtner 2884a5fc8e build: add SERVER knob and PLUGINSENV 2018-03-17 09:13:29 +01:00
Franco Fichtner 042334ef50 build: make PHP version selectable from the top 2017-11-27 21:33:27 +01:00
Franco Fichtner 58e1c6e0c0 build: change paths to build directories
Discussed with: @adschellevis
2017-10-23 09:55:24 +02:00
Franco Fichtner e5c81f8e1a build: create all required dirs on clone 2017-09-05 07:34:59 +02:00
Franco Fichtner 350fab299c build: remove by pkg glob alone, mixed port and plugins origin is tricky 2017-09-05 06:22:39 +02:00
Franco Fichtner 3f85f895e3 build/arm: sensible changes, some consolidation in other images 2017-09-05 06:14:01 +02:00
Franco Fichtner de69db6994 build/arm: we overwrote core hooks, more cautious approach 2017-09-03 14:46:46 +02:00
Franco Fichtner c56ebd53c9 build/arm: finish cross-building image, assorted cleanups 2017-09-03 12:36:50 +02:00
Franco Fichtner 66f5ef1d6e build/arm: add arm-based image generation code
This doesn't fully work yet, the +POST_INSTALL of core and
possibly plugins does not like the cross-build env yet.
2017-09-03 11:13:17 +02:00
Franco Fichtner b721d322ab build: write nano like serial, refactor LABEL handling 2017-08-31 07:55:35 +02:00
Franco Fichtner 837c52fa54 build/test: repair os-* globbing
We can't install both types of plugins, so when SUFFIX= we need to
exclude "-devel".  Not the prettiest approach, but should do it in
99% of cases.
2017-08-26 08:27:08 +02:00
Franco Fichtner e571bac057 build/test: install globs as well
Still stalls in template regeneration, needs some thinking.
2017-08-21 09:35:06 +02:00
Franco Fichtner 71e7eca89d build: prevent start of configd during build runs 2017-08-21 09:16:23 +02:00
Franco Fichtner 7217b3e952 build: REFTYPE is no longer used 2017-08-17 10:42:43 +02:00
Franco Fichtner 281a3cd478 build: tell user about removal of non-git repo 2017-08-05 13:41:37 +02:00
Franco Fichtner c7758a578c scripts/nightly: another try in redirect 2017-08-05 13:34:20 +02:00
Franco Fichtner 12717fff77 scripts: add nightly script with basic logging support 2017-08-05 13:07:27 +02:00
Franco Fichtner a7112fd3e4 build: simplify the setup / update of repos
The `update' target has made several advances in the last months,
so that it can be used to collect new changes, switch to the correct
branch and also clone repositories as needed.
2017-08-05 12:45:13 +02:00
Franco Fichtner 3454045c6a build: when signing, let it be know what we sign for 2017-07-26 15:25:36 +02:00
Franco Fichtner a2907560f3 build: speed up package search by simplifying+limiting glob pattern 2017-07-26 15:12:20 +02:00