Commit graph

539 commits

Author SHA1 Message Date
InsanePrawn
035e197f64 wrapper: add WRAPPER_PATHS to point ccache and rust to predictable locations 2022-11-09 19:39:59 +01:00
InsanePrawn
94c9a99e2f requirements.txt: add setuptools required by munch 2022-11-09 19:39:59 +01:00
InsanePrawn
e6718ffc99 Dockerfile: clean up pkgconfig-aarch64 leftover 2022-11-09 19:39:59 +01:00
InsanePrawn
a3ec35bcd6 config: introduce rust cache 2022-11-09 19:39:59 +01:00
InsanePrawn
47e74fb415 config: introduce per-arch persisted ccache dir 2022-11-09 19:39:59 +01:00
InsanePrawn
c0fd1f51b5 chroot: add chroot.mount_chroots() to mount /chroot and use in cmd_chroot() 2022-11-09 19:39:59 +01:00
InsanePrawn
d3e2224b02 pkgbuild.discover_pkgbuilds(): warn and skip directories that don't contain a PKGBUILD 2022-11-09 19:39:59 +01:00
InsanePrawn
5cb747aa26 packages and image: wrap more upfront on missing binaries 2022-11-09 19:39:59 +01:00
InsanePrawn
cdc803031e packages.filter_packages(): only filter by arch if arch is not None 2022-11-09 19:39:59 +01:00
InsanePrawn
54c525c8d9 wrapper_su_helper.py: use su -P to allocate a pseudo-TTY 2022-11-09 19:39:59 +01:00
InsanePrawn
8fc33c85cf packages.cmd_sideload(): fix escape of --overwrite=* 2022-11-09 19:39:59 +01:00
InsanePrawn
32f5fe643f packages: respect package arches before and during building 2022-11-09 19:39:59 +01:00
InsanePrawn
b6239a45ce chroot.create_user(): add primary_group parameter 2022-11-09 19:39:59 +01:00
InsanePrawn
a778f0786e packages.check_package_version_built(): use Pkgbuild.get_filename() instead of running makepkg --packagelist 2022-11-09 19:39:59 +01:00
InsanePrawn
f2ccf06c5b pkgbuild: add get_filename(arch) 2022-11-09 19:39:59 +01:00
InsanePrawn
fb4a12c464 packages.filter_packages(): optionally check package arch 2022-11-09 19:39:59 +01:00
InsanePrawn
bb14c4d779 packages: use user 'kupfer' in chroots for building 2022-11-09 19:39:59 +01:00
InsanePrawn
1cac36b73a chroot: add chroot.add_sudo_config() 2022-11-09 19:39:59 +01:00
InsanePrawn
5329f7a5b0 chroot.create_user(): add optional uid and non_unique parameter 2022-11-09 19:39:59 +01:00
InsanePrawn
17669ea8d2 chroot.run_cmd(): add switch_user parameter 2022-11-09 19:39:59 +01:00
InsanePrawn
2c2e4df638 exec/cmd: generate_cmd_{su,elevated}: tolerate flat string as input for cmd instead of list 2022-11-09 19:39:59 +01:00
InsanePrawn
b622a2ab02 exec.file.write_file(): fix situation where file exists but stat fails due to permissions 2022-11-09 19:39:59 +01:00
InsanePrawn
8ad18c00a6 global: refactor to use config.{file,runtime}.$member instead of config.file["$member"] 2022-11-09 19:39:59 +01:00
InsanePrawn
ba13293b93 DockerWrapper.wrap(): run as config.runtime.uid instead of root 2022-11-02 00:38:18 +01:00
InsanePrawn
a13fdc70e1 config: add config.runtime.uid 2022-11-02 00:38:18 +01:00
InsanePrawn
5e4c038ed0 main: add -w to *enforce* wrapping 2022-11-02 00:38:18 +01:00
InsanePrawn
59028afebf typecheck.sh: show error codes 2022-11-02 00:38:18 +01:00
InsanePrawn
3d6aa98c21 packages: circumvent git dubious ownership errors in pkgbuilds.git due to chrootery 2022-11-02 00:38:18 +01:00
InsanePrawn
2a46e9b361 constants: add QEMU_ARCHES 2022-11-02 00:38:18 +01:00
InsanePrawn
1837069981 constants.py: add armv7h support 2022-11-02 00:38:18 +01:00
InsanePrawn
d03cb39358 Pkgbuild: add refresh_sources() 2022-11-02 00:38:18 +01:00
InsanePrawn
558993b89e packages/pkgbuild: cache parsed pkgbuilds by path, add get_pkgbuild_by_path(), Pkgbuild.update(pkgb) 2022-11-02 00:38:18 +01:00
InsanePrawn
31ab4479c8 Merge tag 'v0.1.4' into prawn/flavours 2022-11-02 00:34:27 +01:00
InsanePrawn
786265fe75 .gitlab-ci.yml: docs: use pip with docs/requirements.txt to install dependencies 2022-10-18 02:58:35 +02:00
InsanePrawn
8eef0af650 requirements.txt: relax version pins 2022-10-18 02:50:43 +02:00
InsanePrawn
6ed80985a2 Merge branch 'dev' into prawn/flavours 2022-10-13 19:27:14 +02:00
InsanePrawn
e2e1ba1459 docs: switch to copper-ish accent colours 2022-10-13 18:16:54 +02:00
InsanePrawn
2b539f5a5b Merge branch 'dev' into prawn/flavours 2022-08-25 16:53:13 +02:00
InsanePrawn
c4e96af44f config: change pacman.check_space default to False as it causes problems even on ext4 2022-08-25 16:44:45 +02:00
InsanePrawn
2db8a0a0cb packages: cleanup unnecessary bits 2022-08-25 13:52:35 +02:00
InsanePrawn
f940fd2301 test_config: remove double import of Profile 2022-08-23 21:43:18 +02:00
InsanePrawn
3952892029 generator.generate_pacman_conf_body(): add in_chroot=False param to use config.get_path('pacman') if necessary 2022-08-23 21:41:41 +02:00
InsanePrawn
5a794ba3dd packages: get_makepkg_env(): actually return env... 2022-08-23 17:38:58 +02:00
InsanePrawn
97d3f05968 gitlab-ci: generate test coverage 2022-08-20 05:59:31 +02:00
InsanePrawn
70c4799385 pytest.sh: generate junit xml 2022-08-20 05:32:52 +02:00
InsanePrawn
c53acbf2f4 .gitlab-ci: run python unit tests as user with passwordless sudo 2022-08-20 05:25:49 +02:00
InsanePrawn
39be2b2fb6 packages/test_device: add test for initialise_pkgbuilds_dir fixture 2022-08-20 04:51:25 +02:00
InsanePrawn
f5e3fa46ad packages/ and image.py: less wrapping, remove hardcoded 'aarch64' where possible 2022-08-20 04:32:33 +02:00
InsanePrawn
657a5fe227 wrapper: add wrap_if_foreign_arch() 2022-08-20 04:32:33 +02:00
InsanePrawn
5b218e64c8 ssh.py: use check_programs_wrap() for ssh and scp binaries 2022-08-20 04:32:33 +02:00