[arch-haskell] Using makeahpkg

Alessandro Pezzoni alessandro_pezzoni at lavabit.com
Sat Oct 12 07:40:21 UTC 2013

On Thu, Jul 26, 2012 at 03:01:12PM +0200, Magnus Therning wrote:
> On Thu, Jul 26, 2012 at 2:21 PM, Alessandro Pezzoni
> <alessandro_pezzoni at lavabit.com> wrote:
> >
> > With 'makepkg --asroot' I get a "missing dependencies" error and adding
> > a '-s' flag to that, as I usually would, it compiles the package
> > correctly.
> Fascinating, so there's nothing wrong with the chroot then.  I have no
> clue what causes the error in makeahpkg.  I've never seen it myself,
> and I don't think I can figure it out without access to your build
> machine :(

>From what I see in the 'makechrootpkg' script, when running 'makeahpkg'
'makepkg' gets called with:

# sudo -u nobody makepkg -s --noconfirm -L

If I try to do that from within the chroot I get the following error,
when it comes to install the missing dependencies:

sudo: effective uid is not 0, is sudo installed setuid root?

A minimal test case confirms that this is a 'sudo' issue:

# sudo -u nobody sudo
sudo: effective uid is not 0, is sudo installed setuid root?

Looking for that error message on the internet I get a FAQ about 'sudo'
where they say that:
"Sudo must be setuid root to do its work. Either /usr/local/bin/sudo is
not owned by uid 0 or the setuid bit is not set."
But 'ls -l /usr/bin/sudo' in the chroot gives me the expected result:

---s--x--x 1 root root 125834 May 31 11:37 /usr/bin/sudo

At the moment I don't have a clue about what could be causing this
problem, though.


More information about the arch-haskell mailing list