AA: packages: python: fix sqlite extension (#12239)
authorGabor Juhos <juhosg@openwrt.org>
Tue, 30 Apr 2013 19:44:35 +0000 (19:44 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 30 Apr 2013 19:44:35 +0000 (19:44 +0000)
Backport of r33902.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36503

lang/python/Makefile
lang/python/patches/150-no-sqlite-rpath.patch [new file with mode: 0644]

index 59ab10ec5d5917dee82729b00ade379bbe80d4e9..c663d79022828ab14b551a9641c7b1ec92fa7647 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python
 PKG_VERSION:=2.7.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://www.python.org/ftp/python/$(PKG_VERSION)
diff --git a/lang/python/patches/150-no-sqlite-rpath.patch b/lang/python/patches/150-no-sqlite-rpath.patch
new file mode 100644 (file)
index 0000000..4f0ec41
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/setup.py
++++ b/setup.py
+@@ -1021,7 +1021,6 @@ class PyBuildExt(build_ext):
+                                   include_dirs=["Modules/_sqlite",
+                                                 sqlite_incdir],
+                                   library_dirs=sqlite_libdir,
+-                                  runtime_library_dirs=sqlite_libdir,
+                                   extra_link_args=sqlite_extra_link_args,
+                                   libraries=["sqlite3",]))
+         else: