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:   03-Dec-2007 08:28:40
  Branch: HEAD                             Handle: 2007120307283900

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

  Log:
    fix building under Solaris 10

  Summary:
    Revision    Changes     Path
    1.20        +12 -0      openpkg-src/rrdtool/rrdtool.patch
    1.104       +2  -1      openpkg-src/rrdtool/rrdtool.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/rrdtool/rrdtool.patch
  ============================================================================
  $ cvs diff -u -r1.19 -r1.20 rrdtool.patch
  --- openpkg-src/rrdtool/rrdtool.patch 13 Nov 2007 16:45:31 -0000      1.19
  +++ openpkg-src/rrdtool/rrdtool.patch 3 Dec 2007 07:28:39 -0000       1.20
  @@ -149,3 +149,15 @@
    fi
   
    save_CPPFLAGS="$CPPFLAGS"
  +Index: src/rrd_update.c
  +--- src/rrd_update.c.orig    2007-11-20 01:15:10.000000000 +0100
  ++++ src/rrd_update.c 2007-12-03 08:21:28.584206100 +0100
  +@@ -427,7 +427,7 @@
  +         fclose(rrd_file);
  +     return(-1);
  +     }
  +-#ifdef HAVE_MADVISE
  ++#if defined(HAVE_MADVISE) && defined(POSIX_MADV_RANDOM)
  +     /* when we use mmaping we tell the kernel the mmap equivalent
  +        of POSIX_FADV_RANDOM */
  +     madvise(rrd_mmaped_file,rrd_filesize,POSIX_MADV_RANDOM);
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/rrdtool/rrdtool.spec
  ============================================================================
  $ cvs diff -u -r1.103 -r1.104 rrdtool.spec
  --- openpkg-src/rrdtool/rrdtool.spec  20 Nov 2007 12:42:42 -0000      1.103
  +++ openpkg-src/rrdtool/rrdtool.spec  3 Dec 2007 07:28:39 -0000       1.104
  @@ -38,7 +38,7 @@
   Group:        Database
   License:      LGPL
   Version:      %{V_rrdtool}
  -Release:      20071120
  +Release:      20071203
   
   #   package options
   %option       with_perl        no
  @@ -106,6 +106,7 @@
       #   configure package
       %{l_shtool} subst \
           -e 's;lart_lgpl_2;lart_lgpl;g' \
  +        -e 's;art_lgpl_2;art_lgpl;g' \
           configure
       echo "ac_cv_path_PERL=no" >config.cache
       CC="%{l_cc}" \
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to