https://github.com/python/cpython/commit/0d35e3be528ca43a6c2778f5022e6e8734e009ab
commit: 0d35e3be528ca43a6c2778f5022e6e8734e009ab
branch: main
author: Vasiliy Kiryanov <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-10-21T16:05:02+03:00
summary:
gh-54767: Respect --disable-loadable-sqlite-extensions in configure (GH-159728)
The option was enabled for every spelling, including =no and --disable-.
files:
A Misc/NEWS.d/next/Build/2026-10-19-13-49-39.gh-issue-54767.IdrGm6.rst
M configure
M configure.ac
diff --git
a/Misc/NEWS.d/next/Build/2026-10-19-13-49-39.gh-issue-54767.IdrGm6.rst
b/Misc/NEWS.d/next/Build/2026-10-19-13-49-39.gh-issue-54767.IdrGm6.rst
new file mode 100644
index 00000000000000..6154892709ee12
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2026-10-19-13-49-39.gh-issue-54767.IdrGm6.rst
@@ -0,0 +1,3 @@
+The ``--enable-loadable-sqlite-extensions=no`` and
+``--disable-loadable-sqlite-extensions`` configure options now disable
+loadable SQLite extensions instead of enabling them.
diff --git a/configure b/configure
index 607f43db23360d..38fd8575530e8a 100755
--- a/configure
+++ b/configure
@@ -18020,35 +18020,42 @@ printf %s "checking for
--enable-loadable-sqlite-extensions... " >&6; }
if test ${enable_loadable_sqlite_extensions+y}
then :
enableval=$enable_loadable_sqlite_extensions;
- if test "x$have_sqlite3_load_extension" = xno
+else case e in #(
+ e) enable_loadable_sqlite_extensions=no
+ ;;
+esac
+fi
+
+if test "x$enable_loadable_sqlite_extensions" = xyes
+then :
+
+ if test "x$have_sqlite3_load_extension" = xno
then :
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
printf "%s\n" "n/a" >&6; }
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of
SQLite does not support loadable extensions" >&5
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of
SQLite does not support loadable extensions" >&5
printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support
loadable extensions" >&2;}
else case e in #(
e)
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h
- ;;
+ ;;
esac
fi
else case e in #(
e)
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
-
;;
esac
fi
-
found_tcltk=no
for _QUERY in \
"tcl >= 8.5.12 tk >= 8.5.12" \
diff --git a/configure.ac b/configure.ac
index 775b8b4e603877..777ced94454594 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4631,21 +4631,22 @@ AC_ARG_ENABLE([loadable-sqlite-extensions],
support loadable extensions in the sqlite3 module, see
Doc/library/sqlite3.rst (default is no)
]
- ), [
- AS_VAR_IF([have_sqlite3_load_extension], [no], [
- AC_MSG_RESULT([n/a])
- AC_MSG_WARN([Your version of SQLite does not support loadable
extensions])
- ], [
- AC_MSG_RESULT([yes])
- AC_DEFINE(
- [PY_SQLITE_ENABLE_LOAD_EXTENSION], [1],
- [Define to 1 to build the sqlite module with loadable extensions
support.]
- )
- ])
- ], [
- AC_MSG_RESULT([no])
- ]
+ ), [], [enable_loadable_sqlite_extensions=no]
)
+AS_VAR_IF([enable_loadable_sqlite_extensions], [yes], [
+ AS_VAR_IF([have_sqlite3_load_extension], [no], [
+ AC_MSG_RESULT([n/a])
+ AC_MSG_WARN([Your version of SQLite does not support loadable extensions])
+ ], [
+ AC_MSG_RESULT([yes])
+ AC_DEFINE(
+ [PY_SQLITE_ENABLE_LOAD_EXTENSION], [1],
+ [Define to 1 to build the sqlite module with loadable extensions
support.]
+ )
+ ])
+], [
+ AC_MSG_RESULT([no])
+])
dnl
dnl Detect Tcl/Tk. Use pkg-config if available.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]