Skip to contentSkip to conversation

package/ccid: bump to version 1.8.4

PATCH New Yegor Yefremov 1 participant 1 message Oct 26

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ccid: bump to version 1.8.4

Upstream removed the older releases from https://ccid.apdu.fr/files/,
only keeping the 1.8.x ones, so downloading ccid 1.5.2 fails:

ERROR 404: Not Found.

The GitHub releases don't provide tarballs, so bump to the latest version, 1.8.4.

Since 1.6.0, ccid uses meson instead of autotools:
- zlib is now a mandatory dependency, and flex is used to generate the tokenparser;
- the driver directory is taken from pcsc-lite's usbdropdir pkg-config variable, which is /usr/lib/pcsc/drivers, so --enable-usbdropdir is no longer needed;
- the udev rules are installed by meson (in /lib/udev/rules.d) when -Dudev-rules=true, instead of being copied to /etc/udev/rules.d by a hook.

The tarball is now xz-compressed. COPYING changed only in formatting and the FSF address.

Release notes:
https://ccid.apdu.fr/

This is not caused by a Buildroot change: upstream removed the files. All maintained branches use ccid 1.5.2 and are therefore affected as well when the backup site is not used.

Fixes:
https://autobuild.buildroot.org/results/f12f2765606f8dff01e64a32fd38baaf65d6115c

Assisted-by Claude:claude-opus-5-5
---
 package/ccid/Config.in |  1 +
 package/ccid/ccid.hash |  6 +++---
 package/ccid/ccid.mk   | 20 ++++++++------------
 3 files changed, 12 insertions(+), 15 deletions(-)
package/ccid/Config.in +1 -0
index c12733375b..5c3d754d46 100644
@@ -6,6 +6,7 @@ config BR2_PACKAGE_CCID
 	depends on !BR2_STATIC_LIBS # pcsc-lite
 	select BR2_PACKAGE_PCSC_LITE
 	select BR2_PACKAGE_LIBUSB
+	select BR2_PACKAGE_ZLIB
 	help
 	  PC/SC driver for USB CCID smart card readers
 
package/ccid/ccid.hash +3 -3
index fcd8d10ed9..97383f7f26 100644
@@ -1,3 +1,3 @@
-# Locally computed
-sha256  13934487e6f8b48f699a16d367cc7a1af7a3ca874de721ac6e9633beb86e7219  ccid-1.5.2.tar.bz2
-sha256  a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861  COPYING
+# Locally computed after checking pgp signature
+sha256  4ff98151a7feb828a711e2f9d68c6b6065a97c597a81c2cbbd11d7f7edcfe743  ccid-1.8.4.tar.xz
+sha256  20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95  COPYING
package/ccid/ccid.mk +8 -12
index 0510b4c9ad..3bb4c19a7b 100644
@@ -4,23 +4,19 @@
 #
 ################################################################################
 
-CCID_VERSION = 1.5.2
-CCID_SOURCE = ccid-$(CCID_VERSION).tar.bz2
+CCID_VERSION = 1.8.4
+CCID_SOURCE = ccid-$(CCID_VERSION).tar.xz
 CCID_SITE = https://ccid.apdu.fr/files
 CCID_LICENSE = LGPL-2.1+
 CCID_LICENSE_FILES = COPYING
 CCID_INSTALL_STAGING = YES
-CCID_DEPENDENCIES = pcsc-lite host-pkgconf libusb
-CCID_CONF_OPTS = --enable-usbdropdir=/usr/lib/pcsc/drivers
+CCID_DEPENDENCIES = pcsc-lite host-flex host-pkgconf libusb zlib
 
 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
-define CCID_INSTALL_UDEV_RULES
-	if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
-		cp $(@D)/src/92_pcscd_ccid.rules $(TARGET_DIR)/etc/udev/rules.d/ ; \
-	fi;
-endef
-
-CCID_POST_INSTALL_TARGET_HOOKS += CCID_INSTALL_UDEV_RULES
+CCID_DEPENDENCIES += udev
+CCID_CONF_OPTS += -Dudev-rules=true
+else
+CCID_CONF_OPTS += -Dudev-rules=false
 endif
 
-$(eval $(autotools-package))
+$(eval $(meson-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot