summaryrefslogtreecommitdiff
path: root/lang/python/python-mysql
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-07-08 13:38:42 +0300
committerGitHub <noreply@github.com>2018-07-08 13:38:42 +0300
commitbc034d58361c9eeace811ba3afedc78815717fcc (patch)
tree8fb3728426f5918c649dba0a4a330d48036adb51 /lang/python/python-mysql
parenta7ec2bf32b8aca533df057e8765ccb241a17c205 (diff)
parent230bfc96ac891c8badb48c4f2667a50e8192d9d5 (diff)
Merge pull request #6419 from micmac1/python-mysql-404
python-mysql: fix 404 and uclibc build failures
Diffstat (limited to 'lang/python/python-mysql')
-rw-r--r--lang/python/python-mysql/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/python/python-mysql/Makefile b/lang/python/python-mysql/Makefile
index 5de2e1ecc..09fd2420c 100644
--- a/lang/python/python-mysql/Makefile
+++ b/lang/python/python-mysql/Makefile
@@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=python-mysql
PKG_VERSION:=1.3.12
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=GPL-2.0
PKG_SOURCE:=mysqlclient-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/m/$(PKG_NAME)
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/m/mysqlclient
PKG_HASH:=2d9ec33de39f4d9c64ad7322ede0521d85829ce36a76f9dd3d6ab76a9c8648e5
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-mysql-$(PKG_VERSION)
@@ -24,6 +24,14 @@ include ../python3-package.mk
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+# Help python-mysql find libiconv.so when using uClibc.
+ifneq ($(CONFIG_USE_UCLIBC),)
+TARGET_CPPFLAGS+= \
+ -I$(STAGING_DIR)/usr/lib/libiconv-full/include
+TARGET_LDFLAGS += \
+ -L$(STAGING_DIR)/usr/lib/libiconv-full/lib
+endif
+
define Package/python-mysql/Default
SUBMENU:=Python
SECTION:=lang