-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builder: Don't use fakeroot #107
Conversation
9159a7d
to
4764755
Compare
We're inside of a clean rootfs container, we can just build as root, using fakeroot is unnecessary.
Intended to replace ChrootExecStdin() in order to maintain more control over how we chroot in the environment.
4764755
to
75ba95f
Compare
I've built a couple of packages with this (with the requisite ypkg version built and installed in my local repo). It appears to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have yet to see this fail and it unfailingly results in a tangible speedup.
Without this PR, e.g. libgtk-4 built in 5m56s. With this PR, libgtk-4 built in 5m15s.
Approved.
Not sure what's going on with the CI linter tests though...
75ba95f
to
9343e6b
Compare
With ChrootShell() we can drop usage of the chroot binary, as well as choose the initial workdir to spawn in to. As the files are now build as root, they are owned by root so chroot as root but start at the buildUser home directory.
9343e6b
to
2a9786f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
We're inside of a clean rootfs container, we can just build as root, using fakeroot is unnecessary.
Depends on getsolus/ypkg#94
Closes #66