Skip to contentSkip to conversation

sqlite3: Fix zlib determinism problem

PATCH Superseded Jason Wessel 2 participants 2 messages Aug 6, 2019

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sqlite3: Fix zlib determinism problem

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).

The target binaries were not previously building with zlib, so we will leave the default being zlib turned off, while the host binaries were building with it "occasionally", but not for anything at runtime.

---
 meta/recipes-support/sqlite/sqlite3.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-support/sqlite/sqlite3.inc +2 -0
index daf3db5e9f..2e48f303ee 100644
@@ -2,6 +2,8 @@ SUMMARY = "Embeddable SQL database engine"
 HOMEPAGE = "http://www.sqlite.org"
 SECTION = "libs"
 
+DEPENDS = "zlib-native"
+
 PE = "3"
 
 def sqlite_download_version(d):
Signature · 1 line
2.21.0
#1 lore raw
Quoted 21 lines · Jason Wessel

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).

The target binaries were not previously building with zlib, so we will leave the default being zlib turned off, while the host binaries were building with it "occasionally", but not for anything at runtime.

---
 meta/recipes-support/sqlite/sqlite3.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-support/sqlite/sqlite3.inc +0 -0
index daf3db5e9f..2e48f303ee 100644

meta/recipes-support/sqlite/sqlite3.inc SUMMARY = "Embeddable SQL database engine" · line 5

Quoted 4 lines
meta/recipes-support/sqlite/sqlite3.inc +1 -0
@@ -2,6 +2,8 @@ SUMMARY = "Embeddable SQL database engine"
 HOMEPAGE = "http://www.sqlite.org"
 SECTION = "libs"
 
+DEPENDS = "zlib-native"

this seems good, maybe make a packageconfig for target piece while here ?

otherwise it gets lost

Quoted 4 lines
meta/recipes-support/sqlite/sqlite3.inc +1 -0
+
 PE = "3"
 
 def sqlite_download_version(d):