patch-Makefile_PL 1.2 KB

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-Makefile_PL,v 1.11 2017/04/24 16:25:05 sthen Exp $
  2. - Upstream forces use of bundled sqlite but we use the one from ports.
  3. - Ports sqlite is built without -DSQLITE_ENABLE_COLUMN_METADATA;
  4. DBD::SQLite uses this as a conditional in its own code as well in the built
  5. copy of sqlite, so it needs to follow what's done in the sqlite build.
  6. --- Makefile.PL.orig Thu Nov 5 05:26:07 2015
  7. +++ Makefile.PL Mon Apr 24 17:20:34 2017
  8. @@ -129,7 +129,7 @@ SCOPE: {
  9. # a system sqlite is also sophisticated enough to have a patching system
  10. # that can change the if ( 0 ) to if ( 1 )
  11. my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
  12. -if ( 0 ) {
  13. +if ( 1 ) {
  14. require File::Spec;
  15. if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
  16. $sqlite_base =~ /=(.*)/;
  17. @@ -223,7 +223,6 @@ my @CC_DEFINE = (
  18. '-DSQLITE_ENABLE_FTS4', # for sqlite >= 3.7.4
  19. '-DSQLITE_ENABLE_FTS3_PARENTHESIS', # for sqlite >= 3.6.10
  20. '-DSQLITE_ENABLE_RTREE', # for sqlite >= 3.6.10
  21. - '-DSQLITE_ENABLE_COLUMN_METADATA',
  22. '-DSQLITE_ENABLE_STAT3', # for sqlite >= 3.7.9
  23. '-DSQLITE_ENABLE_STAT4', # for sqlite >= 3.8.3.1
  24. '-DSQLITE_ENABLE_JSON1', # for sqlite >= 3.9.0