From 6739927946963e8afbc3d3dc32f37bf0ea843f01 Mon Sep 17 00:00:00 2001 From: Slavek Kabrda Date: Wed, 19 Feb 2014 14:29:31 +0100 Subject: [PATCH] Enable loading sqlite extensions. Resolves: rhbz#1066708 --- 00193-enable-loading-sqlite-extensions.patch | 11 +++++++++++ python.spec | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 00193-enable-loading-sqlite-extensions.patch 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 989a5c3..066e54c 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.6 -Release: 3%{?dist} +Release: 4%{?dist} License: Python Group: Development/Languages Requires: %{python}-libs%{?_isa} = %{version}-%{release} @@ -859,6 +859,14 @@ Patch191: 00191-disable-NOOP.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 ^^^) # @@ -1211,6 +1219,7 @@ mv Modules/cryptmodule.c Modules/_cryptmodule.c %patch190 -p1 %patch191 -p1 %patch192 -p1 +%patch193 -p1 # This shouldn't be necesarry, but is right now (2.2a3) @@ -2045,6 +2054,10 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Wed Feb 19 2014 Bohuslav Kabrda - 2.7.6-4 +- Enable loading sqlite extensions. +Resolves: rhbz#1066708 + * Mon Feb 10 2014 Tomas Radej - 2.7.6-3 - Fixed buffer overflow (upstream patch) Resolves: rhbz#1062375