Skip to contentSkip to conversation

ccid: Update to version 1.3.10

PATCH In review Dirk 'Virk' Van Haerenborgh 3 participants 4 messages Apr 8, 2009 – Apr 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ccid: Update to version 1.3.10

---
 conf/checksums.ini          |    4 ++++
 recipes/ccid/ccid_1.3.10.bb |   21 +++++++++++++++++++++
 2 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ccid/ccid_1.3.10.bb
conf/checksums.ini +4 -0
index 2e8e264..08f9892 100644
@@ -3326,6 +3326,10 @@ sha256=015c4237a532b873990aeeecdf351138ce5a811d062d6db73c611a4985de5435
 md5=b8c51a2e3cccb381428426c0fc543244
 sha256=f1e44d628cc4cbac192bf33f492ad8d1e1988cae576924128df36f3638e9a485
 
+[http://alioth.debian.org/download.php/2924/ccid-1.3.10.tar.bz2]
+md5=92220d7b7b0aae7bc141b09ba529458c
+sha256=54610f1a6cd65e8d2b5cb9f7917e509ebcdf130a565e71e06ad4e65ed0dad5ec
+
 [http://alioth.debian.org/download.php/2482/ccid-1.3.8.tar.bz2]
 md5=ebb5fc927d73cd63737a9114481e8957
 sha256=8cb892ef36321069eff7826aa732f1481715fe54bf96346fae1d25565b44c536
recipes/ccid/ccid_1.3.10.bb new file +21 -0
new file mode 100644
index 0000000..37f74eb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Generic USB CCID smart card reader driver"
+HOMEPAGE = "http://pcsclite.alioth.debian.org/ccid.html"
+LICENSE = "GPL"
+PR = "r0"
+
+DEPENDS = "libusb pcsc-lite"
+RDEPENDS = "pcsc-lite"
+
+SRC_URI = "http://alioth.debian.org/download.php/2924/ccid-${PV}.tar.bz2"
+
+inherit autotools
+
+EXTRA_OECONF = "--enable-udev"
+
+do_install_append () {
+	install -d "${D}/etc/udev/rules.d"
+	install -m 644 "${S}/src/pcscd_ccid.rules" "${D}/etc/udev/rules.d/85-pcscd_ccid.rules"
+}
+
+FILES_${PN} += "${libdir}/pcsc/"
+FILES_${PN}-dbg += "${libdir}/pcsc/drivers/*/*/*/.debug"
Signature · 1 line
1.6.0.4
#1 lore raw

Review

Quoted 4 lines · Dirk 'Virk' Van Haerenborgh

+++ b/recipes/ccid/ccid_1.3.10.bb

(quoted diff) +1 -0
@@ -0,0 +1,21 @@
 
+PR = "r0"

Drop that

recipes/ccid/ccid_1.3.10.bb line 13

Quoted 4 lines
recipes/ccid/ccid_1.3.10.bb new file +3 -0
+DEPENDS = "libusb pcsc-lite"
+RDEPENDS = "pcsc-lite"
 
+EXTRA_OECONF = "--enable-udev"

Shouldn't something like RRECOMMENDS_${PN} = "udev" be there as well?

regards,

Koen

#2 lore raw
Quoted 6 lines · Koen Kooi

recipes/ccid/ccid_1.3.10.bb line 13

Quoted 4 lines
recipes/ccid/ccid_1.3.10.bb new file +3 -0
+DEPENDS = "libusb pcsc-lite"
+RDEPENDS = "pcsc-lite"
 
+EXTRA_OECONF = "--enable-udev"

Shouldn't something like RRECOMMENDS_${PN} = "udev" be there as well?

Yes. But actually even better would be upgrade of pcsc-lite. New pcsc-lite version has hotplug support (udev/hal) and hotplug should work even without 85-pcscd_ccid.rules. At least "opensc-tool -l" will see the reader immediately. I have a reader, but no supported card. I will be glad if you can confirm that in a real application.

Another question is DEPENDS for libusb or libusb1? With libusb you will not have interrupt transfers. With libusb1 it should be able to use interrupt transfers, but some people reported problems.

Signature · 9 lines
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: [email protected]
Lihovarská 1060/12           tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/
#3 lore raw
In reply to Koen Kooi
Quoted 6 lines · Koen Kooi

recipes/ccid/ccid_1.3.10.bb line 13

Quoted 4 lines
recipes/ccid/ccid_1.3.10.bb new file +3 -0
+DEPENDS = "libusb pcsc-lite"
+RDEPENDS = "pcsc-lite"
 
+EXTRA_OECONF = "--enable-udev"

Shouldn't something like RRECOMMENDS_${PN} = "udev" be there as well?

Yes. But I think that the latest pcsc-lite itself has hotplug support via udev or hal and hotplug should work without 85-pcscd_ccid.rules. At least "opensc-tool -l" see the reader immediately. I have a reader, but no supported card. I will be glad if you can confirm that in a real application.

Another question is DEPENDS. Should it be libusb or libusb1? With libusb you will not have interrupt transfers enabled. With libusb1 it should be able to use interrupt transfers, but some people reported problems in past. In the final 1.0 version it should be fixed.

Signature · 9 lines
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: [email protected]
Lihovarská 1060/12           tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/