mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
4.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/stefanp/gnucash/force-db41.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -urN gnucash-1.8.7/configure gnucash-1.8.7-stefanp/configure
  23. --- gnucash-1.8.7/configure 2003-09-15 03:32:52.000000000 +0200
  24. +++ gnucash-1.8.7-stefanp/configure 2003-09-21 15:41:25.182982992 +0200
  25. @@ -12265,14 +12265,14 @@
  26. DB_LIBS="-ldb"
  27. else
  28. echo "$ac_t""no" 1>&6
  29. -echo $ac_n "checking for __db185_open in -ldb-3""... $ac_c" 1>&6
  30. -echo "configure:12270: checking for __db185_open in -ldb-3" >&5
  31. -ac_lib_var=`echo db-3'_'__db185_open | sed 'y%./+-%__p_%'`
  32. +echo $ac_n "checking for __db185_open in -ldb-4.1""... $ac_c" 1>&6
  33. +echo "configure:12270: checking for __db185_open in -ldb-4.1" >&5
  34. +ac_lib_var=`echo db-4.1'_'__db185_open | sed 'y%./+-%__p_%'`
  35. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  36. echo $ac_n "(cached) $ac_c" 1>&6
  37. else
  38. ac_save_LIBS="$LIBS"
  39. -LIBS="-ldb-3 $LIBS"
  40. +LIBS="-ldb-4.1 $LIBS"
  41. cat > conftest.$ac_ext <<EOF
  42. #line 12278 "configure"
  43. #include "confdefs.h"
  44. @@ -12300,7 +12300,7 @@
  45. fi
  46. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  47. echo "$ac_t""yes" 1>&6
  48. - DB_LIBS="-ldb-3"
  49. + DB_LIBS="-ldb-4.1"
  50. else
  51. echo "$ac_t""no" 1>&6
  52. echo $ac_n "checking for __db185_open in -ldb-4.0""... $ac_c" 1>&6
  53. @@ -12472,14 +12472,14 @@
  54. DB_LIBS="-ldb1"
  55. else
  56. echo "$ac_t""no" 1>&6
  57. -echo $ac_n "checking for __db185_open in -ldb-3""... $ac_c" 1>&6
  58. -echo "configure:12477: checking for __db185_open in -ldb-3" >&5
  59. -ac_lib_var=`echo db-3'_'__db185_open | sed 'y%./+-%__p_%'`
  60. +echo $ac_n "checking for __db185_open in -ldb-4.1""... $ac_c" 1>&6
  61. +echo "configure:12477: checking for __db185_open in -ldb-4.1" >&5
  62. +ac_lib_var=`echo db-4.1'_'__db185_open | sed 'y%./+-%__p_%'`
  63. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  64. echo $ac_n "(cached) $ac_c" 1>&6
  65. else
  66. ac_save_LIBS="$LIBS"
  67. -LIBS="-ldb-3 $LIBS"
  68. +LIBS="-ldb-4.1 $LIBS"
  69. cat > conftest.$ac_ext <<EOF
  70. #line 12485 "configure"
  71. #include "confdefs.h"
  72. @@ -12507,7 +12507,7 @@
  73. fi
  74. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  75. echo "$ac_t""yes" 1>&6
  76. - DB_LIBS="-ldb-3"
  77. + DB_LIBS="-ldb-4.1"
  78. else
  79. echo "$ac_t""no" 1>&6
  80. echo $ac_n "checking for __db185_open in -ldb-4.0""... $ac_c" 1>&6
  81. diff -urN gnucash-1.8.7/configure.in gnucash-1.8.7-stefanp/configure.in
  82. --- gnucash-1.8.7/configure.in 2003-09-15 03:18:17.000000000 +0200
  83. +++ gnucash-1.8.7-stefanp/configure.in 2003-09-21 15:40:20.791771944 +0200
  84. @@ -700,7 +700,7 @@
  85. if test "$prefer_db1" = "yes"; then
  86. AC_CHECK_LIB(db1, dbopen, DB_LIBS="-ldb1",
  87. AC_CHECK_LIB(db, dbopen, DB_LIBS="-ldb",
  88. - AC_CHECK_LIB(db-3, __db185_open, DB_LIBS="-ldb-3",
  89. + AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1",
  90. AC_CHECK_LIB(db-4.0, __db185_open, DB_LIBS="-ldb-4.0",
  91. AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1",
  92. AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode])
  93. @@ -712,7 +712,7 @@
  94. else
  95. AC_CHECK_LIB(db, dbopen, DB_LIBS="-ldb",
  96. AC_CHECK_LIB(db1, dbopen, DB_LIBS="-ldb1",
  97. - AC_CHECK_LIB(db-3, __db185_open, DB_LIBS="-ldb-3",
  98. + AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1",
  99. AC_CHECK_LIB(db-4.0, __db185_open, DB_LIBS="-ldb-4.0",
  100. AC_CHECK_LIB(db-4.1, __db185_open, DB_LIBS="-ldb-4.1",
  101. AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode])
  102. diff -urN gnucash-1.8.7/src/gnome-utils/window-help.c gnucash-1.8.7-stefanp/src/gnome-utils/window-help.c
  103. --- gnucash-1.8.7/src/gnome-utils/window-help.c 2003-01-04 09:11:01.000000000 +0100
  104. +++ gnucash-1.8.7-stefanp/src/gnome-utils/window-help.c 2003-09-21 15:40:20.792771792 +0200
  105. @@ -53,13 +53,17 @@
  106. # endif
  107. #endif
  108. #else
  109. -#ifdef HAVE_DB_185_H
  110. -# include <db_185.h>
  111. +#ifdef HAVE_DB4_DB_185_H
  112. +#include <db4/db_185.h>
  113. #else
  114. -# ifdef HAVE_DB_H
  115. -# include <db.h>
  116. +# ifdef HAVE_DB_185_H
  117. +# include <db_185.h>
  118. # else
  119. -# include <db1/db.h>
  120. +# ifdef HAVE_DB_H
  121. +# include <db.h>
  122. +# else
  123. +# include <db1/db.h>
  124. +# endif
  125. # endif
  126. #endif
  127. #endif