perl-dbi.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Index: DBD-SQLite-1.22_03/Makefile.PL
  2. --- DBD-SQLite-1.22_03/Makefile.PL.orig 2009-04-09 11:30:10 +0200
  3. +++ DBD-SQLite-1.22_03/Makefile.PL 2009-04-10 11:40:03 +0200
  4. @@ -16,46 +16,7 @@
  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. # 2005/6/19, by rjray@blackperl.com
  48. #
  49. @@ -154,20 +115,17 @@
  50. # Prepare Compiler Options
  51. my @CC_LIBS = ();
  52. -if ( $sqlite_lib ) {
  53. - push @CC_LIBS, "-L$sqlite_lib";
  54. -}
  55. -unless ( $force_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. -if ( $sqlite_inc ) {
  68. - push @CC_INC, "-I$sqlite_inc";
  69. -}
  70. +unshift @INC, $inc;
  71. my @CC_DEFINE = (
  72. '-DSQLITE_CORE',
  73. Index: DBD-Sybase-1.09/dbdimp.c
  74. --- DBD-Sybase-1.09/dbdimp.c.orig 2008-08-31 14:08:17 +0200
  75. +++ DBD-Sybase-1.09/dbdimp.c 2009-04-10 11:14:49 +0200
  76. @@ -774,22 +774,22 @@
  77. #if defined(CS_VERSION_150)
  78. if(cs_ver == CS_VERSION_150)
  79. - BLK_VERSION = BLK_VERSION_150;
  80. + BLK_VERSION = CS_VERSION_150;
  81. #endif
  82. #if defined(CS_VERSION_125)
  83. if(cs_ver == CS_VERSION_125)
  84. - BLK_VERSION = BLK_VERSION_125;
  85. + BLK_VERSION = CS_VERSION_125;
  86. #endif
  87. #if defined(CS_VERSION_120)
  88. if(cs_ver == CS_VERSION_120)
  89. - BLK_VERSION = BLK_VERSION_120;
  90. + BLK_VERSION = CS_VERSION_120;
  91. #endif
  92. #if defined(CS_VERSION_110)
  93. if(cs_ver == CS_VERSION_110)
  94. - BLK_VERSION = BLK_VERSION_110;
  95. + BLK_VERSION = CS_VERSION_110;
  96. #endif
  97. if (cs_ver == CS_VERSION_100)
  98. - BLK_VERSION = BLK_VERSION_100;
  99. + BLK_VERSION = CS_VERSION_100;
  100. #if USE_CSLIB_CB
  101. if (cs_config(context, CS_SET, CS_MESSAGE_CB,
  102. Index: DBD-cego/Makefile.PL
  103. --- DBD-cego/Makefile.PL.orig 2007-06-25 20:38:07 +0200
  104. +++ DBD-cego/Makefile.PL 2009-04-10 11:14:49 +0200
  105. @@ -43,7 +43,7 @@
  106. 'VERSION_FROM' => 'Cego.pm',
  107. 'PREREQ_PM' => {DBI => 1.03},
  108. 'OBJECT' => '$(O_FILES)',
  109. - 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include',
  110. + 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include/cego',
  111. 'MYEXTLIB' => $opt->{'prefix'} . "/lib/libCego.a "
  112. . $opt->{'prefix'} . "/lib/libXML.a "
  113. . $opt->{'prefix'} . "/lib/libBase.a",
  114. Index: DBD-mysql-4.010/dbdimp.h
  115. --- DBD-mysql-4.010/dbdimp.h.orig 2008-04-29 01:36:17 +0200
  116. +++ DBD-mysql-4.010/dbdimp.h 2009-04-10 11:14:49 +0200
  117. @@ -19,6 +19,7 @@
  118. * Header files we use
  119. */
  120. #include <DBIXS.h> /* installed by the DBI module */
  121. +#include <my_global.h>
  122. #include <mysql.h> /* Comes with MySQL-devel */
  123. #include <mysqld_error.h> /* Comes MySQL */