Skip to content

Commit 9b796d4

Browse files
authored
Bump SQLite to 3.49.1.0 (#667)
Closes #666
1 parent ec8ee63 commit 9b796d4

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

cpython-unix/build-sqlite.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,22 @@ pushd sqlite-autoconf-${SQLITE_VERSION}
1414

1515

1616
CONFIGURE_FLAGS="--build=${BUILD_TRIPLE} --host=${TARGET_TRIPLE}"
17-
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --prefix /tools/deps --disable-shared"
17+
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --prefix=/tools/deps --disable-shared"
1818

1919
if [ "${TARGET_TRIPLE}" = "aarch64-apple-ios" ]; then
2020
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_search_system=no"
2121
elif [ "${TARGET_TRIPLE}" = "x86_64-apple-ios" ]; then
2222
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_search_system=no"
2323
fi
2424

25-
CFLAGS="${EXTRA_TARGET_CFLAGS} -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" LDFLAGS="${EXTRA_TARGET_LDFLAGS}" ./configure ${CONFIGURE_FLAGS}
25+
# The SQLite autosetup looks for the C++ compiler if the variable is set and will fail if it's not
26+
# found, even if it's not needed. We don't actually have a C++ compiler in some builds, so ensure
27+
# it's not looked for.
28+
unset CXX
2629

27-
make -j ${NUM_CPUS}
28-
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out
30+
CC_FOR_BUILD="${HOST_CC}" CFLAGS="${EXTRA_TARGET_CFLAGS} -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" LDFLAGS="${EXTRA_TARGET_LDFLAGS}" ./configure ${CONFIGURE_FLAGS}
31+
32+
make -j ${NUM_CPUS} libsqlite3.a
33+
make install-lib DESTDIR=${ROOT}/out
34+
make install-headers DESTDIR=${ROOT}/out
35+
make install-pc DESTDIR=${ROOT}/out

pythonbuild/downloads.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,11 @@
295295
},
296296
# Remember to update verify_distribution.py when version changed.
297297
"sqlite": {
298-
"url": "https://www.sqlite.org/2024/sqlite-autoconf-3470100.tar.gz",
299-
"size": 3328564,
300-
"sha256": "416a6f45bf2cacd494b208fdee1beda509abda951d5f47bc4f2792126f01b452",
301-
"version": "3470100",
302-
"actual_version": "3.47.1.0",
298+
"url": "https://www.sqlite.org/2025/sqlite-autoconf-3490100.tar.gz",
299+
"size": 3226385,
300+
"sha256": "106642d8ccb36c5f7323b64e4152e9b719f7c0215acf5bfeac3d5e7f97b59254",
301+
"version": "3490100",
302+
"actual_version": "3.49.1.0",
303303
"library_names": ["sqlite3"],
304304
"licenses": [],
305305
"license_file": "LICENSE.sqlite.txt",

src/verify_distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_hashlib(self):
114114
def test_sqlite(self):
115115
import sqlite3
116116

117-
self.assertEqual(sqlite3.sqlite_version_info, (3, 47, 1))
117+
self.assertEqual(sqlite3.sqlite_version_info, (3, 49, 1))
118118

119119
# Optional SQLite3 features are enabled.
120120
conn = sqlite3.connect(":memory:")

0 commit comments

Comments
 (0)