Skip to content

Bump SQLite to 3.49.1.0 #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions cpython-unix/build-sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,22 @@ pushd sqlite-autoconf-${SQLITE_VERSION}


CONFIGURE_FLAGS="--build=${BUILD_TRIPLE} --host=${TARGET_TRIPLE}"
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --prefix /tools/deps --disable-shared"
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --prefix=/tools/deps --disable-shared"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a syntax difference between autosetup and autoconf


if [ "${TARGET_TRIPLE}" = "aarch64-apple-ios" ]; then
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_search_system=no"
elif [ "${TARGET_TRIPLE}" = "x86_64-apple-ios" ]; then
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_search_system=no"
fi

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}
# The SQLite autosetup looks for the C++ compiler if the variable is set and will fail if it's not
# found, even if it's not needed. We don't actually have a C++ compiler in some builds, so ensure
# it's not looked for.
unset CXX

make -j ${NUM_CPUS}
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out
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}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The autosetup script use CC_FOR_BUILD instead of HOST_CC.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an actual concern but -fPIC for the preprocessor (CPPFLAGS) seems unneeded, I wonder why we were doing this.


make -j ${NUM_CPUS} libsqlite3.a
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make implies make all which includes the shared library despite --disable-shared

make install-lib DESTDIR=${ROOT}/out
make install-headers DESTDIR=${ROOT}/out
make install-pc DESTDIR=${ROOT}/out
10 changes: 5 additions & 5 deletions pythonbuild/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@
},
# Remember to update verify_distribution.py when version changed.
"sqlite": {
"url": "https://www.sqlite.org/2024/sqlite-autoconf-3470100.tar.gz",
"size": 3328564,
"sha256": "416a6f45bf2cacd494b208fdee1beda509abda951d5f47bc4f2792126f01b452",
"version": "3470100",
"actual_version": "3.47.1.0",
"url": "https://www.sqlite.org/2025/sqlite-autoconf-3490100.tar.gz",
"size": 3226385,
"sha256": "106642d8ccb36c5f7323b64e4152e9b719f7c0215acf5bfeac3d5e7f97b59254",
"version": "3490100",
"actual_version": "3.49.1.0",
"library_names": ["sqlite3"],
"licenses": [],
"license_file": "LICENSE.sqlite.txt",
Expand Down
2 changes: 1 addition & 1 deletion src/verify_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_hashlib(self):
def test_sqlite(self):
import sqlite3

self.assertEqual(sqlite3.sqlite_version_info, (3, 47, 1))
self.assertEqual(sqlite3.sqlite_version_info, (3, 49, 1))

# Optional SQLite3 features are enabled.
conn = sqlite3.connect(":memory:")
Expand Down
Loading