Blame SOURCES/DBD-SQLite-1.50-Remove-bundled-source-extentions.patch

a004c3
From 8973008e7e50b14e266dd3ff6b4728289910ba5f Mon Sep 17 00:00:00 2001
a004c3
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
a004c3
Date: Thu, 18 Feb 2016 14:16:06 +0100
a004c3
Subject: [PATCH] Remove bundled source extentions
a004c3
MIME-Version: 1.0
a004c3
Content-Type: text/plain; charset=UTF-8
a004c3
Content-Transfer-Encoding: 8bit
a004c3
a004c3
Signed-off-by: Petr Písař <ppisar@redhat.com>
a004c3
---
a004c3
 README            | 30 ------------------------------
a004c3
 lib/DBD/SQLite.pm | 31 -------------------------------
a004c3
 2 files changed, 61 deletions(-)
a004c3
a004c3
diff --git a/README b/README
a004c3
index c1577c2..bf7503c 100644
a004c3
--- a/README
a004c3
+++ b/README
a004c3
@@ -1222,36 +1222,6 @@ R* TREE SUPPORT
a004c3
     using callbacks, as mentioned in the prior link, have not been
a004c3
     implemented yet.
a004c3
 
a004c3
-FOR DBD::SQLITE EXTENSION AUTHORS
a004c3
-    Since 1.30_01, you can retrieve the bundled sqlite C source and/or
a004c3
-    header like this:
a004c3
-
a004c3
-      use File::ShareDir 'dist_dir';
a004c3
-      use File::Spec::Functions 'catfile';
a004c3
-      
a004c3
-  # the whole sqlite3.h header
a004c3
-      my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
a004c3
-      
a004c3
-  # or only a particular header, amalgamated in sqlite3.c
a004c3
-      my $what_i_want = 'parse.h';
a004c3
-      my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
a004c3
-      open my $fh, '<', $sqlite3_c or die $!;
a004c3
-      my $code = do { local $/; <$fh> };
a004c3
-      my ($parse_h) = $code =~ m{(
a004c3
-        /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
a004c3
-        .+?
a004c3
-        /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
a004c3
-      )}sx;
a004c3
-      open my $out, '>', $what_i_want or die $!;
a004c3
-      print $out $parse_h;
a004c3
-      close $out;
a004c3
-
a004c3
-    You usually want to use this in your extension's "Makefile.PL", and you
a004c3
-    may want to add DBD::SQLite to your extension's "CONFIGURE_REQUIRES" to
a004c3
-    ensure your extension users use the same C source/header they use to
a004c3
-    build DBD::SQLite itself (instead of the ones installed in their
a004c3
-    system).
a004c3
-
a004c3
 TO DO
a004c3
     The following items remain to be done.
a004c3
 
a004c3
diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm
a004c3
index d03aeb5..60b74a7 100644
a004c3
--- a/lib/DBD/SQLite.pm
a004c3
+++ b/lib/DBD/SQLite.pm
a004c3
@@ -2494,37 +2494,6 @@ sources, etc.
a004c3
 
a004c3
 Other Perl virtual tables may also be published separately on CPAN.
a004c3
 
a004c3
-=head1 FOR DBD::SQLITE EXTENSION AUTHORS
a004c3
-
a004c3
-Since 1.30_01, you can retrieve the bundled SQLite C source and/or
a004c3
-header like this:
a004c3
-
a004c3
-  use File::ShareDir 'dist_dir';
a004c3
-  use File::Spec::Functions 'catfile';
a004c3
-  
a004c3
-  # the whole sqlite3.h header
a004c3
-  my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
a004c3
-  
a004c3
-  # or only a particular header, amalgamated in sqlite3.c
a004c3
-  my $what_i_want = 'parse.h';
a004c3
-  my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
a004c3
-  open my $fh, '<', $sqlite3_c or die $!;
a004c3
-  my $code = do { local $/; <$fh> };
a004c3
-  my ($parse_h) = $code =~ m{(
a004c3
-    /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
a004c3
-    .+?
a004c3
-    /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
a004c3
-  )}sx;
a004c3
-  open my $out, '>', $what_i_want or die $!;
a004c3
-  print $out $parse_h;
a004c3
-  close $out;
a004c3
-
a004c3
-You usually want to use this in your extension's C<Makefile.PL>,
a004c3
-and you may want to add DBD::SQLite to your extension's C<CONFIGURE_REQUIRES>
a004c3
-to ensure your extension users use the same C source/header they use
a004c3
-to build DBD::SQLite itself (instead of the ones installed in their
a004c3
-system).
a004c3
-
a004c3
 =head1 TO DO
a004c3
 
a004c3
 The following items remain to be done.
a004c3
-- 
a004c3
2.5.0
a004c3