RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  j...@rpm5.org
  Module: rpm                              Date:   21-Feb-2009 20:40:57
  Branch: HEAD                             Handle: 2009022119405700

  Modified files:
    rpm                     CHANGES configure.ac

  Log:
    - jbj: rpmz: swipe xz AutoFu to detect timestamps.

  Summary:
    Revision    Changes     Path
    1.2786      +1  -0      rpm/CHANGES
    2.340       +13 -0      rpm/configure.ac
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.2785 -r1.2786 CHANGES
  --- rpm/CHANGES       21 Feb 2009 19:09:10 -0000      1.2785
  +++ rpm/CHANGES       21 Feb 2009 19:40:57 -0000      1.2786
  @@ -1,5 +1,6 @@
   
   5.2a2 -> 5.2a3:
  +    - jbj: rpmz: swipe xz AutoFu to detect timestamps.
       - jbj: rpmz: swipe xz AutoFu to detect physmem/ncpus.
       - jbj: yarn: add to rpmio.
       - jbj: rpmz: stub in argv[0] processing to set operation mode.
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/configure.ac
  ============================================================================
  $ cvs diff -u -r2.339 -r2.340 configure.ac
  --- rpm/configure.ac  21 Feb 2009 19:09:10 -0000      2.339
  +++ rpm/configure.ac  21 Feb 2009 19:40:57 -0000      2.340
  @@ -671,6 +671,19 @@
        AC_DEFINE(HAVE_S_ISSOCK, 1, [Define as 1 if <sys/stat.h> defines 
S_ISSOCK])
   fi
   
  +# Find the best function to set timestamps.
  +AC_CHECK_FUNCS([futimens futimes futimesat utimes utime], [break])
  +
  +dnl # The command line tool can copy high resolution timestamps if such
  +dnl # information is availabe in struct stat. Otherwise one second accuracy
  +dnl # is used.
  +AC_CHECK_MEMBERS([
  +     struct stat.st_atim.tv_nsec,
  +     struct stat.st_atimespec.tv_nsec,
  +     struct stat.st_atimensec,
  +     struct stat.st_uatime,
  +     struct stat.st_atim.st__tim.tv_nsec])
  +
   AC_MSG_CHECKING(if timezone is defined)
   AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[printf("%ld", 
timezone)]])],[HAS_TIMEZONE=yes],[HAS_TIMEZONE=no])
   AC_MSG_RESULT($HAS_TIMEZONE)
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to