From: openKylin Developers <packaging@lists.openkylin.top>
Date: Wed, 3 Jul 2024 15:12:32 +0800
Subject: DBD::SQLite3 ships its own copy of SQLite. That makes Debian

Origin: vendor
Forwarded: not-needed
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-08-30

sad and so we patched it away.
---
 Makefile.PL | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 8771fe1..b995400 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -129,7 +129,7 @@ SCOPE: {
 # 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 @@ if ( 0 ) {
 			}
 		}
 		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};
 		}
