[Pkg-shadow-devel] Bug#816223: shadow: Allow crossbuilding

Samuel Thibault sthibault at debian.org
Sun Feb 28 21:16:29 UTC 2016


Oops, sorry, the patch was not up to date. Here is the right patch.

Samuel
-------------- next part --------------
--- configure.in.original	2016-02-28 21:51:24.762395274 +0100
+++ configure.in	2016-02-28 22:05:07.217337130 +0100
@@ -332,19 +332,10 @@
 AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
 
 if test "$enable_subids" != "no"; then
-	dnl
-	dnl FIXME: check if 32 bit UIDs/GIDs are supported by libc
-	dnl
-	AC_RUN_IFELSE([AC_LANG_SOURCE([
-#include <sys/types.h>
-int main(void) {
-	uid_t u;
-	gid_t g;
-	return (sizeof u < 4) || (sizeof g < 4);
-}
-	])], [id32bit="yes"], [id32bit="no"])
+	AC_CHECK_SIZEOF(uid_t)
+	AC_CHECK_SIZEOF(gid_t)
 
-	if test "x$id32bit" = "xyes"; then
+	if test "$ac_cv_sizeof_uid_t" -ge 4 -a "$ac_cv_sizeof_gid_t" -ge 4; then
 		AC_DEFINE(ENABLE_SUBIDS, 1, [Define to support the subordinate IDs.])
 		enable_subids="yes"
 	else


More information about the Pkg-shadow-devel mailing list