Skip to content

[WIP] Add chroot build feature - #2739

Open
androw wants to merge 2 commits into
Jguer:nextfrom
androw:chroot
Open

[WIP] Add chroot build feature#2739
androw wants to merge 2 commits into
Jguer:nextfrom
androw:chroot

Conversation

@androw

@androw androw commented Dec 19, 2025

Copy link
Copy Markdown

This is a first try at adding the build in chroot feature in yay.
At the moment, it builds fine if no dependency from AUR is needed.
If someone has a idea to fix this last bit, I'm open to suggestion.
Edit: deps now correctly built

Inspired by paru

@androw
androw requested a review from Jguer as a code owner December 19, 2025 18:29
@androw androw changed the title Add chroot build feature [WIP] Add chroot build feature Dec 19, 2025
@Jguer

Jguer commented Dec 21, 2025

Copy link
Copy Markdown
Owner

This is a nice feature, the AUR struggles with some chroot building so I'm not sure it can ever be the default (plus caching).

If this reaches completion with AUR dep and coverage I think it should be maintainable enough to merge

@radiooperator-19

Copy link
Copy Markdown

I found out yay seems to compile most packages well in chroot, but I need to su to another user (throws fatal: cannot change to '/tmp/yay': No such file or directory error when trying to build as root)

@androw

androw commented Jun 14, 2026

Copy link
Copy Markdown
Author

Deps should now be built and installed in the chroot before building the target pkg if someone wants to test.

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.

3 participants