Skip to content

chroot: replace devtools functionality (part II)#1179

Open
AladW wants to merge 8 commits into
masterfrom
standalone-aur-chroot
Open

chroot: replace devtools functionality (part II)#1179
AladW wants to merge 8 commits into
masterfrom
standalone-aur-chroot

Conversation

@AladW
Copy link
Copy Markdown
Member

@AladW AladW commented Aug 29, 2024

Follow-up to #1155.

@AladW AladW added this to the 20 milestone Aug 29, 2024
@AladW
Copy link
Copy Markdown
Member Author

AladW commented Aug 29, 2024

The option parsing and configuration logic is duplicated from aur-chroot, so I'm thinking to split off the create/update and build parts to aur-chroot--create and aur-chroot--build, respectively. Then aur-chroot would call them if AUR_CHROOT_STANDALONE is set. (Alternatively, call it by default unless AUR_CHROOT_DEVTOOLS is set.)

@AladW AladW modified the milestones: 20, 21 Aug 29, 2024
@AladW
Copy link
Copy Markdown
Member Author

AladW commented Sep 9, 2024

I just merged the implementation directly to aur-chroot directly. About 120 lines for all we use from devtools is a decent trade-off.

Now this just needs some more testing and it can be merged.

@AladW AladW mentioned this pull request Sep 12, 2024
@AladW AladW changed the title Replace devtools functionality (part II) chroot: replace devtools functionality (part II) Sep 23, 2024
@AladW AladW modified the milestones: 20.2, 21 Sep 24, 2024
@AladW AladW force-pushed the standalone-aur-chroot branch 2 times, most recently from da0d24d to c2d8dd6 Compare September 24, 2024 10:05
chrooti and others added 8 commits September 28, 2025 17:37
* add `--holdver`
* remove redundant `sudo` for `namcap`
* re-exec as root
* append process ID to `aur-chroot--helper` (parallel execution)
* allow combining `--create` / `--update` with `--build`
This uses a fixed user name in the container, with a UID specified by
--user and defaulting to $SUDO_USER, or $USER when not present.
This introduces the AUR_CHROOT_DEVTOOLS environment variable. If set to a
positive value, devtools is used as before. If not, the standalone
implementation with systemd-nspawn is used.

Compared to the previous aur-chroot implementation:

* pacman-conf is used to determine if multilib-devel is required;
* aur-chroot will re-exec with a list of preserved environment variables when
  not run as root.
required for --dump-options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants