perl-dbi.patch 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. Index: DBD-SQLite-1.34_02/Makefile.PL
  2. --- DBD-SQLite-1.34_02/Makefile.PL.orig 2010-12-10 06:09:02.000000000 +0100
  3. +++ DBD-SQLite-1.34_02/Makefile.PL 2010-12-19 11:19:59.000000000 +0100
  4. @@ -17,46 +17,9 @@
  5. return @_;
  6. }
  7. -# Are we upgrading from a critically out of date version?
  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. -
  37. # Because DBI generates a postamble at configure-time, we need
  38. # the required version of DBI very early.
  39. my $DBI_required = 1.57;
  40. -eval {
  41. - require DBI;
  42. -};
  43. -if ( $@ or DBI->VERSION < $DBI_required ) {
  44. - print "DBI 1.57 is required to configure this module; please install it or upgrade your CPAN/CPANPLUS shell.\n";
  45. - exit(0);
  46. -}
  47. # See if we have a C compiler
  48. # The following code is adapted from Module::Install::Can
  49. @@ -194,17 +157,17 @@
  50. # Prepare Compiler Options
  51. my @CC_LIBS = ();
  52. -if ( $sqlite_lib ) {
  53. - push @CC_LIBS, "-L$sqlite_lib";
  54. -}
  55. -unless ( $sqlite_local ) {
  56. - push @CC_LIBS, '-lsqlite3';
  57. -}
  58. +my $libs = `@l_prefix@/bin/pkg-config sqlite3 --libs`;
  59. +$libs =~ s/\r?\n$//s;
  60. +push @CC_LIBS, $libs;
  61. +my $inc = `@l_prefix@/bin/pkg-config sqlite3 --cflags-only-I`;
  62. +$inc =~ s/\r?\n$//s;
  63. my @CC_INC = (
  64. '-I.',
  65. '-I$(DBI_INSTARCH_DIR)',
  66. );
  67. +unshift @INC, $inc;
  68. if ( $sqlite_inc ) {
  69. push @CC_INC, "-I$sqlite_inc";
  70. }
  71. Index: DBD-SQLite-1.34_02/SQLiteXS.h
  72. --- DBD-SQLite-1.34_02/SQLiteXS.h.orig 2010-12-10 06:09:02.000000000 +0100
  73. +++ DBD-SQLite-1.34_02/SQLiteXS.h 2010-12-19 11:19:59.000000000 +0100
  74. @@ -19,6 +19,5 @@
  75. #include <dbd_xsh.h>
  76. #include "sqlite3.h"
  77. -#include "fts3_tokenizer.h"
  78. #endif
  79. Index: DBD-SQLite-1.34_02/dbdimp.c
  80. --- DBD-SQLite-1.34_02/dbdimp.c.orig 2010-12-10 06:09:02.000000000 +0100
  81. +++ DBD-SQLite-1.34_02/dbdimp.c 2010-12-19 11:19:59.000000000 +0100
  82. @@ -2019,6 +2019,7 @@
  83. #endif
  84. }
  85. +#if 0
  86. typedef struct perl_tokenizer {
  87. sqlite3_tokenizer base;
  88. SV *coderef; /* the perl tokenizer is a coderef that takes
  89. @@ -2273,12 +2274,14 @@
  90. perl_tokenizer_Close,
  91. perl_tokenizer_Next
  92. };
  93. +#endif
  94. /*
  95. ** Register the perl tokenizer with FTS3
  96. */
  97. int sqlite_db_register_fts3_perl_tokenizer(pTHX_ SV *dbh)
  98. {
  99. +#if 0
  100. D_imp_dbh(dbh);
  101. int rc;
  102. @@ -2301,6 +2304,8 @@
  103. sqlite3_step(pStmt);
  104. return sqlite3_finalize(pStmt);
  105. +#endif
  106. + return 0;
  107. }
  108. /* end */
  109. Index: DBD-Sybase-1.14/dbdimp.c
  110. --- DBD-Sybase-1.14/dbdimp.c.orig 2010-11-06 14:48:24.000000000 +0100
  111. +++ DBD-Sybase-1.14/dbdimp.c 2010-12-19 11:19:59.000000000 +0100
  112. @@ -818,22 +818,22 @@
  113. #endif
  114. #if defined(CS_VERSION_150)
  115. if (cs_ver == CS_VERSION_150)
  116. - BLK_VERSION = BLK_VERSION_150;
  117. + BLK_VERSION = CS_VERSION_150;
  118. #endif
  119. #if defined(CS_VERSION_125)
  120. if (cs_ver == CS_VERSION_125)
  121. - BLK_VERSION = BLK_VERSION_125;
  122. + BLK_VERSION = CS_VERSION_125;
  123. #endif
  124. #if defined(CS_VERSION_120)
  125. if (cs_ver == CS_VERSION_120)
  126. - BLK_VERSION = BLK_VERSION_120;
  127. + BLK_VERSION = CS_VERSION_120;
  128. #endif
  129. #if defined(CS_VERSION_110)
  130. if (cs_ver == CS_VERSION_110)
  131. - BLK_VERSION = BLK_VERSION_110;
  132. + BLK_VERSION = CS_VERSION_110;
  133. #endif
  134. if (cs_ver == CS_VERSION_100)
  135. - BLK_VERSION = BLK_VERSION_100;
  136. + BLK_VERSION = CS_VERSION_100;
  137. #if USE_CSLIB_CB
  138. if (cs_config(context, CS_SET, CS_MESSAGE_CB,
  139. Index: DBD-mysql-4.020/dbdimp.h
  140. --- DBD-mysql-4.020/dbdimp.h.orig 2010-07-10 16:53:52.000000000 +0200
  141. +++ DBD-mysql-4.020/dbdimp.h 2010-12-19 11:19:59.000000000 +0100
  142. @@ -19,6 +19,7 @@
  143. * Header files we use
  144. */
  145. #include <DBIXS.h> /* installed by the DBI module */
  146. +#include <my_global.h>
  147. #include <mysql.h> /* Comes with MySQL-devel */
  148. #include <mysqld_error.h> /* Comes MySQL */
  149. Index: SQL-Translator-0.11007/Makefile.PL
  150. --- SQL-Translator-0.11007/Makefile.PL.orig 2010-11-30 18:26:37.000000000 +0100
  151. +++ SQL-Translator-0.11007/Makefile.PL 2010-12-19 11:19:59.000000000 +0100
  152. @@ -14,7 +14,7 @@
  153. 'Carp::Clan' => 0,
  154. 'IO::Dir' => 0,
  155. 'IO::Scalar' => 2.110,
  156. - 'Parse::RecDescent' => 1.962002,
  157. + 'Parse::RecDescent' => 1.962,
  158. 'Pod::Usage' => 0,
  159. 'Class::Accessor::Fast' => 0,
  160. 'DBI' => 0,
  161. @@ -33,13 +33,6 @@
  162. 'Text::RecordParser' => 0.02,
  163. 'XML::LibXML' => 1.69,
  164. },
  165. - test_requires => {
  166. - 'YAML' => 0.66,
  167. - 'File::Basename' => 0,
  168. - 'Test::More' => 0.6,
  169. - 'Test::Differences' => 0,
  170. - 'Test::Exception' => 0,
  171. - },
  172. };
  173. perl_version '5.005';