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-Nov-2007 12:28:07
  Branch: HEAD                             Handle: 2007110311280600

  Modified files:
    openpkg-src/db          db.spec

  Log:
    allow one to build DB with Pthreads support, but PLEASE DO NOT ENABLE
    THIS UNTIL YOU REALLY KNOW WHAT YOU ARE DOING

  Summary:
    Revision    Changes     Path
    1.83        +16 -3      openpkg-src/db/db.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/db/db.spec
  ============================================================================
  $ cvs diff -u -r1.82 -r1.83 db.spec
  --- openpkg-src/db/db.spec    18 Oct 2007 12:11:48 -0000      1.82
  +++ openpkg-src/db/db.spec    3 Nov 2007 11:28:06 -0000       1.83
  @@ -37,11 +37,17 @@
   Group:        Database
   License:      BSD
   Version:      %{V_version}.%{V_revision}
  -Release:      20071018
  +Release:      20071103
   
   #   package options
  -%option       with_compat no
  -%option       with_cxx    no
  +%option       with_pthreads no
  +%option       with_compat   no
  +%option       with_cxx      no
  +
  +#   package options sanity check
  +%if "%{with_pthreads}" == "yes"
  +    %{warn: WARNING: enabling Pthreads will potentially let other packages 
fail to build! }
  +%endif
   
   #   list of sources
   Source0:      
http://download-uk.oracle.com/berkeley-db/db-%{V_version}.tar.gz
  @@ -85,6 +91,9 @@
   
   %build
       #   configure library
  +%if "%{with_pthreads}" == "yes"
  +    mutex="POSIX/pthreads"
  +%else
       mutex="no"
       case "%{l_platform -p}" in
           ix86-*   ) mutex="x86/gcc-assembly"   ;;
  @@ -94,6 +103,7 @@
           alpha*-* ) mutex="ALPHA/gcc-assembly" ;;
           *        ) mutex="UNIX/fcntl"         ;;
       esac
  +%endif
       cd build_unix
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
  @@ -116,6 +126,9 @@
   %endif
           --disable-java \
           --with-mutex="$mutex" \
  +%if "%{with_pthreads}" == "yes"
  +        --enable-pthread_api \
  +%endif
           --disable-shared
   
       #   build library
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to