File: use_system_sqlite

package info (click to toggle)
libdbd-sqlite3-perl 1.76-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,004 kB
  • sloc: ansic: 167,715; perl: 1,788; pascal: 277; makefile: 9
file content (32 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: DBD::SQLite3 ships its own copy of SQLite. That makes Debian
 sad and so we patched it away.
Origin: vendor
Forwarded: not-needed
Author: Maximilian Gass
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-08-30

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -129,7 +129,7 @@
 # a system sqlite is also sophisticated enough to have a patching system
 # that can change the if ( 0 ) to if ( 1 )
 my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
-if ( 0 ) {
+if ( 1 ) {
 	require File::Spec;
 	if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
 		$sqlite_base =~ /=(.*)/;
@@ -186,11 +186,7 @@
 			}
 		}
 		unless ( $version && ($version >= 3006000) ) {
-			warn "SQLite version must be at least 3.6.0. No header file at that\n";
-			warn "version or higher was found. Using the local version instead.\n";
-			$sqlite_local = 1;
-			undef $sqlite_lib;
-			undef $sqlite_inc;
+			die "SQLite version must be at least 3.6.0.\nNo header file at that version or higher was found.\n";
 		} else {
 			print "Looks good\n" if $ENV{AUTOMATED_TESTING};
 		}