perl-dbi.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Index: Makefile.PL
  2. --- Makefile.PL.orig 2004-10-12 11:03:50 +0200
  3. +++ Makefile.PL 2004-10-13 19:23:27 +0200
  4. @@ -7,34 +7,6 @@
  5. use ExtUtils::MakeMaker;
  6. use Config;
  7. use strict;
  8. -eval {
  9. - require DBD::SQLite;
  10. - if ($DBD::SQLite::VERSION < 1.0) {
  11. - print <<EOT;
  12. -
  13. -**** WARNING **** WARNING **** WARNING **** WARNING **** WARNING ****
  14. -
  15. -Your version of DBD::SQLite currently installed ($DBD::SQLite::VERSION) uses
  16. -the old sqlite database format. This version of DBD::SQLite will *NOT*
  17. -open these files, and installing this module may cause problems on your
  18. -system. If this is a live environment you should upgrade with caution.
  19. -
  20. -To upgrade a database, download and install both sqlite 2.x and 3.x from
  21. -http://www.sqlite.org/ and issue:
  22. -
  23. - sqlite OLD.DB .dump | sqlite3 NEW.DB
  24. -
  25. -DBD::SQLite will NOT automatically upgrade a database for you, and using
  26. -this version against an old SQLite database WILL lead to database
  27. -corruption.
  28. -
  29. -EOT
  30. - if (prompt("Continue?", "N") !~ /^y/i) {
  31. - print "Exiting\n";
  32. - exit -1;
  33. - }
  34. - }
  35. -};
  36. my $nlid = $DBI::VERSION > 1.42 ? '' : '-Dno_last_insert_id';
  37. @@ -43,8 +15,9 @@
  38. 'VERSION_FROM' => 'lib/DBD/SQLite.pm', # finds $VERSION
  39. 'PREREQ_PM' => {DBI => 1.21}, # e.g., Module::Name => 1.1
  40. 'OBJECT' => '$(O_FILES)',
  41. - 'INC' => '-I. -I$(DBI_INSTARCH_DIR)',
  42. 'OPTIMIZE' => "-O2",
  43. + 'INC' => '-I@l_prefix@/include -I$(DBI_INSTARCH_DIR)',
  44. + 'LIBS' => ['-L@l_prefix@/lib -lsqlite3'],
  45. 'DEFINE' => "-DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" .
  46. ($Config{d_usleep} ? " -DHAVE_USLEEP=1" : "") .
  47. ($DBI::VERSION > 1.42 ? '' : ' -Dno_last_insert_id'),
  48. Index: dbdimp.h
  49. --- dbdimp.h.orig 2004-09-10 17:24:28 +0200
  50. +++ dbdimp.h 2004-09-24 10:44:37 +0200
  51. @@ -4,7 +4,7 @@
  52. #define _DBDIMP_H 1
  53. #include "SQLiteXS.h"
  54. -#include "sqliteInt.h"
  55. +#include "sqlite3.h"
  56. /* 30 second timeout by default */
  57. #define SQL_TIMEOUT 30000