NixOS/nixpkgs — pull request #3075 by ambrop72 (2014-06-24 23:01:25+00:00)
Title: sudo: Fix build and nondeterminism with rundir and vardir.

The sudo configure script will check for the existence of some directories on the system to determine what to use (rundir, vardir). Further, make install will attempt to mkdir those directories that it chose. This causes a build failure when sudo is being built outside chroot.

This commit:
- Tells sudo what to use as rundir and vardir so it doesn't perform nondeterministic checks (same dirs as Gentoo uses).
- Removes the mkdir commands.

I've confirmed it builds and the system boots but not much more. Those directories aren't created automatically on boot, maybe they should be. I also haven't checked if different directories are needed on non-Linux systems.