| Age | Commit message (Collapse) | Author |
|
For cross-compiling Rosa OS.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Support for hexagon had to be disabled due to link failure of a
host-side tool. The riscv64 cross target currently fails due to a
compiler crash.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
For cross-specific options in packages.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Sometimes helpful for changing the environment.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This test has become incredibly flaky. Remove it here to prevent it from
repeatedly breaking rebuilds.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This enables cross-compilation via the standard CMake helper.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This also reinstates riscv64 support via cross-compilation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Similar to the other autoconf-specific flags, this makes some configure
scripts pretending to be autoconf unhappy.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The cross-compiled sysroot can now be provided by internal/rosa.
Unfortunately pkg-config still had to be configured externally to avoid
making any assumptions about the prefix.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This works around libtool relink jank.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
GNU libtool is incredibly buggy and does not play nice with lld.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
We do not want to put up with the pkg-config wrappers. This does what
the wrappers would have done. CMake does this automatically, but not
meson and autotools.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This provides the native tic program.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
GNU libtool breaks cross-compilation by insisting on using the native
libc when relinking.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This does not have any effect so far, but it feels best to set this
to avoid running into more autotools jank.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Meson does not want to play nice and accept arguments or environment
variables for cross-compiling configuration, so a so-called mfile had
to be generated and placed here.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
For situations where a package uses a just-built program as part of its
own build process.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is otherwise never added to the cross root.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Similar to the previous change, this does not work on some configure
scripts pretending to be autoconf.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This does not work on some configure scripts pretending to be autoconf.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This prevents leaking the test process in the test suite.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This helps some configure scripts behave correctly.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This enables the test suite in the second make stage. This change also
fixes a typo in the second stage make build script.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Cross-compilation is not applicable to everything, and it is quite
wasteful rebuilding the same thing for every architecture when it is
just using host tools to create arch-independent files.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This successfully cross-compiles the toolchain. More work is needed to
support cross-compilation on all native helpers and existing packages.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This was discovered during mass rebuilds caused by the previous change.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is cleaner and prepares for cross-compilation support.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This gets rid of the stuttery logging behaviour and should also slightly
reduce memory usage.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This removes the syscall cutoff thresholds, instead declaring all
syscall number constants in package ext.
This also removes two constants from package container which were
inadvertently exported for 386 and amd64.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Kernel headers changed due to a documentation change in random.h,
causing rebuilds. Kernel source is now fetched from cdn.kernel.org.
A newly broken libarchive test has been disabled. A flaky git test has
been discovered while rebuilding for curl and has been disabled.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Simultaneous commits or reverts can race if they have overlapping
targets. This big lock synchronises entry into the Commit and Revert
critical sections across all cmd/hakurei processes.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This avoids getting the goroutine preempted and scheduled onto a
thread other than the tracer.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This avoids swallowing error messages from failed container startups.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This does not reduce security, and saves the trouble of the additional
ACL setup/teardowns.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This ensures that cmd/hakurei has finished cleanup and terminated before
validating the outcome of that cleanup.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Getting ESRCH here is harmless, and has the same effect of detaching
successfully, so drop it to avoid spurious test failures.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This increases testing performance.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This was inadvertently placed inside the setscheduler loop due to
miscounting indentations.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This avoids breaking ownership of lock files.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This runs much faster than the NixOS test suite, and is much more
precise. This also uncovered a recent severe pipewire regression.
This change removes all remaining deprecated nix code.
Closes #22.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These are mostly for process lifecycle checks. This change also adds
polling for the Xwayland server in the sway helper.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This has better support for security-context metadata which can be
measured by the test suite.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This formats into some test data.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This allows testing insecure configurations. This change also improves
error reporting and fixes non-startup-notification behaviour.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
PipeWire/WirePlumber had become slopware while I was not looking.
WirePlumber 0.5.15 broke SecurityContext, and it has still not been
fixed. I have filed a ticket upstream, but considering the fact that my
previous security-related ticket, filed over 10 months ago, is still
being ignored, I do not have high hopes that they will fix it.
It is no longer safe to use PipeWire. Users are advised to downgrade to
0.5.14 for now. A drop-in replacement of PipeWire might be needed for
Rosa OS.
This change also adds additional packages required by the native
cmd/hakurei integration test suite.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Used by some tests to inspect cmd/hakurei internals.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is only really used by the sandbox test suite for seccomp
validation. Make it optional here to simplify other use cases.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The util-linux script program really messes up any terminal attached to
stdin. Since the test programs do not take any input, and stdin is a
shared resource that cannot be used anyway, this change disconnects it
from stdin.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These are too noisy and are not useful outside of debugging the test
suite itself, so silence them by default.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|