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

  Server: cvs.openpkg.org                  Name:   Michael Schloh
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   04-Jun-2004 16:36:11
  Branch: HEAD                             Handle: 2004060415361100

  Added files:
    openpkg-src/xmlsec      xmlsec.patch
  Modified files:
    openpkg-src/xmlsec      xmlsec.spec

  Log:
    similar to libxslt, remove the nonessential and incomplete test for a
    C++ preprocessor

  Summary:
    Revision    Changes     Path
    1.1         +234 -0     openpkg-src/xmlsec/xmlsec.patch
    1.20        +3  -1      openpkg-src/xmlsec/xmlsec.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/xmlsec/xmlsec.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xmlsec.patch
  --- /dev/null 2004-06-04 16:36:11.000000000 +0200
  +++ xmlsec.patch      2004-06-04 16:36:11.000000000 +0200
  @@ -0,0 +1,234 @@
  +Index: configure
  +--- configure.orig   2004-06-04 16:22:19.007354166 +0200
  ++++ configure        2004-06-04 16:23:31.142578483 +0200
  +@@ -4770,230 +4770,6 @@
  + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext 
$LIBS >&5'
  + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  +-echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  +-echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  +-if test -z "$CXXCPP"; then
  +-  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  +-  echo $ECHO_N "(cached) $ECHO_C" >&6
  +-else
  +-      # Double quotes because CXXCPP needs to be expanded
  +-    for CXXCPP in "$CXX -E" "/lib/cpp"
  +-    do
  +-      ac_preproc_ok=false
  +-for ac_cxx_preproc_warn_flag in '' yes
  +-do
  +-  # Use a header file that comes with gcc, so configuring glibc
  +-  # with a fresh cross-compiler works.
  +-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  +-  # <limits.h> exists even on freestanding compilers.
  +-  # On the NeXT, cc -E runs the code through the compiler's parser,
  +-  # not just through cpp. "Syntax error" is here to catch this case.
  +-  cat >conftest.$ac_ext <<_ACEOF
  +-#line $LINENO "configure"
  +-/* confdefs.h.  */
  +-_ACEOF
  +-cat confdefs.h >>conftest.$ac_ext
  +-cat >>conftest.$ac_ext <<_ACEOF
  +-/* end confdefs.h.  */
  +-#ifdef __STDC__
  +-# include <limits.h>
  +-#else
  +-# include <assert.h>
  +-#endif
  +-                     Syntax error
  +-_ACEOF
  +-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  +-  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  +-  ac_status=$?
  +-  grep -v '^ *+' conftest.er1 >conftest.err
  +-  rm -f conftest.er1
  +-  cat conftest.err >&5
  +-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  +-  (exit $ac_status); } >/dev/null; then
  +-  if test -s conftest.err; then
  +-    ac_cpp_err=$ac_cxx_preproc_warn_flag
  +-  else
  +-    ac_cpp_err=
  +-  fi
  +-else
  +-  ac_cpp_err=yes
  +-fi
  +-if test -z "$ac_cpp_err"; then
  +-  :
  +-else
  +-  echo "$as_me: failed program was:" >&5
  +-sed 's/^/| /' conftest.$ac_ext >&5
  +-
  +-  # Broken: fails on valid input.
  +-continue
  +-fi
  +-rm -f conftest.err conftest.$ac_ext
  +-
  +-  # OK, works on sane cases.  Now check whether non-existent headers
  +-  # can be detected and how.
  +-  cat >conftest.$ac_ext <<_ACEOF
  +-#line $LINENO "configure"
  +-/* confdefs.h.  */
  +-_ACEOF
  +-cat confdefs.h >>conftest.$ac_ext
  +-cat >>conftest.$ac_ext <<_ACEOF
  +-/* end confdefs.h.  */
  +-#include <ac_nonexistent.h>
  +-_ACEOF
  +-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  +-  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  +-  ac_status=$?
  +-  grep -v '^ *+' conftest.er1 >conftest.err
  +-  rm -f conftest.er1
  +-  cat conftest.err >&5
  +-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  +-  (exit $ac_status); } >/dev/null; then
  +-  if test -s conftest.err; then
  +-    ac_cpp_err=$ac_cxx_preproc_warn_flag
  +-  else
  +-    ac_cpp_err=
  +-  fi
  +-else
  +-  ac_cpp_err=yes
  +-fi
  +-if test -z "$ac_cpp_err"; then
  +-  # Broken: success on invalid input.
  +-continue
  +-else
  +-  echo "$as_me: failed program was:" >&5
  +-sed 's/^/| /' conftest.$ac_ext >&5
  +-
  +-  # Passes both tests.
  +-ac_preproc_ok=:
  +-break
  +-fi
  +-rm -f conftest.err conftest.$ac_ext
  +-
  +-done
  +-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  +-rm -f conftest.err conftest.$ac_ext
  +-if $ac_preproc_ok; then
  +-  break
  +-fi
  +-
  +-    done
  +-    ac_cv_prog_CXXCPP=$CXXCPP
  +-
  +-fi
  +-  CXXCPP=$ac_cv_prog_CXXCPP
  +-else
  +-  ac_cv_prog_CXXCPP=$CXXCPP
  +-fi
  +-echo "$as_me:$LINENO: result: $CXXCPP" >&5
  +-echo "${ECHO_T}$CXXCPP" >&6
  +-ac_preproc_ok=false
  +-for ac_cxx_preproc_warn_flag in '' yes
  +-do
  +-  # Use a header file that comes with gcc, so configuring glibc
  +-  # with a fresh cross-compiler works.
  +-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  +-  # <limits.h> exists even on freestanding compilers.
  +-  # On the NeXT, cc -E runs the code through the compiler's parser,
  +-  # not just through cpp. "Syntax error" is here to catch this case.
  +-  cat >conftest.$ac_ext <<_ACEOF
  +-#line $LINENO "configure"
  +-/* confdefs.h.  */
  +-_ACEOF
  +-cat confdefs.h >>conftest.$ac_ext
  +-cat >>conftest.$ac_ext <<_ACEOF
  +-/* end confdefs.h.  */
  +-#ifdef __STDC__
  +-# include <limits.h>
  +-#else
  +-# include <assert.h>
  +-#endif
  +-                     Syntax error
  +-_ACEOF
  +-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  +-  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  +-  ac_status=$?
  +-  grep -v '^ *+' conftest.er1 >conftest.err
  +-  rm -f conftest.er1
  +-  cat conftest.err >&5
  +-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  +-  (exit $ac_status); } >/dev/null; then
  +-  if test -s conftest.err; then
  +-    ac_cpp_err=$ac_cxx_preproc_warn_flag
  +-  else
  +-    ac_cpp_err=
  +-  fi
  +-else
  +-  ac_cpp_err=yes
  +-fi
  +-if test -z "$ac_cpp_err"; then
  +-  :
  +-else
  +-  echo "$as_me: failed program was:" >&5
  +-sed 's/^/| /' conftest.$ac_ext >&5
  +-
  +-  # Broken: fails on valid input.
  +-continue
  +-fi
  +-rm -f conftest.err conftest.$ac_ext
  +-
  +-  # OK, works on sane cases.  Now check whether non-existent headers
  +-  # can be detected and how.
  +-  cat >conftest.$ac_ext <<_ACEOF
  +-#line $LINENO "configure"
  +-/* confdefs.h.  */
  +-_ACEOF
  +-cat confdefs.h >>conftest.$ac_ext
  +-cat >>conftest.$ac_ext <<_ACEOF
  +-/* end confdefs.h.  */
  +-#include <ac_nonexistent.h>
  +-_ACEOF
  +-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  +-  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  +-  ac_status=$?
  +-  grep -v '^ *+' conftest.er1 >conftest.err
  +-  rm -f conftest.er1
  +-  cat conftest.err >&5
  +-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  +-  (exit $ac_status); } >/dev/null; then
  +-  if test -s conftest.err; then
  +-    ac_cpp_err=$ac_cxx_preproc_warn_flag
  +-  else
  +-    ac_cpp_err=
  +-  fi
  +-else
  +-  ac_cpp_err=yes
  +-fi
  +-if test -z "$ac_cpp_err"; then
  +-  # Broken: success on invalid input.
  +-continue
  +-else
  +-  echo "$as_me: failed program was:" >&5
  +-sed 's/^/| /' conftest.$ac_ext >&5
  +-
  +-  # Passes both tests.
  +-ac_preproc_ok=:
  +-break
  +-fi
  +-rm -f conftest.err conftest.$ac_ext
  +-
  +-done
  +-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  +-rm -f conftest.err conftest.$ac_ext
  +-if $ac_preproc_ok; then
  +-  :
  +-else
  +-  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  +-See \`config.log' for more details." >&5
  +-echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  +-See \`config.log' for more details." >&2;}
  +-   { (exit 1); exit 1; }; }
  +-fi
  +-
  +-ac_ext=cc
  +-ac_cpp='$CXXCPP $CPPFLAGS'
  +-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  +-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext 
$LIBS >&5'
  +-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  + 
  + 
  + ac_ext=f
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xmlsec/xmlsec.spec
  ============================================================================
  $ cvs diff -u -r1.19 -r1.20 xmlsec.spec
  --- openpkg-src/xmlsec/xmlsec.spec    15 Apr 2004 17:54:52 -0000      1.19
  +++ openpkg-src/xmlsec/xmlsec.spec    4 Jun 2004 14:36:11 -0000       1.20
  @@ -34,10 +34,11 @@
   Group:        SGML
   License:      MIT
   Version:      1.2.5
  -Release:      20040415
  +Release:      20040604
   
   #   list of sources
   Source0:      http://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.tar.gz
  +Patch0:       xmlsec.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -61,6 +62,7 @@
   
   %prep
       %setup -q -n xmlsec1-%{version}
  +    %patch -p0
   
   %build
       CC="%{l_cc}" \
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to