Commit Graph

13 Commits

Author SHA1 Message Date
Martchus f98235f44e Add builduser to same groups as on host
This prevents permission errors when relying on a user's group
for accessing certain files (made available within the container
via bind mounts).
2023-05-27 22:24:40 +02:00
Martchus 3691cf3001 Set TERM within the systemd-nspawn container in makechrootpkg
This is required by WINE to prevent
```
unknown: I need something more specific
```
2023-05-27 22:24:40 +02:00
Kevin Mihelich f8b5d6e1c2 makechrootpkg: don't delete MAKEFLAGS and PACKAGER 2023-05-27 22:24:40 +02:00
Kevin Mihelich 6505fb7c07 makechrootpkg: no default logging 2023-05-27 22:24:40 +02:00
Kevin Mihelich 71cf5d0fd4 arch-nspawn: arm fix 2023-05-27 22:24:40 +02:00
Kevin Mihelich 391c9c4fa2 makechrootpkg: distcc 2023-05-27 22:24:40 +02:00
Kevin Mihelich eb4fc19f9d makechrootpkg: cache dir 2023-05-27 22:24:40 +02:00
Levente Polyak 41d4624879
fix(archroot): pass along the real command and argv by the caller
Before modularizing the repo layout, we used m4_include to assemble
together sources into a single file. Now, we properly use a library
layout without assembling multiple files, which means we cannot anymore
rely on BASH_SOURCE inside the library file. Hence, pass along the
actual command and argv from the check_root caller.

Fixes: src: modularize repo layout into a library

Signed-off-by: Morten Linderud <foxboron@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2023-05-20 00:20:41 +02:00
Levente Polyak b5d5402e43
src: modularize repo layout into a library
This will greatly help us to structure the functionality and commands in
a more sane way. We will distribute the sources as actual libraries and
reuse code with imports instead of processing everything with m4 and
duplicating a lot of code.
2023-05-19 22:27:12 +02:00
Felix Yan 112026580d
makechrootpkg: make /tmp inside nspawn larger
systemd by default limits the /tmp folder to be 10% of the host memory:
6f2cea06bf/src/shared/mount-util.h (L33)

This is problematic to our builds because many toolchains opt to put
build artifacts in /tmp, and expecting the host memory to be 10 times
larger is not optimal or even realistic sometimes.

This MR attempts to enlarge it to 50% memory as the host machine's
default value of /tmp. This should be a fair compromise between being
overly conservative and taking up too much memory to crash the system.
2023-01-06 16:25:46 +01:00
Mike Yuan d82bc69716
makechrootpkg: fix short option handling for makepkg_args
Currently, when multiple short options are passed as a single argument,
only the one that matches the first case statement will be parsed. This
shall be fixed by using switch-case resume.
2022-10-13 00:10:17 +08:00
morganamilo 1e23bbc164
makechrootpkg: support -A makepkg flag 2022-08-31 23:38:13 +02:00
Levente Polyak d94badcd0b
make: split out source files into src folder 2022-06-22 01:05:02 +02:00