Hello, Am Dienstag, 24. Januar 2023 09:54:37 CET schrieb Polarian:
Hello,
So I currently do not test my packages in a clean chroot because of this issue: https://gitlab.archlinux.org/archlinux/devtools/-/issues/105
It seems a little stupid but I hate sudo being installed on my system, I do not like it, and I do not like when tools force me to use sudo. Without sudo installed the makechrootpkg script breaks and thus I can't use dev tools to test in a chroot environment.
you already got one solution, but for the sake of completeness I wanted to add some other solutions, that maybe are less error-prone. 1. Limit the attack surface of sudo by disabling sudoedit and and allowing only the commands necessary for makechrootpkg. Probably sounds bad to you, but in case you ever need to debug your solution it's good to have the reference solution running. 2. https://github.com/AladW/aurutils supports building in a chroot with doas. 3. https://github.com/bionade24/abs_cd is a CD webservice that builds packages in (rootless) docker/podman containers. It does use sudo internally, but only inside the containers. Development has stalled a bit but it's still used by myself & others. Regards, Oskar Roesler