aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-pyroute2
diff options
context:
space:
mode:
authorFabio Berton <fabio.berton@ossystems.com.br>2015-08-31 16:08:24 -0300
committerMartin Jansa <Martin.Jansa@gmail.com>2015-09-08 16:25:21 +0200
commit2315f412f625a85e683cf294356b651dcd05a029 (patch)
treef14b803e5324c544a8085b08ef2f2d5167cbba16 /meta-python/recipes-devtools/python/python-pyroute2
parent675a49ef0a6b76fd652e4b57ccbbe8b1e1085ec6 (diff)
downloadmeta-openembedded-2315f412f625a85e683cf294356b651dcd05a029.tar.gz
python-pyroute2: Add recipe
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-pyroute2')
-rw-r--r--meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch b/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
new file mode 100644
index 0000000000..d73da07d25
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
@@ -0,0 +1,26 @@
+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
+