Commit graph

118 commits

Author SHA1 Message Date
jld3103
c70db11d64 Fix resize2fs 2021-10-10 21:21:46 +02:00
jld3103
58cf5b40b2 Add new cross repo 2021-10-10 21:21:23 +02:00
jld3103
e6d084b513 Require name for profile init 2021-10-10 15:29:03 +02:00
InsanePrawn
4bba3e606c crossdirect rustc hotfix 2021-10-10 14:06:25 +02:00
InsanePrawn
d1e07c0841 config/profile init: updates and fixes 2021-10-10 02:12:58 +02:00
InsanePrawn
33dd19a533 Add config init and config profile init 2021-10-09 22:01:11 +02:00
InsanePrawn
bae5fbc272 config.py: add error_shell to CONFIG_RUNTIME_DEFAULTS, clean up return types of some functions 2021-10-09 18:56:31 +02:00
jld3103
77ebd48eab Fix image building 2021-10-08 15:22:02 +02:00
jld3103
a8695f0095 Create pacman cache dir if it does not exist 2021-10-08 10:03:10 +02:00
InsanePrawn
5f67435570 Really really make crossdirect work: symlink /usr/include to /include 2021-10-07 13:51:01 +02:00
InsanePrawn
c7b2159481 Respect crossdirect and ccache build config in cmd_build() 2021-10-07 01:14:42 +02:00
jld3103
291ddb85ca Always install base, base-devel and git inside of the base chroots 2021-10-06 21:25:44 +02:00
jld3103
c4760bd99e Fix formatting 2021-10-06 21:02:30 +02:00
jld3103
13c284012d Check PKGBUILDs for arches hint 2021-10-06 21:00:47 +02:00
jld3103
06fb2af77f Remove broken docker pkgbuilds mount 2021-10-06 21:00:22 +02:00
InsanePrawn
f76164215b build(): don't install dependencies that we provide ourselves as split-packages 2021-10-05 21:00:53 +02:00
InsanePrawn
eb67c34f9b i think crossdirect works for real now? 2021-10-05 20:31:11 +02:00
InsanePrawn
f90bf1006a Fixup error shell, exception log level in main() and arch checking before docker wrapping in cmd_build() 2021-10-05 17:34:43 +02:00
InsanePrawn
5eefcc9942 packages/cmd_build(): add check for unknown arch + error message 2021-10-05 17:07:11 +02:00
InsanePrawn
643cc21d3c bugfixes! what kind of drunk seafood wrote these? 2021-10-05 16:36:44 +02:00
InsanePrawn
c1ece2d616 main.py: add error shell flag for popping a shell on exceptions 2021-10-04 20:16:59 +02:00
InsanePrawn
0b2caa02af Split up repos by arches, always add already-built packages to repo file again, don't use repo-add --new, ...
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-04 20:16:27 +02:00
InsanePrawn
1ba4dcfaec refactor packages.py code into chroot.generate_makepkg_conf(), use generated conf in check_package_version_built() 2021-10-04 14:36:39 +02:00
InsanePrawn
1c8fd7eccd Revert config disabling crosscompile by default 2021-10-04 13:37:16 +02:00
InsanePrawn
f95d16c996 fix crosscompile -> add makepkg_cross_{arch}.conf generation
TODO: use everywhere
2021-10-04 13:34:37 +02:00
InsanePrawn
6242e4850d partially fix crossdirect and QEMU_LD_PREFIX env var, copy /lib/ld-linux-* to foreign chroot for cross-execution 2021-10-04 13:34:37 +02:00
jld3103
527cc5606c Fix formatting 2021-10-02 08:52:58 +02:00
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
181643e6c0 Make pacman cache arch-specific 2021-10-01 18:28:50 +02:00
jld3103
4d9fe835e7 Log when installing packages 2021-10-01 12:33:22 +02:00
jld3103
acf59d35e8 Fix exit code handling of e2fsck 2021-10-01 12:32:44 +02:00
jld3103
c0f7a4ba63 Remove old prebuilts mount in docker wrapper 2021-10-01 12:32:11 +02:00
jld3103
94c6829663 Print path of newly created config file 2021-10-01 12:31:39 +02:00
jld3103
a3ab240bcc Fix forwarding and ssh 2021-10-01 12:31:08 +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
0b134257cc make main.py _the_ entry point, also chmod +x 2021-09-30 17:19:55 +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
81f22e67ae include image size in flavour, centralise fs resizing in image.py 2021-09-30 05:04:42 +02:00
InsanePrawn
a3d85cda8c config.get_path(), wrapper: remove --config/-C from wrapper args 2021-09-30 03:50:47 +02:00
InsanePrawn
faa855eda9 Improve cache clean 2021-09-30 03:49:20 +02:00
InsanePrawn
9b83bb16cd forgot utils.py 2021-09-30 01:00:28 +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
1d172ad635 reactive image inspect cmd since we're now no longer forced to wrap in docker 2021-09-29 23:21:19 +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