From d03a295192f8d7b7ced98d5bbab91a8aa9b0ca4d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 May 2012 17:21:43 -0400 Subject: [PATCH] Require SQLite >= 3.6.19 Nix needs SQLite's foreign key constraint feature, which was introduced in 3.6.19. Without it, the database won't be cleaned up correctly when paths are deleted. See e.g. http://hydra.nixos.org/build/2494142. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index fba53e816..0f6b752f2 100644 --- a/configure.ac +++ b/configure.ac @@ -242,7 +242,7 @@ AC_CHECK_HEADERS([bzlib.h], [true], # Look for SQLite, a required dependency. -PKG_CHECK_MODULES([SQLITE3], [sqlite3], [CXXFLAGS="$SQLITE3_CFLAGS $CXXFLAGS"]) +PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= 3.6.19], [CXXFLAGS="$SQLITE3_CFLAGS $CXXFLAGS"]) # Whether to use the Boehm garbage collector.