diff options
Diffstat (limited to 'meta-oe/recipes-support/pcsc-lite')
-rw-r--r-- | meta-oe/recipes-support/pcsc-lite/pcsc-lite/0001-pcsc-spy-use-python3-only.patch | 43 | ||||
-rw-r--r-- | meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.0.3.bb (renamed from meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.9.0.bb) | 27 |
2 files changed, 13 insertions, 57 deletions
diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite/0001-pcsc-spy-use-python3-only.patch b/meta-oe/recipes-support/pcsc-lite/pcsc-lite/0001-pcsc-spy-use-python3-only.patch deleted file mode 100644 index 3e7b0adda6..0000000000 --- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite/0001-pcsc-spy-use-python3-only.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 75dd98876951d86890ceb30be521de57fd31e3c7 Mon Sep 17 00:00:00 2001 -From: Andrey Zhizhikin <andrey.z@gmail.com> -Date: Mon, 27 Jan 2020 13:27:12 +0000 -Subject: [PATCH] pcsc-spy: use python3 only - -Python2 has been EOL and most distributions would not provide any -support for it anymore. Since Python3 is available in all distributions -now, switch pcsc-spy to use it exclusively. - -Upstream-Status: Pending - -Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> ---- - src/spy/pcsc-spy | 9 ++------- - 1 file changed, 2 insertions(+), 7 deletions(-) - -diff --git a/src/spy/pcsc-spy b/src/spy/pcsc-spy -index 85222c6..965138e 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 -@@ -22,12 +22,7 @@ from __future__ import print_function - import os - import signal - import time --try: -- # for Python3 -- from queue import Queue --except ImportError: -- # for Python2 -- from Queue import Queue -+from queue import Queue - from threading import Thread - from operator import attrgetter - --- -2.17.1 - diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.9.0.bb b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.0.3.bb index d90dd43042..d5a560a6a0 100644 --- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.9.0.bb +++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.0.3.bb @@ -1,21 +1,18 @@ SUMMARY = "PC/SC Lite smart card framework and applications" -HOMEPAGE = "http://pcsclite.alioth.debian.org/" -LICENSE = "BSD-3-Clause & GPLv3+" +HOMEPAGE = "https://pcsclite.apdu.fr/" +LICENSE = "BSD-3-Clause & GPL-3.0-or-later" LICENSE:${PN} = "BSD-3-Clause" LICENSE:${PN}-lib = "BSD-3-Clause" LICENSE:${PN}-doc = "BSD-3-Clause" LICENSE:${PN}-dev = "BSD-3-Clause" -LICENSE:${PN}-dbg = "BSD-3-Clause & GPLv3+" -LICENSE:${PN}-spy = "GPLv3+" -LICENSE:${PN}-spy-dev = "GPLv3+" +LICENSE:${PN}-dbg = "BSD-3-Clause & GPL-3.0-or-later" +LICENSE:${PN}-spy = "GPL-3.0-or-later" +LICENSE:${PN}-spy-dev = "GPL-3.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6" +DEPENDS = "autoconf-archive-native flex-native" -SRC_URI = "\ - https://pcsclite.apdu.fr/files/${BP}.tar.bz2 \ - file://0001-pcsc-spy-use-python3-only.patch \ -" -SRC_URI[md5sum] = "eb595f2d398ff229207a6ec09fbc4e98" -SRC_URI[sha256sum] = "0148d403137124552c5d0f10f8cdab2cbb8dfc7c6ce75e018faf667be34f2ef9" +SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2" +SRC_URI[sha256sum] = "f42ee9efa489e9ff5d328baefa26f9c515be65021856e78d99ad1f0ead9ec85d" inherit autotools systemd pkgconfig perlnative @@ -26,11 +23,12 @@ EXTRA_OECONF = " \ S = "${WORKDIR}/pcsc-lite-${PV}" -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)} udev" PACKAGECONFIG:class-native ??= "" PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd," PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev" +PACKAGECONFIG[polkit] = ",--disable-polkit,polkit" PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev" @@ -38,7 +36,8 @@ RRECOMMENDS:${PN} = "ccid" RRECOMMENDS:${PN}:class-native = "" RPROVIDES:${PN}:class-native += "pcsc-lite-lib-native" -FILES:${PN} = "${sbindir}/pcscd" +FILES:${PN} = "${sbindir}/pcscd \ + ${datadir}/polkit-1" FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}" FILES:${PN}-dev = "${includedir} \ ${libdir}/pkgconfig \ @@ -54,6 +53,6 @@ RPROVIDES:${PN} += "${PN}-systemd" RREPLACES:${PN} += "${PN}-systemd" RCONFLICTS:${PN} += "${PN}-systemd" SYSTEMD_SERVICE:${PN} = "pcscd.socket" -RDEPENDS:${PN}-spy +="python3" +RDEPENDS:${PN}-spy += "python3-core" BBCLASSEXTEND = "native" |