perl-dbi.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. Index: MANIFEST
  2. --- MANIFEST.orig 2004-09-13 09:15:30 +0200
  3. +++ MANIFEST 2004-09-24 10:45:38 +0200
  4. @@ -1,51 +1,14 @@
  5. -attach.c
  6. -auth.c
  7. -btree.c
  8. -btree.h
  9. -build.c
  10. Changes
  11. -date.c
  12. dbdimp.c
  13. dbdimp.h
  14. -delete.c
  15. -expr.c
  16. -func.c
  17. -getsqlite.pl
  18. -hash.c
  19. -hash.h
  20. -insert.c
  21. -legacy.c
  22. lib/DBD/SQLite.pm
  23. -main.c
  24. Makefile.PL
  25. MANIFEST
  26. MANIFEST.SKIP
  27. META.yml Module meta-data (added by MakeMaker)
  28. -opcodes.c
  29. -opcodes.h
  30. -os.h
  31. -os_common.h
  32. -os_mac.c
  33. -os_mac.h
  34. -os_test.c
  35. -os_test.h
  36. -os_unix.c
  37. -os_unix.h
  38. -os_win.c
  39. -os_win.h
  40. -pager.c
  41. -pager.h
  42. -parse.c
  43. -parse.h
  44. ppport.h
  45. -pragma.c
  46. -printf.c
  47. -random.c
  48. README
  49. -select.c
  50. SQLite.xs
  51. -sqlite3.h
  52. -sqliteInt.h
  53. SQLiteXS.h
  54. t/00basic.t
  55. t/01logon.t
  56. @@ -73,17 +36,3 @@
  57. t/dbdadmin.t
  58. t/lib.pl
  59. t/SQLite.dbtest
  60. -table.c
  61. -tokenize.c
  62. -trigger.c
  63. -update.c
  64. -utf.c
  65. -util.c
  66. -vacuum.c
  67. -vdbe.c
  68. -vdbe.h
  69. -vdbeapi.c
  70. -vdbeaux.c
  71. -vdbeInt.h
  72. -vdbemem.c
  73. -where.c
  74. Index: Makefile.PL
  75. --- Makefile.PL.orig 2004-09-20 11:41:39 +0200
  76. +++ Makefile.PL 2004-09-24 10:44:37 +0200
  77. @@ -7,34 +7,6 @@
  78. use ExtUtils::MakeMaker;
  79. use Config;
  80. use strict;
  81. -eval {
  82. - require DBD::SQLite;
  83. - if ($DBD::SQLite::VERSION < 1.0) {
  84. - print <<EOT;
  85. -
  86. -**** WARNING **** WARNING **** WARNING **** WARNING **** WARNING ****
  87. -
  88. -Your version of DBD::SQLite currently installed ($DBD::SQLite::VERSION) uses
  89. -the old sqlite database format. This version of DBD::SQLite will *NOT*
  90. -open these files, and installing this module may cause problems on your
  91. -system. If this is a live environment you should upgrade with caution.
  92. -
  93. -To upgrade a database, download and install both sqlite 2.x and 3.x from
  94. -http://www.sqlite.org/ and issue:
  95. -
  96. - sqlite OLD.DB .dump | sqlite3 NEW.DB
  97. -
  98. -DBD::SQLite will NOT automatically upgrade a database for you, and using
  99. -this version against an old SQLite database WILL lead to database
  100. -corruption.
  101. -
  102. -EOT
  103. - if (prompt("Continue?", "N") !~ /^y/i) {
  104. - print "Exiting\n";
  105. - exit -1;
  106. - }
  107. - }
  108. -};
  109. my $nlid = $DBI::VERSION > 1.42 ? '' : '-Dno_last_insert_id';
  110. @@ -43,8 +15,9 @@
  111. 'VERSION_FROM' => 'lib/DBD/SQLite.pm', # finds $VERSION
  112. 'PREREQ_PM' => {DBI => 1.21}, # e.g., Module::Name => 1.1
  113. 'OBJECT' => '$(O_FILES)',
  114. - 'INC' => '-I$(DBI_INSTARCH_DIR)',
  115. 'OPTIMIZE' => "-O2",
  116. + 'INC' => '-I@l_prefix@/include -I$(DBI_INSTARCH_DIR)',
  117. + 'LIBS' => ['-L@l_prefix@/lib -lsqlite3'],
  118. 'DEFINE' => "-DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" .
  119. ($Config{d_usleep} ? " -DHAVE_USLEEP=1" : "") .
  120. ($DBI::VERSION > 1.42 ? '' : ' -Dno_last_insert_id'),
  121. Index: dbdimp.h
  122. --- dbdimp.h.orig 2004-09-10 17:24:28 +0200
  123. +++ dbdimp.h 2004-09-24 10:44:37 +0200
  124. @@ -4,7 +4,7 @@
  125. #define _DBDIMP_H 1
  126. #include "SQLiteXS.h"
  127. -#include "sqliteInt.h"
  128. +#include "sqlite3.h"
  129. /* 30 second timeout by default */
  130. #define SQL_TIMEOUT 30000