diff mbox series

sqlite3: Enable unlock-notify for native builds

Message ID 20261126212957.2477520-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series sqlite3: Enable unlock-notify for native builds | expand

Commit Message

Khem Raj Nov. 26, 2026, 9:29 p.m. UTC
Rust crates that use sqlx with the system SQLite build their sqlx
proc macros for the build host, and those link sqlite3-native. sqlx
needs sqlite3_unlock_notify(), so without it the macros fail to load,
e.g. for influxdb3 in meta-oe:

  libsqlx_macros-<hash>.so: undefined symbol: sqlite3_unlock_notify

Enable unlock-notify for native as it already is for target.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta/recipes-support/sqlite/sqlite3_3.54.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marko, Peter Nov. 26, 2026, 9:46 p.m. UTC | #1
> -----Original Message-----
> From: Khem Raj via openembedded-core
> <raj.khem=gmail.com@lists.openembedded.org>
> Sent: Thursday, November 26, 2026 10:30 PM
> To: openembedded-core@lists.openembedded.org
> Cc: Khem Raj <khem.raj@oss.qualcomm.com>
> Subject: [OE-core] [PATCH] sqlite3: Enable unlock-notify for native builds
> 
> Rust crates that use sqlx with the system SQLite build their sqlx
> proc macros for the build host, and those link sqlite3-native. sqlx
> needs sqlite3_unlock_notify(), so without it the macros fail to load,
> e.g. for influxdb3 in meta-oe:
> 
>   libsqlx_macros-<hash>.so: undefined symbol: sqlite3_unlock_notify
> 
> Enable unlock-notify for native as it already is for target.
> 
> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
> ---
>  meta/recipes-support/sqlite/sqlite3_3.54.1.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-support/sqlite/sqlite3_3.54.1.bb b/meta/recipes-
> support/sqlite/sqlite3_3.54.1.bb
> index 681b8e1e20..5daea010fe 100644
> --- a/meta/recipes-support/sqlite/sqlite3_3.54.1.bb
> +++ b/meta/recipes-support/sqlite/sqlite3_3.54.1.bb
> @@ -32,7 +32,7 @@ CVE_PRODUCT = "sqlite"
>  inherit pkgconfig siteinfo upstream-stable-release-point
> 
>  PACKAGECONFIG ?= "fts4 fts5 rtree dyn_ext unlock-notify"
> -PACKAGECONFIG:class-native ?= "fts4 fts5 rtree dyn_ext"
> +PACKAGECONFIG:class-native ?= "fts4 fts5 rtree dyn_ext unlock-notify"

These two PACKAGECONFIGs are now identical, so should we just remove the native override instead?
Peter

> 
>  PACKAGECONFIG[editline] = "--enable-editline --with-readline-
> header=${STAGING_INCDIR}/editline/readline.h,--disable-editline,libedit ncurses"
>  PACKAGECONFIG[readline] = "--enable-readline --with-readline-
> header=${STAGING_INCDIR}/readline/readline.h,--disable-readline,readline ncurses"
diff mbox series

Patch

diff --git a/meta/recipes-support/sqlite/sqlite3_3.54.1.bb b/meta/recipes-support/sqlite/sqlite3_3.54.1.bb
index 681b8e1e20..5daea010fe 100644
--- a/meta/recipes-support/sqlite/sqlite3_3.54.1.bb
+++ b/meta/recipes-support/sqlite/sqlite3_3.54.1.bb
@@ -32,7 +32,7 @@  CVE_PRODUCT = "sqlite"
 inherit pkgconfig siteinfo upstream-stable-release-point
 
 PACKAGECONFIG ?= "fts4 fts5 rtree dyn_ext unlock-notify"
-PACKAGECONFIG:class-native ?= "fts4 fts5 rtree dyn_ext"
+PACKAGECONFIG:class-native ?= "fts4 fts5 rtree dyn_ext unlock-notify"
 
 PACKAGECONFIG[editline] = "--enable-editline --with-readline-header=${STAGING_INCDIR}/editline/readline.h,--disable-editline,libedit ncurses"
 PACKAGECONFIG[readline] = "--enable-readline --with-readline-header=${STAGING_INCDIR}/readline/readline.h,--disable-readline,readline ncurses"