perl-dbi.patch 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. Index: DBD-SQLite-1.14/Makefile.PL
  2. --- DBD-SQLite-1.14/Makefile.PL.orig 2007-08-28 21:57:09 +0200
  3. +++ DBD-SQLite-1.14/Makefile.PL 2008-02-02 10:57:18 +0100
  4. @@ -10,34 +10,6 @@
  5. }
  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. # 2005/6/19, by rjray@blackperl.com
  37. #
  38. @@ -111,18 +83,19 @@
  39. my $nlid = $DBI::VERSION > 1.42 ? '' : '-Dno_last_insert_id';
  40. -my $libs = '';
  41. -$libs .= "-L$sqlite_lib " if ($sqlite_lib);
  42. -$libs .= "-lsqlite3 " unless ($force_local);
  43. +my $inc = `@l_prefix@/bin/pkg-config sqlite3 --cflags-only-I`;
  44. +$inc =~ s/\r?\n$//s;
  45. +my $libs = `@l_prefix@/bin/pkg-config sqlite3 --libs`;
  46. +$libs =~ s/\r?\n$//s;
  47. WriteMakefile(
  48. 'NAME' => 'DBD::SQLite',
  49. 'VERSION_FROM' => 'lib/DBD/SQLite.pm', # finds $VERSION
  50. 'PREREQ_PM' => {DBI => 1.21}, # e.g., Module::Name => 1.1
  51. 'OBJECT' => ($force_local) ? '$(O_FILES)' : 'SQLite.o dbdimp.o',
  52. - 'INC' => '-I. -I$(DBI_INSTARCH_DIR)' .
  53. + 'INC' => $inc . ' -I. -I$(DBI_INSTARCH_DIR)' .
  54. (($sqlite_inc) ? " -I$sqlite_inc" : ''),
  55. - $libs ? ('LIBS' => $libs) : (),
  56. + 'LIBS' => [ $libs ],
  57. 'OPTIMIZE' => "-O2",
  58. 'DEFINE' => "-DSQLITE_CORE -DSQLITE_ENABLE_FTS2 -DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" .
  59. ( ($Config{d_usleep} ||
  60. Index: DBD-SQLite-1.14/dbdimp.h
  61. --- DBD-SQLite-1.14/dbdimp.h.orig 2007-08-23 02:45:08 +0200
  62. +++ DBD-SQLite-1.14/dbdimp.h 2008-02-02 10:57:18 +0100
  63. @@ -4,7 +4,7 @@
  64. #define _DBDIMP_H 1
  65. #include "SQLiteXS.h"
  66. -#include "sqliteInt.h"
  67. +#include "sqlite3.h"
  68. /* 30 second timeout by default */
  69. #define SQL_TIMEOUT 30000
  70. Index: DBD-cego/Makefile.PL
  71. --- DBD-cego/Makefile.PL.orig 2007-06-25 20:38:07 +0200
  72. +++ DBD-cego/Makefile.PL 2008-02-02 10:57:18 +0100
  73. @@ -43,7 +43,7 @@
  74. 'VERSION_FROM' => 'Cego.pm',
  75. 'PREREQ_PM' => {DBI => 1.03},
  76. 'OBJECT' => '$(O_FILES)',
  77. - 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include',
  78. + 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include/cego',
  79. 'MYEXTLIB' => $opt->{'prefix'} . "/lib/libCego.a "
  80. . $opt->{'prefix'} . "/lib/libXML.a "
  81. . $opt->{'prefix'} . "/lib/libBase.a",
  82. Index: DBD-mysql-4.008/dbdimp.h
  83. --- DBD-mysql-4.008/dbdimp.h.orig 2007-12-11 22:41:50 +0100
  84. +++ DBD-mysql-4.008/dbdimp.h 2008-02-02 10:57:18 +0100
  85. @@ -19,6 +19,7 @@
  86. * Header files we use
  87. */
  88. #include <DBIXS.h> /* installed by the DBI module */
  89. +#include <my_global.h>
  90. #include <mysql.h> /* Comes with MySQL-devel */
  91. #include <mysqld_error.h> /* Comes MySQL */
  92. Index: SQL-Translator-0.09000/Build.PL
  93. --- SQL-Translator-0.09000/Build.PL.orig 2008-01-31 13:06:23 +0100
  94. +++ SQL-Translator-0.09000/Build.PL 2008-02-02 10:58:12 +0100
  95. @@ -25,7 +25,6 @@
  96. 'Class::Data::Inheritable' => 0.02,
  97. 'Class::MakeMethods' => 0,
  98. 'IO::Dir' => 0,
  99. - 'Log::Log4perl' => 0,
  100. 'Parse::RecDescent' => 1.94,
  101. 'Pod::Usage' => 0,
  102. 'Class::Accessor::Fast' => 0,
  103. @@ -44,13 +43,6 @@
  104. 'XML::XPath' => 1.13,
  105. },
  106. build_requires => {
  107. - 'File::Basename' => 0,
  108. - 'File::Spec' => 0,
  109. - 'Test::More' => 0.6,
  110. - 'Test::Differences' => 0,
  111. - 'Test::Exception' => 0,
  112. - 'Test::Differences' => 0,
  113. - 'YAML' => 0.39,
  114. },
  115. get_options => {
  116. # Where to store additional files such as templates.
  117. Index: SQL-Translator-0.09000/lib/SQL/Translator/Schema/Graph.pm
  118. --- SQL-Translator-0.09000/lib/SQL/Translator/Schema/Graph.pm.orig 2008-01-31 13:06:23 +0100
  119. +++ SQL-Translator-0.09000/lib/SQL/Translator/Schema/Graph.pm 2008-02-02 10:57:18 +0100
  120. @@ -5,8 +5,6 @@
  121. use Data::Dumper;
  122. local $Data::Dumper::Maxdepth = 3;
  123. -use Log::Log4perl qw(:easy);
  124. -Log::Log4perl->easy_init($ERROR);
  125. use SQL::Translator::Schema::Graph::Node;
  126. use SQL::Translator::Schema::Graph::Edge;
  127. use SQL::Translator::Schema::Graph::Port;
  128. @@ -173,7 +171,6 @@
  129. }
  130. my $graph = $self; #hack
  131. - my $log = Log::Log4perl->get_logger('SQL.Translator.Schema.Graph');
  132. #
  133. # create methods
  134. @@ -208,8 +205,6 @@
  135. $hyperedge->push_thatfield($edge->thisfield);
  136. $hyperedge->push_thatviafield($edge->thatfield);
  137. }
  138. - $log->debug($edge->thisfield->name);
  139. - $log->debug($edge->thatfield->name);
  140. }
  141. if ($hyperedge->count_thisnode == 1 and $hyperedge->count_thatnode == 1) {
  142. @@ -222,25 +217,11 @@
  143. $hyperedge->type('many2many');
  144. }
  145. - $log->debug($_) foreach sort keys %::SQL::Translator::Schema::Graph::HyperEdge::;
  146. -
  147. #node_to won't always be defined b/c of multiple edges to a single other node
  148. if (defined($node_to)) {
  149. - $log->debug($node_from->name);
  150. - $log->debug($node_to->name);
  151. -
  152. if (scalar($hyperedge->thisnode) > 1) {
  153. - $log->debug($hyperedge->type ." via ". $hyperedge->vianode->name);
  154. my $i = 0;
  155. foreach my $thisnode ( $hyperedge->thisnode ) {
  156. - $log->debug($thisnode->name .' '.
  157. - $hyperedge->thisfield_index(0)->name .' -> '.
  158. - $hyperedge->thisviafield_index($i)->name .' '.
  159. - $hyperedge->vianode->name .' '.
  160. - $hyperedge->thatviafield_index(0)->name .' <- '.
  161. - $hyperedge->thatfield_index(0)->name .' '.
  162. - $hyperedge->thatnode_index(0)->name ."\n"
  163. - );
  164. $i++;
  165. }
  166. }
  167. Index: DBD-Sybase-1.08/dbdimp.c
  168. --- DBD-Sybase-1.08/dbdimp.c.orig 2007-04-19 20:33:30 +0200
  169. +++ DBD-Sybase-1.08/dbdimp.c 2008-07-29 18:32:49 +0200
  170. @@ -797,22 +797,22 @@
  171. #if defined(CS_VERSION_150)
  172. if(cs_ver == CS_VERSION_150)
  173. - BLK_VERSION = BLK_VERSION_150;
  174. + BLK_VERSION = CS_VERSION_150;
  175. #endif
  176. #if defined(CS_VERSION_125)
  177. if(cs_ver == CS_VERSION_125)
  178. - BLK_VERSION = BLK_VERSION_125;
  179. + BLK_VERSION = CS_VERSION_125;
  180. #endif
  181. #if defined(CS_VERSION_120)
  182. if(cs_ver == CS_VERSION_120)
  183. - BLK_VERSION = BLK_VERSION_120;
  184. + BLK_VERSION = CS_VERSION_120;
  185. #endif
  186. #if defined(CS_VERSION_110)
  187. if(cs_ver == CS_VERSION_110)
  188. - BLK_VERSION = BLK_VERSION_110;
  189. + BLK_VERSION = CS_VERSION_110;
  190. #endif
  191. if(cs_ver == CS_VERSION_100)
  192. - BLK_VERSION = BLK_VERSION_100;
  193. + BLK_VERSION = CS_VERSION_100;
  194. #if USE_CSLIB_CB
  195. if (cs_config(context, CS_SET, CS_MESSAGE_CB,