Skip to content
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

Build fails on Arch Linux in chroot environment #93

Closed
Hayao0819 opened this issue Mar 22, 2021 · 3 comments · Fixed by #96
Closed

Build fails on Arch Linux in chroot environment #93

Hayao0819 opened this issue Mar 22, 2021 · 3 comments · Fixed by #96

Comments

@Hayao0819
Copy link
Contributor

When I run yay in a chroot environment and build it, it outputs a large amount of logs different from before and terminates abnormally.
However, it builds successfully in my main Arch Linux environment. Is this a problem with my chroot environment? Or is it a software bug? Other software builds will succeed normally in a chroot environment.
xfce4-docklike-plugin-git.log

@Hayao0819
Copy link
Contributor Author

You can reproduce it by following the steps below.

mkdir -p ~/arch
cd ~/arch
mkdir mount
truncate -s 32G -- "arch.img"
mkfs.ext4 -O '^has_journal,^resize_inode' -E 'lazy_itable_init=0' -m 0 -F -- "arch.img" 32G
tune2fs -c "0" -i "0" "arch.img"
sudo mount ./arch.img ./mount
sudo pacstrap ./mount base base-devel go git
sudo arch-chroot ./mount
useradd -s /bin/bash -m user
echo -e "foo\nfoo" | passwd user
echo "user ALL=(ALL) NOPASSWD:ALL" > "/etc/sudoers.d/user"
su user
cd
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
yay -Sy
yay -S xfce4-docklike-plugin-git --noconfirm

@joaodriessen
Copy link

I get the same errors here building on arch arm armv7h (raspberry pi 3B+)

@Hayao0819
Copy link
Contributor Author

This problem seems to be the same problem as #91

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 a pull request may close this issue.

2 participants