mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
python-pyroute2: uprev to v0.4.21 (from 0.3.22)
Drop the json<-->simplejson patch instead opting to depend on python-json (part of core python libs). Beyond this the uprev is straightforward. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
6b9cb0a7b0
commit
80b3f2e820
@@ -1,26 +1,15 @@
|
|||||||
SUMMARY = "A pure Python netlink and Linux network configuration library"
|
SUMMARY = "A pure Python netlink and Linux network configuration library"
|
||||||
LICENSE = "GPLv2 & Apache-2.0"
|
LICENSE = "GPLv2 & Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||||
file://LICENSE.Apache.v2;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55"
|
SRC_URI[md5sum] = "9c251543c4282a2f8b1a8d6aa8afc688"
|
||||||
SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14a1a50ebdffbd50d4e30ffda62c0a05d7b3"
|
SRC_URI[sha256sum] = "7afad28ee0a0f3e7c34adaa9f953d00560ed9910203e93f107833b6e8d151171"
|
||||||
|
|
||||||
SRC_URI += "file://import-simplejson-as-json.patch"
|
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/python-pyroute2:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/python-pyroute2:"
|
||||||
|
|
||||||
inherit pypi
|
inherit pypi
|
||||||
|
|
||||||
RDEPENDS_${PN} += "\
|
RDEPENDS_${PN} += " \
|
||||||
${PYTHON_PN}-distutils \
|
${PYTHON_PN}-json \
|
||||||
${PYTHON_PN}-simplejson \
|
"
|
||||||
${PYTHON_PN}-multiprocessing \
|
|
||||||
${PYTHON_PN}-io ${PYTHON_PN}-pprint \
|
|
||||||
${PYTHON_PN}-pickle \
|
|
||||||
${PYTHON_PN}-logging \
|
|
||||||
${PYTHON_PN}-threading \
|
|
||||||
${PYTHON_PN}-textutils \
|
|
||||||
${PYTHON_PN}-subprocess \
|
|
||||||
${PYTHON_PN}-netclient \
|
|
||||||
"
|
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
Upstream-Status: Inappropriate [wrong dependency]
|
|
||||||
|
|
||||||
Subject: [PATCH] import simplejson as json
|
|
||||||
|
|
||||||
At runtime python-pyroute2 tries to import json, but the module is not
|
|
||||||
available, import simplejson as json solve the issue.
|
|
||||||
|
|
||||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
|
||||||
---
|
|
||||||
pyroute2/netlink/rtnl/ifinfmsg.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/pyroute2/netlink/rtnl/ifinfmsg.py b/pyroute2/netlink/rtnl/ifinfmsg.py
|
|
||||||
index 4f14f25..55643eb 100644
|
|
||||||
--- a/pyroute2/netlink/rtnl/ifinfmsg.py
|
|
||||||
+++ b/pyroute2/netlink/rtnl/ifinfmsg.py
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
import os
|
|
||||||
-import json
|
|
||||||
+import simplejson as json
|
|
||||||
import errno
|
|
||||||
import select
|
|
||||||
import struct
|
|
||||||
--
|
|
||||||
2.1.4
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user