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

Khem Raj raj.khem at gmail.com
Tue Aug 6 20:58:52 UTC 2019


On Tue, Aug 6, 2019 at 1:57 PM Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
>
> 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"
> +

should this be done for native only ?

>  # 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
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list