diff mbox series

[v2] sqlite3: Enable unlock-notify for native builds

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

Commit Message

Khem Raj Nov. 27, 2026, 3:26 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

Drop the native PACKAGECONFIG override, so native uses the same
defaults as target, which include unlock-notify.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
v2: Drop the :class-native override instead of adding unlock-notify to it,
    as suggested by Peter Marko and Peter Kjellerstedt.

 meta/recipes-support/sqlite/sqlite3_3.54.1.bb | 1 -
 1 file changed, 1 deletion(-)
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..af8158ed2d 100644
--- a/meta/recipes-support/sqlite/sqlite3_3.54.1.bb
+++ b/meta/recipes-support/sqlite/sqlite3_3.54.1.bb
@@ -32,7 +32,6 @@  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[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"