[oe] [meta-oe][PATCH] pcsc-lite: use python3

Bonnans, Laurent laurent.bonnans at here.com
Mon Jan 27 11:50:33 UTC 2020


Signed-off-by: Laurent Bonnans <laurent.bonnans at here.com>
---
 .../0001-Run-pcsc-spy-with-python3.patch      | 25 +++++++++++++++++++
 .../pcsc-lite/pcsc-lite_1.8.26.bb             |  5 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/pcsc-lite/files/0001-Run-pcsc-spy-with-python3.patch

diff --git a/meta-oe/recipes-support/pcsc-lite/files/0001-Run-pcsc-spy-with-python3.patch b/meta-oe/recipes-support/pcsc-lite/files/0001-Run-pcsc-spy-with-python3.patch
new file mode 100644
index 000000000..1aad88200
--- /dev/null
+++ b/meta-oe/recipes-support/pcsc-lite/files/0001-Run-pcsc-spy-with-python3.patch
@@ -0,0 +1,25 @@
+From ec4c2d9c8fe85551d773f50bfa8c899cb5983c03 Mon Sep 17 00:00:00 2001
+From: Laurent Bonnans <laurent.bonnans at here.com>
+Date: Mon, 27 Jan 2020 12:38:20 +0100
+Subject: [PATCH] Run pcsc-spy with python3
+
+Upstream-status: Pending
+
+Signed-off-by: Laurent Bonnans <laurent.bonnans at here.com>
+---
+ src/spy/pcsc-spy | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/spy/pcsc-spy b/src/spy/pcsc-spy
+index 85222c6..bcb52f7 100755
+--- a/src/spy/pcsc-spy
++++ b/src/spy/pcsc-spy
+@@ -1,4 +1,4 @@
+-#! /usr/bin/python
++#!/usr/bin/env python3
+ 
+ """
+ #    Display PC/SC functions arguments
+-- 
+2.24.1
+
diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.26.bb b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.26.bb
index 5e6084656..2dd5135e9 100644
--- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.26.bb
+++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.26.bb
@@ -13,6 +13,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6"
 SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2"
 SRC_URI[md5sum] = "9d36882998449daceec267c68a21ff0d"
 SRC_URI[sha256sum] = "3eb7be7d6ef618c0a444316cf5c1f2f9d7227aedba7a192f389fe3e7c0dfbbd9"
+SRC_URI += " \
+    file://0001-Run-pcsc-spy-with-python3.patch \
+"
 
 inherit autotools systemd pkgconfig
 
@@ -50,6 +53,6 @@ RPROVIDES_${PN} += "${PN}-systemd"
 RREPLACES_${PN} += "${PN}-systemd"
 RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "pcscd.socket"
-RDEPENDS_${PN}-spy +="python"
+RDEPENDS_${PN}-spy +="python3"
 
 BBCLASSEXTEND = "native"
-- 
2.24.1


More information about the Openembedded-devel mailing list