Commit graph

98 commits

Author SHA1 Message Date
InsanePrawn
2d8c416327 Redownload sources during building since we don't know if version() was last run on the correct arch
not all programs have the same source/state across arches (i.e. -bin packages)
2021-10-02 06:37:15 +02:00
InsanePrawn
b490cd10ee Clean up envs passing for chroots, add crossdirect packages (todo: cleanup) 2021-10-02 06:36:48 +02:00
InsanePrawn
c9572bed0f accept zstandard compressed packages 2021-10-01 23:51:22 +02:00
InsanePrawn
d85c00fa12 Move mounting code to utils.py, move a lot of chroot-logic from packages to chroot.py, cmd_chroot
also moar crossdirect

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-01 18:30:01 +02:00
InsanePrawn
a4c06446e3 first attempt at adding crossdirect
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-01 18:30:00 +02:00
InsanePrawn
f8d2faf571 After building a package, remove it from pacman cache if a same name file already exists (checksums will differ) 2021-09-30 17:48:15 +02:00
InsanePrawn
143994d23a fix /app -> var mgiration typo 2021-09-30 17:26:45 +02:00
InsanePrawn
482c5f8111 Get rid of /app hardcodes
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-30 17:18:32 +02:00
InsanePrawn
0e21f9060d small fixes 2021-09-30 05:05:30 +02:00
InsanePrawn
a3d85cda8c config.get_path(), wrapper: remove --config/-C from wrapper args 2021-09-30 03:50:47 +02:00
InsanePrawn
f424e9ce8f Don't wrap in docker for little wrappers like ssh and telnet if the tool is available on the host 2021-09-29 23:49:46 +02:00
InsanePrawn
f3794f939e Move enforce_wrapper() into appropiate CMDs. This speeds up --help as a side effect! 2021-09-29 23:18:12 +02:00
InsanePrawn
f6678181b8 let's break all the things! (use distros to generate repos)
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-29 16:54:26 +02:00
InsanePrawn
3594952a13 Cleanups, packages/cmd_check: ignore comments, cmd_build: add --force
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
23ff0d50e0 packages.py: cleanups 2021-09-26 17:19:30 +02:00
InsanePrawn
d08e25fe1b Add distros.get_base_distros() 2021-09-26 17:19:30 +02:00
InsanePrawn
fef0f07297 buildroot: don't expect signatures from kupfer repos, small error logging bugfix in chroot.py 2021-09-26 17:19:30 +02:00
InsanePrawn
3b69c2235b Crosscompile is borked, host-compile seems working
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
044b721edd fixed dep detection. TODO: add /prebuilts/$repo to host/native pacman.conf
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
ba57162f3b please the lint0r 2021-09-26 17:19:30 +02:00
InsanePrawn
44261ffccb new dependency generation algorithm, dynamic chroot paths [almost] everywhere 2021-09-26 17:19:30 +02:00
InsanePrawn
04cce26ca0 chroots: use path from config
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
b87fdf722b packages: honor build.crosscompile config setting 2021-09-26 17:19:30 +02:00
InsanePrawn
82409e63c4 packages: use thread count from config 2021-09-26 17:19:30 +02:00
InsanePrawn
144acee10f WIP: Improve config parsing, make --verbose and --config-file global options
Bonus: Generalize and reuse cmd_ssh()

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
jld3103
c536baec33 Fix optdepends comments check 2021-08-18 13:25:53 +02:00
jld3103
2054f48133 Fix another infinite loop in dependency resolution 2021-08-18 13:11:19 +02:00
jld3103
7729a7982e Restructure pkgbuilds layout 2021-08-18 12:27:03 +02:00
InsanePrawn
76a7ddafbe packages: add string representation
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-17 21:29:15 +02:00
jld3103
67bbf90b5c Fix sub-dependency resolution and handling of pkgbase 2021-08-17 21:23:34 +02:00
InsanePrawn
2b36325b92 Avoid endless dependency analysis loop
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-17 21:22:40 +02:00
jld3103
89e8091718 Require 'provides' on -git packages 2021-08-14 15:33:58 +02:00
jld3103
398e1f0326 Make it possible to build multiple packages at the same time and remove unnecessary makepkg invocations 2021-08-14 10:11:28 +02:00
jld3103
35ec53b615 Fix glibc locales
Fixes https://gitlab.com/kupfer/kupferbootstrap/-/issues/11
2021-08-13 20:25:33 +02:00
jld3103
25f8607382 Remove broken error check 2021-08-08 18:38:07 +02:00
jld3103
98040d8a31 Apply formatting 2021-08-08 18:32:42 +02:00
jld3103
97598cd597 Improve package discovery and add PKGBUILD formatting check 2021-08-08 18:24:31 +02:00
jld3103
158bdad40b Fix location of local etc and bin files 2021-08-08 13:15:48 +02:00
InsanePrawn
66e9927dd4 packages: fix line parsing
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-06 05:31:29 +02:00
InsanePrawn
4d21bb8234 cmd_build(): actually override packages{} with selection when not building all
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-06 05:31:29 +02:00
InsanePrawn
838124b856 WIP: discover_packages(): export name->package dict, also build local depends
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-06 05:31:29 +02:00
InsanePrawn
29e1914ca1 Simplify cmd_build()
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-06 05:31:29 +02:00
InsanePrawn
cde685f06e provide /bin/pacman_aarch64 wrapper script, chroot: handle extra repos in pacman.conf
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-06 05:24:06 +02:00
jld3103
1f5357bca6 WIP: Add rootfs building and flashing and other misc commands 2021-08-05 20:26:48 +02:00
jld3103
8886725971 Supress confusing output 2021-08-04 21:13:57 +02:00
jld3103
66a13a4ac5 Don't skip integrity check everywhere 2021-08-04 21:07:39 +02:00
jld3103
150964b0e9 Remove useless pacman option when install package to host 2021-08-04 21:03:52 +02:00
jld3103
f9ba5a3cfd Initial commit 2021-08-04 18:36:37 +02:00