changeset: 100568:acbeb33dc76a branch: 2.7 parent: 100531:1a40ee2bad6a user: Martin Panter date: Fri Mar 18 02:36:41 2016 +0000 files: Misc/NEWS configure configure.ac pyconfig.h.in description: Issue #17603: Check for st_blocks field without requiring fileblocks.o diff -r 1a40ee2bad6a -r acbeb33dc76a Misc/NEWS --- a/Misc/NEWS Mon Mar 14 17:49:46 2016 +0100 +++ b/Misc/NEWS Fri Mar 18 02:36:41 2016 +0000 @@ -170,6 +170,9 @@ Build ----- +- Issue #17603: Avoid error about nonexistant fileblocks.o file by using a + lower-level check for st_blocks in struct stat. + - Issue #26465: Update Windows builds to use OpenSSL 1.0.2g. - Issue #24421: Compile Modules/_math.c once, before building extensions. diff -r 1a40ee2bad6a -r acbeb33dc76a configure --- a/configure Mon Mar 14 17:49:46 2016 +0100 +++ b/configure Fri Mar 18 02:36:41 2016 +0000 @@ -11962,17 +11962,7 @@ _ACEOF -$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h - -else - case " $LIBOBJS " in - *" fileblocks.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" - ;; -esac - -fi - +fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 diff -r 1a40ee2bad6a -r acbeb33dc76a configure.ac --- a/configure.ac Mon Mar 14 17:49:46 2016 +0100 +++ b/configure.ac Fri Mar 18 02:36:41 2016 +0000 @@ -3439,7 +3439,7 @@ AC_CHECK_MEMBERS([struct stat.st_flags]) AC_CHECK_MEMBERS([struct stat.st_gen]) AC_CHECK_MEMBERS([struct stat.st_birthtime]) -AC_STRUCT_ST_BLOCKS +AC_CHECK_MEMBERS([struct stat.st_blocks]) AC_MSG_CHECKING(for time.h that defines altzone) AC_CACHE_VAL(ac_cv_header_time_altzone,[ diff -r 1a40ee2bad6a -r acbeb33dc76a pyconfig.h.in --- a/pyconfig.h.in Mon Mar 14 17:49:46 2016 +0100 +++ b/pyconfig.h.in Fri Mar 18 02:36:41 2016 +0000 @@ -731,10 +731,6 @@ /* Define to 1 if `tm_zone' is a member of `struct tm'. */ #undef HAVE_STRUCT_TM_TM_ZONE -/* Define to 1 if your `struct stat' has `st_blocks'. Deprecated, use - `HAVE_STRUCT_STAT_ST_BLOCKS' instead. */ -#undef HAVE_ST_BLOCKS - /* Define if you have the 'symlink' function. */ #undef HAVE_SYMLINK