Essentially, it's not possible to run `sudo -u nobody makepkg --syncdeps` because `nobody` (should not) have access to `sudo`, but it's also not possible to run `makepkg --syncdeps` directly as root because the script automatically stops you from running anything as root, even when `--syncdeps` alone requires root permissions.
It would be nice if `makepkg` had a specific exception for running `--syncdeps` only (e.g. `--nobuild --noextract --whatever-other-flags-we-need`) directly as root so someone running a script as the root user doesn't need to separately track dependencies before building packages.
↧