OpenVoiceOS/buildroot-patches/0011-Downgrade-python-ifadd...

50 lines
2.1 KiB
Diff

From 879e3e878a75ec0d60fbefa24ab995f50630f7b2 Mon Sep 17 00:00:00 2001
From: j1nx <p.steenbergen@j1nx.nl>
Date: Thu, 29 Oct 2020 20:49:46 +0100
Subject: [PATCH 1/1] Downgrade python-ifaddr to 0.1.4
---
package/python-ifaddr/python-ifaddr.hash | 2 +-
package/python-ifaddr/python-ifaddr.mk | 12 +++++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/package/python-ifaddr/python-ifaddr.hash b/package/python-ifaddr/python-ifaddr.hash
index 57b155caa5..af1b89966d 100644
--- a/package/python-ifaddr/python-ifaddr.hash
+++ b/package/python-ifaddr/python-ifaddr.hash
@@ -1,5 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/ifaddr/json
md5 97c4eb7505643b5f1fe17733cb42abd9 ifaddr-0.1.7.tar.gz
-sha256 1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94 ifaddr-0.1.7.tar.gz
+sha256 cf2a8fbb578da2844d999a0a453825f660ed2d3fc47dcffc5f673dd8de4f0f8b ifaddr-0.1.4.zip
# Locally computed sha256 checksums
sha256 8700856576ae2bc80c63bc970250510d9213fb02fed006d5f22742c9ddde24d7 LICENSE.txt
diff --git a/package/python-ifaddr/python-ifaddr.mk b/package/python-ifaddr/python-ifaddr.mk
index f1154d9de8..1203afa724 100644
--- a/package/python-ifaddr/python-ifaddr.mk
+++ b/package/python-ifaddr/python-ifaddr.mk
@@ -4,11 +4,17 @@
#
################################################################################
-PYTHON_IFADDR_VERSION = 0.1.7
-PYTHON_IFADDR_SOURCE = ifaddr-$(PYTHON_IFADDR_VERSION).tar.gz
-PYTHON_IFADDR_SITE = https://files.pythonhosted.org/packages/3d/fc/4ce147e3997cd0ea470ad27112087545cf83bf85015ddb3054673cb471bb
+PYTHON_IFADDR_VERSION = 0.1.4
+PYTHON_IFADDR_SOURCE = ifaddr-$(PYTHON_IFADDR_VERSION).zip
+PYTHON_IFADDR_SITE = https://files.pythonhosted.org/packages/12/40/97ef30db32e0c798fc557af403ea263dbeae8d334571603f02e19f4021a0
PYTHON_IFADDR_SETUP_TYPE = setuptools
PYTHON_IFADDR_LICENSE = MIT
PYTHON_IFADDR_LICENSE_FILES = LICENSE.txt
+define PYTHON_IFADDR_EXTRACT_CMDS
+ $(UNZIP) -d $(@D) $(DL_DIR)/python-ifaddr/$(PYTHON_IFADDR_SOURCE)
+ mv $(@D)/ifaddr-$(PYTHON_IFADDR_VERSION)/* $(@D)
+ $(RM) -r $(@D)/ifaddr-$(PYTHON_IFADDR_VERSION)
+endef
+
$(eval $(python-package))
--
2.20.1