Commit Graph

49 Commits

Author SHA1 Message Date
sonicaj
8e86e2d981 NAS-137225 / 26.04 / Fix scale build for trixie (#925)
* Trixie related changes for scale-build

* Point to HM mirrors

* Update apt preferences for trixie

* Update debootstrap changes for trixie

* Minor fix

* Remove python3 package

* Remove mandatory explicit dep

* Use openjdk-21-jdk for kernel

* Update passwd

* There is no need for custom openssl now

* Move from libssl3 to libssl3t64

* Remove util-linux from build manifest

* Set env variable for spdk

* Don't buidl spdk for now

* ipmctl is not available in stable

* Remove legacy sysv unit stuff

* Comment out netdata for now

* Small umount fix

* Also umount efivars

* Update build manifest to reflect updated branches

* Remove nfs entry from mtree

* Make sure to umount efivars

* Properly have apt sources fixed in update image

* Pull in grub2-common

* Add netdata mirror

* Fix url

* Make sure corepack is non-interactive

* Update netdata groups

* Fix efivars mounting

* Properly use clean_mounts

* Add fixme for netdata

* Properly comment out spdk explicit deps

* Remove grub-efi-amd64-signed from iso

* Make sure efivarfs is definitely mounted

* Bring in isc-dhcp-client for now

* Revert "Bring in isc-dhcp-client for now"

This reverts commit 259ffebba5.

* Only try to umount efivarfs if host is actually efi based

* Update repo's branches
2025-09-19 21:55:20 +05:00
sonicaj
76b930d18c NAS-134870 / 25.10 / Allow specifying secret env variables in the build (#842)
* Allow specifying secret_env in build manifest

* Get secret env initialized when initializing package

* Add logic to read secrets file

* Make sure secrets are properly set for package when building the package

* Expose scale release version variable as well

* Fix typo

* Make sure env variables are actually passed to the package itself

* Add secrets yaml file to git ignore

* Do not expose build env variables in ps output
2025-04-18 20:34:12 +05:00
Andrew Walker
9480a44dde NAS-132966 / 25.04 / Always add python3 as an explicit dependency (#789)
* Always add python3 as an explicit dependency
* Set python branch priority
2024-12-09 14:10:23 -06:00
Waqar Ahmed
187576eb42 Rename ccache to supports_ccache 2023-05-24 16:40:46 +04:00
Waqar Ahmed
420703d56f Have package use ccache mixin 2023-05-24 10:38:57 +04:00
Waqar Ahmed
a28f459d85 Allow specifying ccache for individual packages 2023-05-24 10:04:35 +04:00
Brian Meagher
5aa94becda Revert "Initial ccache support"
This reverts commit 5a2d36166b.
2023-05-23 08:28:47 -07:00
Brian Meagher
5a2d36166b Initial ccache support
Force CCACHE_DIR to /root/.ccache
2023-05-18 17:17:08 -07:00
Waqar Ahmed
1e255434a6 Do not instantiate kernel module anymore 2023-05-10 01:12:39 +04:00
Waqar Ahmed
13c2b4014c Remove kernel module usages 2023-05-10 01:12:13 +04:00
Waqar Ahmed
b0ec59c0f5 Properly map dependencies of debug packages 2023-05-05 07:03:51 +04:00
Waqar Ahmed
3188b8a7e9 Allow specifying depscmd 2023-05-05 05:45:30 +04:00
themylogin
c4e81bce50 Fix tests 2023-05-04 20:41:44 +02:00
Waqar Ahmed
dd3b9d6ec4 Define kernel-dbg as a dependency when kernel module is set 2023-05-04 20:05:42 +04:00
Waqar Ahmed
4dcd10984d Define source name separately 2023-04-05 21:53:09 +05:00
themylogin
f1b38c78bb make check_upstream_package_updates to check forked Debian repos and python-truenas-requirements 2022-11-02 19:58:19 +01:00
Waqar Ahmed
a805019522 Allow conditional consideration of specified sources for building/checkout 2022-08-05 15:34:47 +05:00
Waqar Ahmed
8e99d96507 Validate defined identity file path is valid 2022-08-04 22:05:35 +05:00
Waqar Ahmed
e3b5a74235 Add logic to only allowing building specific set of desired packages 2022-06-21 15:35:27 +05:00
Waqar Ahmed
21c1bf9da5 Allow basic branch out functionality in packages 2021-08-14 02:45:58 +05:00
Waqar Ahmed
86e09c35f4 Do not make shallow clones for checkout 2021-08-14 02:05:48 +05:00
Waqar Ahmed
b3ad84f58a Allow specifying environment variables independently
This commit adds changes to allow specifying enviornment variables independently for each package. This is helpful to avoid influence of one env variable meant for a specific package on another which might result in changed behavior when it builds.
2021-06-06 18:27:51 +05:00
Waqar Ahmed
dbca2bea90 Update package creation target to utilise new logging method 2021-05-09 23:27:38 +05:00
Waqar Ahmed
77033c3cb8 Add logger context for checkout target 2021-05-09 23:27:38 +05:00
Waqar Ahmed
4249e4e37c Clone/update submodules of package's sources 2021-05-09 23:27:38 +05:00
Waqar Ahmed
e71f8ad1fc Decode subprocess output by default 2021-05-09 23:27:38 +05:00
Waqar Ahmed
82e6347099 Only delete directories if they exist 2021-05-09 23:27:38 +05:00
Waqar Ahmed
0c2aeccbec Build grub with a delay to prioritise other packages 2021-05-09 23:27:38 +05:00
Waqar Ahmed
409c7401e2 Freeze requirements.txt 2021-05-09 23:27:38 +05:00
Waqar Ahmed
3ed09cec5a Allow specifying priorities in a single batch 2021-05-09 23:27:38 +05:00
Waqar Ahmed
0142bbe770 Use coloredlogs for logging 2021-05-09 23:27:38 +05:00
Waqar Ahmed
4b50d1688d Allow building packages in parallel 2021-05-09 23:27:38 +05:00
Waqar Ahmed
8bf167c4d7 Refactor paths file name 2021-05-09 23:27:38 +05:00
Waqar Ahmed
1934facc2b Do not propogate file based logger to stderr 2021-05-09 23:27:38 +05:00
Waqar Ahmed
8f3aa93512 Have package sources using bind mount 2021-05-09 23:27:38 +05:00
Waqar Ahmed
a9946c2f2f Update apt sources before running update 2021-05-09 23:27:38 +05:00
Waqar Ahmed
3fca9fb681 Mount tmpfs separately for each package as required 2021-05-09 23:27:38 +05:00
Waqar Ahmed
6d1e849ef9 Fix circular import 2021-05-09 23:27:38 +05:00
Waqar Ahmed
ed5aac5452 Add build environment variables when building packages 2021-05-09 23:27:38 +05:00
Waqar Ahmed
c275c3c904 Add logic to build packages 2021-05-09 23:27:38 +05:00
Waqar Ahmed
ea7c439b7a Make cleaning packages part of package class 2021-05-09 23:27:38 +05:00
Waqar Ahmed
1cf00c4149 Restore basechroot for each package 2021-05-09 23:27:38 +05:00
Waqar Ahmed
42b283bfc3 Add overlay mixin class 2021-05-09 23:27:38 +05:00
Waqar Ahmed
453f0e71e5 Add initial prebuild support 2021-05-09 23:27:38 +05:00
Waqar Ahmed
8dc483e673 Implement kernel overlayfs 2021-05-09 23:27:38 +05:00
Waqar Ahmed
eefff5dd47 Add logic to determine packages which need to be rebuilt 2021-05-09 23:27:38 +05:00
Waqar Ahmed
59acad5b0f Add ability to determine if a package needs to be rebuilt 2021-05-09 23:27:38 +05:00
Waqar Ahmed
b3250b7787 Add ability to retrieve package dependencies 2021-05-09 23:27:38 +05:00
Waqar Ahmed
5fda5463dd Add a package class 2021-05-09 23:27:38 +05:00