Commit graph

446 commits

Author SHA1 Message Date
InsanePrawn
0e103f5a40 add_package_to_repo: create foreign arch repo dir before copying foreign-arch packages 2022-09-16 19:45:25 +02:00
InsanePrawn
f9cf76e937 packages: check_package_built(): makedir() the other arch's repo dir before trying to copy our any-arch package there 2022-09-16 19:45:25 +02:00
InsanePrawn
4c3e264de3 wrapper/docker: create volume dirs ourselfes for better permissions and podman compat 2022-09-16 19:45:25 +02:00
InsanePrawn
ccec875a0c wrapper/docker: fix indentation (only version needs to be pulled from with open():) 2022-09-16 19:45:25 +02:00
InsanePrawn
156612bf73 dataclass.resolve_type_hint(): add conversion from str to [int,float] if str not in types 2022-09-16 19:45:25 +02:00
InsanePrawn
4833753975 config/scheme: move DataClass to dataclass.py 2022-09-16 19:45:25 +02:00
InsanePrawn
b86b7c94f0 config: DataClass.transform(): add allow_extra=False parameter 2022-09-16 19:45:25 +02:00
InsanePrawn
e00160f6df packages: move filter_packages() to pkgbuild, rename to filter_pkgbuilds() 2022-09-16 19:45:25 +02:00
InsanePrawn
d89ad54fc5 constants.py: remove DEVICES array, now comes from pkgbuilds.git 2022-09-16 19:45:25 +02:00
InsanePrawn
cc2e24285f image.py: use Device instead of the device name from config 2022-09-16 19:45:25 +02:00
InsanePrawn
86b4b30685 exec: makedir() accept Union[str, int] for user and group 2022-08-29 20:20:16 +02:00
InsanePrawn
6c26260001 chroot: add chroot.get_uid(user: str), use in chroot.mount_{ccache,rust} to apply correct ownership 2022-08-29 20:20:16 +02:00
InsanePrawn
ba58aa1a29 wrapper: add WRAPPER_PATHS to point ccache and rust to predictable locations 2022-08-29 20:20:16 +02:00
InsanePrawn
0378f7fdf6 requirements.txt: add setuptools required by munch 2022-08-29 19:05:02 +02:00
InsanePrawn
58fd212560 Dockerfile: clean up pkgconfig-aarch64 leftover 2022-08-29 04:54:05 +02:00
InsanePrawn
2ef5f27c6c config: introduce rust cache 2022-08-29 04:44:16 +02:00
InsanePrawn
4285cf734c config: introduce per-arch persisted ccache dir 2022-08-29 04:44:16 +02:00
InsanePrawn
fd1f759429 chroot: add chroot.mount_chroots() to mount /chroot and use in cmd_chroot() 2022-08-29 04:44:16 +02:00
InsanePrawn
8274a31068 pkgbuild.discover_pkgbuilds(): warn and skip directories that don't contain a PKGBUILD 2022-08-29 04:44:16 +02:00
InsanePrawn
3c2e6fe2d0 packages and image: wrap more upfront on missing binaries 2022-08-28 17:21:16 +02:00
InsanePrawn
a76ad5ac4b packages.filter_packages(): only filter by arch if arch is not None 2022-08-28 17:20:35 +02:00
InsanePrawn
9f1281f1cb wrapper_su_helper.py: use su -P to allocate a pseudo-TTY 2022-08-28 07:38:52 +02:00
InsanePrawn
57be536781 packages.cmd_sideload(): fix escape of --overwrite=* 2022-08-28 07:32:01 +02:00
InsanePrawn
b5214d9cd6 packages: respect package arches before and during building 2022-08-28 07:32:01 +02:00
InsanePrawn
39b98d30ae chroot.create_user(): add primary_group parameter 2022-08-28 07:32:01 +02:00
InsanePrawn
7b05fa4fdb packages.check_package_version_built(): use Pkgbuild.get_filename() instead of running makepkg --packagelist 2022-08-28 07:32:01 +02:00
InsanePrawn
2f98ffc79d pkgbuild: add get_filename(arch) 2022-08-28 05:49:21 +02:00
InsanePrawn
ea88397f1f packages.filter_packages(): optionally check package arch 2022-08-28 05:49:18 +02:00
InsanePrawn
d9a88e1474 packages: use user 'kupfer' in chroots for building 2022-08-28 05:49:18 +02:00
InsanePrawn
dcccc9bdc8 chroot: add chroot.add_sudo_config() 2022-08-28 05:49:18 +02:00
InsanePrawn
fc92298100 chroot.create_user(): add optional uid and non_unique parameter 2022-08-28 02:22:54 +02:00
InsanePrawn
20975feec6 chroot.run_cmd(): add switch_user parameter 2022-08-28 02:22:54 +02:00
InsanePrawn
4dc134c8f8 exec/cmd: generate_cmd_{su,elevated}: tolerate flat string as input for cmd instead of list 2022-08-28 02:22:54 +02:00
InsanePrawn
ac7d16e4a7 exec.file.write_file(): fix situation where file exists but stat fails due to permissions 2022-08-28 02:22:54 +02:00
InsanePrawn
bef0efc637 global: refactor to use config.{file,runtime}.$member instead of config.file["$member"] 2022-08-27 17:06:48 +02:00
InsanePrawn
13ad63446e DockerWrapper.wrap(): run as config.runtime.uid instead of root 2022-08-27 06:03:36 +02:00
InsanePrawn
6b64989a3b config: add config.runtime.uid 2022-08-27 05:56:45 +02:00
InsanePrawn
4c77a16bba main: add -w to *enforce* wrapping 2022-08-27 05:56:45 +02:00
InsanePrawn
57d5ed474f typecheck.sh: show error codes 2022-08-27 03:46:07 +02:00
InsanePrawn
114755888e packages: circumvent git dubious ownership errors in pkgbuilds.git due to chrootery 2022-08-27 03:45:19 +02:00
InsanePrawn
b154f835e6 constants: add QEMU_ARCHES 2022-08-26 22:55:08 +02:00
InsanePrawn
bc31f9822a constants.py: add armv7h support 2022-08-26 22:55:08 +02:00
InsanePrawn
08fc10bf11 Pkgbuild: add refresh_sources() 2022-08-26 03:41:59 +02:00
InsanePrawn
6e8fd9f622 packages/pkgbuild: cache parsed pkgbuilds by path, add get_pkgbuild_by_path(), Pkgbuild.update(pkgb) 2022-08-26 03:30:32 +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