Skip to content

Commit 7314c71

Browse files
committed
libsqlite3: vendor a modern version
Problem: the JSON1 extension to sqlite3 is not available in RHEL 8 based distros. They are enabled by default in sqlite3-3.38, or earlier with an opt-in build option. While Ubuntu 22.04 ships sqlite3-3.37.2-2ubuntu0.3 which does include the JSON1 extension, RHEL 8 / TOSS 4 ships sqlite-3.26.0-19.el8_9.x86_64 which does not. Pull in the sqlite3 amalgomated source for 3.45.2 from here: https://sqlite.org/download.html License: "public domain". See https://sqlite.org/copyright.html
1 parent 2e4a13d commit 7314c71

File tree

5 files changed

+269185
-0
lines changed

5 files changed

+269185
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ AC_CONFIG_FILES( \
569569
src/common/libtaskmap/Makefile \
570570
src/common/libfilemap/Makefile \
571571
src/common/libsdexec/Makefile \
572+
src/common/libsqlite3/Makefile \
572573
src/common/libmissing/Makefile \
573574
src/bindings/Makefile \
574575
src/bindings/lua/Makefile \

src/common/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ SUBDIRS = \
2929
libtaskmap \
3030
libfilemap \
3131
libsdexec \
32+
libsqlite3 \
3233
libmissing
3334

3435
AM_CFLAGS = $(WARNING_CFLAGS) $(CODE_COVERAGE_CFLAGS)

src/common/libsqlite3/Makefile.am

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
AM_CFLAGS = \
2+
$(WARNING_CFLAGS) \
3+
$(CODE_COVERAGE_CFLAGS)
4+
5+
AM_LDFLAGS = \
6+
$(CODE_COVERAGE_LIBS)
7+
8+
AM_CPPFLAGS = \
9+
-I$(top_srcdir)
10+
11+
noinst_LTLIBRARIES = libsqlite3.la
12+
13+
libsqlite3_la_SOURCES = \
14+
sqlite3.h \
15+
sqlite3.c

0 commit comments

Comments
 (0)