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

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   25-Aug-2004 14:08:50
  Branch: HEAD                             Handle: 2004082513084900

  Modified files:
    openpkg-src/openldap    openldap.spec

  Log:
    Enforce use of GNU pth for OpenLDAP. This fixes crashes that occur
    under heavy parallel load in preemtive threading enviroments (Solaris)
    where slapd(8C) incorrectly assumes underlying libraries like db are
    being built threading aware and take care of appropriate locking. This
    is not the case in OpenPKG because db is using non-Pthread mutex. As a
    side effect our test setup not only passes a stress test where it broke
    previously but also indicates a performance boost by factor 3.5 on
    Solaris 8 and factor 4 on Solaris 9. There's neither gain nor pain in
    reliability and performance for FreeBSD4. Others were not tested.

  Summary:
    Revision    Changes     Path
    1.116       +6  -5      openpkg-src/openldap/openldap.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/openldap/openldap.spec
  ============================================================================
  $ cvs diff -u -r1.115 -r1.116 openldap.spec
  --- openpkg-src/openldap/openldap.spec        25 Aug 2004 09:58:27 -0000      1.115
  +++ openpkg-src/openldap/openldap.spec        25 Aug 2004 12:08:49 -0000      1.116
  @@ -53,8 +53,8 @@
   BuildRoot:    %{l_buildroot}
   BuildPreReq:  OpenPKG, openpkg >= 20040130, make, gcc
   PreReq:       OpenPKG, openpkg >= 20040130
  -BuildPreReq:  readline, openssl, db >= 4.2
  -PreReq:       readline, openssl, db >= 4.2
  +BuildPreReq:  readline, openssl, db >= 4.2, pth
  +PreReq:       readline, openssl, db >= 4.2, pth
   %if "%{with_fsl}" == "yes"
   BuildPreReq:  fsl >= 1.2.0
   PreReq:       fsl >= 1.2.0
  @@ -101,10 +101,10 @@
       cf="%{l_cppflags}"
   %endif
       CC="%{l_cc}" \
  -    CFLAGS="%{l_cflags -O}" \
  +    CFLAGS="%{l_cflags -O} `%{l_prefix}/bin/pth-config --cflags`" \
       CPPFLAGS="$cf" \
  -    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
  -    LIBS="%{l_fsl_libs}" \
  +    LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/pth-config --ldflags` %{l_fsl_ldflags}" \
  +    LIBS="`%{l_prefix}/bin/pth-config --libs` %{l_fsl_libs}" \
       ./configure \
           --cache-file=./config.cache \
           --prefix=%{l_prefix} \
  @@ -153,6 +153,7 @@
   %endif
           --with-dyngroup \
           --with-proxycache \
  +        --with-threads=pth \
           --enable-slurpd
   
       #   build toolkit
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to