sudo 1.8.12 fails to build on both uclibc and musl systems because sudo_compat.h makes reference to uid_t and gid_t but does not include <sys/types.h>. Because of the way the headers stack in glibc it works there but not in uclibc or musl. Actually 1.8.13 *does* build but its still missing <sys/types.h> in the appropriate places and could break again if upstream moves things around. I've alerted upstream and it has been fixed in the hg repo. See the url for the thread. See below for the final error message during the build of 1.8.12. Also note I've added sudo-9999.ebuild to the tree for future testing. In file included from signame.c:3:0: ../../include/sudo_compat.h:347:1: warning: parameter names (without types) in function declaration [enabled by default] int setresgid(gid_t, gid_t, gid_t); ^ ../../include/sudo_compat.h:351:15: error: unknown type name 'gid_t' int getresgid(gid_t *, gid_t *, gid_t *); ^ ../../include/sudo_compat.h:351:24: error: unknown type name 'gid_t' int getresgid(gid_t *, gid_t *, gid_t *); ^ ../../include/sudo_compat.h:351:33: error: unknown type name 'gid_t' int getresgid(gid_t *, gid_t *, gid_t *); ^ Makefile:458: recipe for target 'signame.lo' failed make[1]: *** [signame.lo] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-admin/sudo-1.8.12/work/sudo-1.8.12/lib/util' Makefile:90: recipe for target 'all' failed make: *** [all] Error 2 Reproducible: Always
This bug is here to alert people because it has been resolved upstream and I have tested their fix.
(In reply to Anthony Basile from comment #1) if upstream has committed a patch, feel free to backport it to the stable version
(In reply to SpanKY from comment #2) > (In reply to Anthony Basile from comment #1) > > if upstream has committed a patch, feel free to backport it to the stable > version Upstream commits are: http://www.sudo.ws/repos/sudo/rev/86eb67f3c41a http://www.sudo.ws/repos/sudo/rev/e0794f05e95c I had to slightly modify them because of some changes between 1.8.12 and HEAD. I double and triple tested because I don't want to break a stable ebuild.