[OE-core] [PATCH] sqlite3: Fix zlib determinism problem

Richard Purdie richard.purdie at linuxfoundation.org
Tue Aug 6 20:57:16 UTC 2019


sqlite3-native in particular was finding zlib from the host if zlib-devel
was installed. This could lead to races where pseudo-native may or may not
fail to build.

We don't need/use compressed page support with sqlite so disable the dependency
(it doesn't have a configure option so use a autoconf cache variable).

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-support/sqlite/sqlite3.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
index daf3db5e9fb..2ad621503cd 100644
--- a/meta/recipes-support/sqlite/sqlite3.inc
+++ b/meta/recipes-support/sqlite/sqlite3.inc
@@ -21,6 +21,10 @@ CVE_PRODUCT = "sqlite"
 
 inherit autotools pkgconfig
 
+# disable compressed page support as we don't need it
+# we can see non-deterministic floating zlib dependencies otherwise
+CACHED_CONFIGUREVARS += "ac_cv_search_deflate=no"
+
 # enable those which are enabled by default in configure
 PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext"
 PACKAGECONFIG_class-native ?= "fts4 fts5 json1 rtree dyn_ext"
-- 
2.20.1



More information about the Openembedded-core mailing list