|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/stefanp/gnucash/force-db41.patch # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at http://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END ---
diff -urN gnucash-1.8.7/configure gnucash-1.8.7-stefanp/configure
--- gnucash-1.8.7/configure 2003-09-15 03:32:52.000000000 +0200
+++ gnucash-1.8.7-stefanp/configure 2003-09-21 15:41:25.182982992 +0200
@@ -12265,14 +12265,14 @@
DB_LIBS="-ldb" else echo "$ac_t""no" 1>&6 -echo $ac_n "checking for __db185_open in -ldb-3""... $ac_c" 1>&6
-echo "configure:12270: checking for __db185_open in -ldb-3" >&5
-ac_lib_var=`echo db-3'_'__db185_open | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for __db185_open in -ldb-4.1""... $ac_c" 1>&6
+echo "configure:12270: checking for __db185_open in -ldb-4.1" >&5
+ac_lib_var=`echo db-4.1'_'__db185_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-ldb-3 $LIBS"
+LIBS="-ldb-4.1 $LIBS"
cat > conftest.$ac_ext <<EOF #line 12278 "configure" #include "confdefs.h" @@ -12300,7 +12300,7 @@
fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - DB_LIBS="-ldb-3"
+ DB_LIBS="-ldb-4.1"
else echo "$ac_t""no" 1>&6 echo $ac_n "checking for __db185_open in -ldb-4.0""... $ac_c" 1>&6 @@ -12472,14 +12472,14 @@
DB_LIBS="-ldb1" else echo "$ac_t""no" 1>&6 -echo $ac_n "checking for __db185_open in -ldb-3""... $ac_c" 1>&6
-echo "configure:12477: checking for __db185_open in -ldb-3" >&5
-ac_lib_var=`echo db-3'_'__db185_open | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for __db185_open in -ldb-4.1""... $ac_c" 1>&6
+echo "configure:12477: checking for __db185_open in -ldb-4.1" >&5
+ac_lib_var=`echo db-4.1'_'__db185_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-ldb-3 $LIBS"
+LIBS="-ldb-4.1 $LIBS"
cat > conftest.$ac_ext <<EOF #line 12485 "configure" #include "confdefs.h" @@ -12507,7 +12507,7 @@
fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - DB_LIBS="-ldb-3"
+ DB_LIBS="-ldb-4.1"
else echo "$ac_t""no" 1>&6 echo $ac_n "checking for __db185_open in -ldb-4.0""... $ac_c" 1>&6 diff -urN gnucash-1.8.7/configure.in gnucash-1.8.7-stefanp/configure.in
--- gnucash-1.8.7/configure.in 2003-09-15 03:18:17.000000000 +0200
+++ gnucash-1.8.7-stefanp/configure.in 2003-09-21 15:40:20.791771944 +0200
@@ -700,7 +700,7 @@
if test "$prefer_db1" = "yes"; then AC_CHECK_LIB(db1, dbopen, DB_LIBS="-ldb1", AC_CHECK_LIB(db, dbopen, DB_LIBS="-ldb", - AC_CHECK_LIB(db-3, __db185_open, DB_LIBS="-ldb-3",
+ AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1",
AC_CHECK_LIB(db-4.0, __db185_open, DB_LIBS="-ldb-4.0", AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1", AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode]) @@ -712,7 +712,7 @@
else AC_CHECK_LIB(db, dbopen, DB_LIBS="-ldb", AC_CHECK_LIB(db1, dbopen, DB_LIBS="-ldb1", - AC_CHECK_LIB(db-3, __db185_open, DB_LIBS="-ldb-3",
+ AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1",
AC_CHECK_LIB(db-4.0, __db185_open, DB_LIBS="-ldb-4.0", AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1", AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode]) diff -urN gnucash-1.8.7/src/gnome-utils/window-help.c gnucash-1.8.7-stefanp/src/gnome-utils/window-help.c
--- gnucash-1.8.7/src/gnome-utils/window-help.c 2003-01-04 09:11:01.000000000 +0100
+++ gnucash-1.8.7-stefanp/src/gnome-utils/window-help.c 2003-09-21 15:40:20.792771792 +0200
@@ -53,13 +53,17 @@
# endif #endif #else -#ifdef HAVE_DB_185_H
-# include <db_185.h>
+#ifdef HAVE_DB4_DB_185_H
+#include <db4/db_185.h>
#else -# ifdef HAVE_DB_H
-# include <db.h>
+# ifdef HAVE_DB_185_H
+# include <db_185.h>
# else -# include <db1/db.h>
+# ifdef HAVE_DB_H
+# include <db.h>
+# else
+# include <db1/db.h>
+# endif
# endif #endif #endif
|