samba-do-not-check-glibc-version.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --- a/source/configure 2009-04-01 14:19:36.000000000 +0200
  2. +++ b/source/configure 2009-04-20 13:05:12.000000000 +0200
  3. @@ -44061,90 +44061,8 @@
  4. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5. -#
  6. -#
  7. -#
  8. -case "$host_os" in
  9. - *linux*)
  10. - # glibc <= 2.3.2 has a broken getgrouplist
  11. - if test "$cross_compiling" = yes; then
  12. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14. -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  15. -See \`config.log' for more details." >&5
  16. -$as_echo "$as_me: error: cannot run test program while cross compiling
  17. -See \`config.log' for more details." >&2;}
  18. - { (exit 1); exit 1; }; }; }
  19. -else
  20. - cat >conftest.$ac_ext <<_ACEOF
  21. -/* confdefs.h. */
  22. -_ACEOF
  23. -cat confdefs.h >>conftest.$ac_ext
  24. -cat >>conftest.$ac_ext <<_ACEOF
  25. -/* end confdefs.h. */
  26. -
  27. -#include <unistd.h>
  28. -#include <sys/utsname.h>
  29. -main() {
  30. - /* glibc up to 2.3 has a broken getgrouplist */
  31. -#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
  32. - int libc_major = __GLIBC__;
  33. - int libc_minor = __GLIBC_MINOR__;
  34. -
  35. - if (libc_major < 2)
  36. - exit(1);
  37. - if ((libc_major == 2) && (libc_minor <= 3))
  38. - exit(1);
  39. -#endif
  40. - exit(0);
  41. -}
  42. -
  43. -_ACEOF
  44. -rm -f conftest$ac_exeext
  45. -if { (ac_try="$ac_link"
  46. -case "(($ac_try" in
  47. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48. - *) ac_try_echo=$ac_try;;
  49. -esac
  50. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  51. -$as_echo "$ac_try_echo") >&5
  52. - (eval "$ac_link") 2>&5
  53. - ac_status=$?
  54. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  56. - { (case "(($ac_try" in
  57. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  58. - *) ac_try_echo=$ac_try;;
  59. -esac
  60. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  61. -$as_echo "$ac_try_echo") >&5
  62. - (eval "$ac_try") 2>&5
  63. - ac_status=$?
  64. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65. - (exit $ac_status); }; }; then
  66. - linux_getgrouplist_ok=yes
  67. -else
  68. - $as_echo "$as_me: program exited with status $ac_status" >&5
  69. -$as_echo "$as_me: failed program was:" >&5
  70. -sed 's/^/| /' conftest.$ac_ext >&5
  71. -
  72. -( exit $ac_status )
  73. -linux_getgrouplist_ok=no
  74. -fi
  75. -rm -rf conftest.dSYM
  76. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  77. -fi
  78. -
  79. -
  80. - if test x"$linux_getgrouplist_ok" = x"yes"; then
  81. -
  82. -cat >>confdefs.h <<\_ACEOF
  83. -#define HAVE_GETGROUPLIST 1
  84. -_ACEOF
  85. -
  86. - fi
  87. - ;;
  88. - *)
  89. +# Stripped glibc test which is not needed for uClibc
  90. +linux_getgrouplist_ok=yes
  91. for ac_func in getgrouplist
  92. do
  93. @@ -44246,8 +44164,6 @@
  94. fi
  95. done
  96. - ;;
  97. -esac
  98. #
  99. # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX