Skip to content

Commit 7435e1d

Browse files
committed
Install more libs + libldap24 from AUR via yay
root is not allowed to run makepkg, so we need to run makepkg via newly created user which can run sudo without password. Also `yay -S ...` calls makepkg.
1 parent 96cec48 commit 7435e1d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Configs/Arch.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,23 @@
218218
"lib32-ocl-icd",
219219
"audit",
220220
"avahi",
221+
"numactl",
222+
"sssd",
223+
"libldap",
224+
"lib32-libldap",
225+
"openldap",
226+
"openssl-1.1",
227+
"lib32-openssl-1.1",
228+
"gawk",
229+
"gdb",
230+
"krb5",
231+
"lib32-krb5",
232+
"libc++",
233+
"pam",
234+
"lib32-pam",
235+
"sed",
236+
"base-devel",
237+
"git",
221238
"bzip2",
222239
"lib32-bzip2",
223240
"cdparanoia",
@@ -339,6 +356,19 @@
339356
],
340357

341358
"Commands_InChroot2": [
359+
"useradd -m builduser",
360+
"echo \"builduser ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers.d/builduser",
361+
"chmod 440 /etc/sudoers.d/builduser",
362+
"git clone https://aur.archlinux.org/yay-bin.git",
363+
"chmod 777 yay-bin",
364+
"cd yay-bin",
365+
"su builduser -c 'makepkg --noconfirm -si'",
366+
"cd ..",
367+
"rm -rf yay-bin",
368+
"yay --noconfirm -Syu",
369+
"su builduser -c 'yay --noconfirm -S libldap24'",
370+
"userdel -r builduser",
371+
"rm -f /etc/sudoers.d/builduser",
342372
"killall -3 gpg-agent",
343373
"rm -Rf /usr/local",
344374
"rm -Rf /root/*",

0 commit comments

Comments
 (0)