OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   27-Sep-2005 12:10:52
  Branch: HEAD                             Handle: 2005092711105100

  Modified files:
    openpkg-src/sqlite      sqlite.patch sqlite.spec

  Log:
    fdatasync(3) is SUSv2 function which does not exist under FreeBSD,
    exists under Linux and just partly exists (in librt) on Solaris. So
    use it under Linux only for now as we don't want the librt dependency
    under Solaris

  Summary:
    Revision    Changes     Path
    1.10        +12 -0      openpkg-src/sqlite/sqlite.patch
    1.101       +1  -1      openpkg-src/sqlite/sqlite.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/sqlite/sqlite.patch
  ============================================================================
  $ cvs diff -u -r1.9 -r1.10 sqlite.patch
  --- openpkg-src/sqlite/sqlite.patch   24 Sep 2005 21:14:53 -0000      1.9
  +++ openpkg-src/sqlite/sqlite.patch   27 Sep 2005 10:10:51 -0000      1.10
  @@ -12,3 +12,15 @@
    
    
    #########
  +Index: src/os_unix.c
  +--- src/os_unix.c.orig       2005-09-22 17:43:40.000000000 +0200
  ++++ src/os_unix.c    2005-09-27 12:07:05.735642470 +0200
  +@@ -829,7 +829,7 @@
  +   if( rc ) rc = fsync(fd);
  + 
  + #else /* if !defined(F_FULLSYNC) */
  +-#if  defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO>0
  ++#if  defined(__linux__) && defined(_POSIX_SYNCHRONIZED_IO) && 
_POSIX_SYNCHRONIZED_IO>0
  +   if( dataOnly ){
  +     rc = fdatasync(fd);
  +   }else
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/sqlite/sqlite.spec
  ============================================================================
  $ cvs diff -u -r1.100 -r1.101 sqlite.spec
  --- openpkg-src/sqlite/sqlite.spec    24 Sep 2005 21:14:53 -0000      1.100
  +++ openpkg-src/sqlite/sqlite.spec    27 Sep 2005 10:10:51 -0000      1.101
  @@ -37,7 +37,7 @@
   Group:        Database
   License:      PD
   Version:      %{V_v3}
  -Release:      20050924
  +Release:      20050927
   
   #   package options
   %option       with_v2              yes
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to