Skip to content

Build Arch Linux package#52

Merged
l0kod merged 1 commit into
landlock-lsm:mainfrom
l0kod:pkg-arch
Oct 12, 2025
Merged

Build Arch Linux package#52
l0kod merged 1 commit into
landlock-lsm:mainfrom
l0kod:pkg-arch

Conversation

@l0kod
Copy link
Copy Markdown
Member

@l0kod l0kod commented Sep 29, 2025

Add Makefile to build a package from this repository while reusing build artifacts (e.g. to speed up build and CI).

Improve FFI error types.

See #18

Cc @Foxboron

@l0kod l0kod force-pushed the pkg-arch branch 2 times, most recently from e5c620e to 10c855e Compare September 29, 2025 15:38
Comment thread pkg/arch/PKGBUILD
l0kod added a commit to l0kod/systemd that referenced this pull request Sep 29, 2025
Update the build environment for Arch Linux to use the LandlockConfig
library and headers.  This is useful to simply test the systemd support
for this feature.

This should only be used for development and should never be merged
as-is.

To make it simple, the package is part of this commit, but it should be
removed before being merged.  The Arch Linux package can be built with
landlock-lsm/landlockconfig#52

Signed-off-by: Mickaël Salaün <mic@digikod.net>
l0kod added a commit to l0kod/systemd that referenced this pull request Sep 30, 2025
Update the build environment for Arch Linux to use the LandlockConfig
library and headers.  This is useful to simply test the systemd support
for this feature.

This should only be used for development and should never be merged
as-is.

To make it simple, the package is part of this commit, but it should be
removed before being merged.  The Arch Linux package can be built with
landlock-lsm/landlockconfig#52

Signed-off-by: Mickaël Salaün <mic@digikod.net>
@l0kod l0kod force-pushed the pkg-arch branch 11 times, most recently from d61584e to 0df1160 Compare October 11, 2025 14:38
@l0kod l0kod mentioned this pull request Oct 12, 2025
@l0kod l0kod force-pushed the pkg-arch branch 5 times, most recently from afae514 to 8777d29 Compare October 12, 2025 20:42
Add Makefile to build an Arch Linux package reusing the Rust cached
artifacts (i.e. target directory).

Improve caches to differentiate between Cargo registry (shared across
all build jobs) and built binaries (specific to a Rust version).

Add a Dockerfile to efficiently build an Arch Linux container and extend
the CI to build the image, cache it, test package build, and test
package install.

We can use this command to build an Arch Linux package locally:

  make -C pkg/arch docker

Signed-off-by: Mickaël Salaün <mic@digikod.net>
@l0kod l0kod merged commit dabcba3 into landlock-lsm:main Oct 12, 2025
6 checks passed
@l0kod l0kod deleted the pkg-arch branch October 12, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants