diff --git a/00193-enable-loading-sqlite-extensions.patch b/00193-enable-loading-sqlite-extensions.patch new file mode 100644 index 0000000..36d053a --- /dev/null +++ b/00193-enable-loading-sqlite-extensions.patch @@ -0,0 +1,11 @@ +--- Python-2.7.5/setup.py.orig 2013-05-11 20:32:54.000000000 -0700 ++++ Python-2.7.5/setup.py 2014-02-18 14:16:07.999004901 -0800 +@@ -1168,7 +1168,7 @@ class PyBuildExt(build_ext): + sqlite_defines.append(('MODULE_NAME', '\\"sqlite3\\"')) + + # Comment this out if you want the sqlite3 module to be able to load extensions. +- sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1")) ++ #sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1")) + + if host_platform == 'darwin': + # In every directory on the search path search for a dynamic diff --git a/python.spec b/python.spec index 1c33fb0..b43ae73 100644 --- a/python.spec +++ b/python.spec @@ -106,7 +106,7 @@ Summary: An interpreted, interactive, object-oriented programming language Name: %{python} # Remember to also rebase python-docs when changing this: Version: 2.7.5 -Release: 10%{?dist} +Release: 11%{?dist} License: Python Group: Development/Languages Requires: %{python}-libs%{?_isa} = %{version}-%{release} @@ -865,6 +865,15 @@ Patch190: 00190-get_python_version.patch # rhbz#1062375 Patch192: 00192-buffer-overflow.patch +# 00193 # +# +# Enable loading sqlite extensions. This patch isn't needed for +# python3.spec, since Python 3 has a configuration option for this. +# rhbz#1066708 +# Patch provided by John C. Peterson +Patch193: 00193-enable-loading-sqlite-extensions.patch + + # (New patches go here ^^^) # # When adding new patches to "python" and "python3" in Fedora 17 onwards, @@ -1217,6 +1226,7 @@ mv Modules/cryptmodule.c Modules/_cryptmodule.c %patch189 -p1 %patch190 -p1 %patch192 -p1 +%patch193 -p1 # This shouldn't be necesarry, but is right now (2.2a3) @@ -2046,6 +2056,10 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Wed Feb 19 2014 Bohuslav Kabrda - 2.7.5-11 +- Enable loading sqlite extensions. +Resolves: rhbz#1066708 + * Mon Feb 10 2014 Tomas Radej - 2.7.5-10 - Fixed buffer overflow (upstream patch) Resolves: rhbz#1062375