pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/pcsc-lite pcsc-lite: updated to 1.9.5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ea57416264b6
branches:  trunk
changeset: 371465:ea57416264b6
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jan 10 16:11:52 2022 +0000

description:
pcsc-lite: updated to 1.9.5

1.9.5: Ludovic Rousseau
4 December 2021
- pcscd: autoexit even if no client connects
- Fix variable substitution in systemd units
- fix potential race conditions with powerState handling
- Add and use tag TAG_IFD_DEVICE_REMOVED
- UnitaryTests: port code to Python 3

1.9.4: Ludovic Rousseau
1 October 2021
- fix a memory leak when libusb is used for hotplug (i.e. non-Linux
  systems)

1.9.3: Ludovic Rousseau
6 August 2021
- fix a stupid regression with systemd introduced in the previous version


1.9.2: Ludovic Rousseau
3 August 2021
- improve NetBSD support
- pcsc-spy: version 1.1
  . add option -t|--thread
  . x10 speed increase
  . correctly exit at end-of-file
  . remove, now useless, support of macOS
- systemd:
  . use /etc/default/pcscd as EnvironmentFile
  . use $PCSCD_ARGS to specify more arguments
- SetProtocol: Handle IFD_NOT_SUPPORTED from the driver
- hotplug_libudev.c: sanitize interface name
- pcsc_demo: change licence from GPLv3 to BSD
- use Python 3 for Python scripts (psc-spy, UnitaryTests)
- Some other minor improvements

diffstat:

 security/pcsc-lite/Makefile                        |   4 +-
 security/pcsc-lite/distinfo                        |  14 ++++-----
 security/pcsc-lite/patches/patch-configure         |  30 ++++-----------------
 security/pcsc-lite/patches/patch-src_Makefile.in   |  14 +++++-----
 security/pcsc-lite/patches/patch-src_PCSC_reader.h |  25 ------------------
 security/pcsc-lite/patches/patch-src_utils.c       |  20 --------------
 6 files changed, 21 insertions(+), 86 deletions(-)

diffs (169 lines):

diff -r 06e49dcaa4cb -r ea57416264b6 security/pcsc-lite/Makefile
--- a/security/pcsc-lite/Makefile       Mon Jan 10 15:49:20 2022 +0000
+++ b/security/pcsc-lite/Makefile       Mon Jan 10 16:11:52 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2021/02/16 19:03:45 gdt Exp $
+# $NetBSD: Makefile,v 1.35 2022/01/10 16:11:52 adam Exp $
 
-DISTNAME=      pcsc-lite-1.9.1
+DISTNAME=      pcsc-lite-1.9.5
 CATEGORIES=    security
 MASTER_SITES=  https://pcsclite.apdu.fr/files/
 EXTRACT_SUFX=  .tar.bz2
diff -r 06e49dcaa4cb -r ea57416264b6 security/pcsc-lite/distinfo
--- a/security/pcsc-lite/distinfo       Mon Jan 10 15:49:20 2022 +0000
+++ b/security/pcsc-lite/distinfo       Mon Jan 10 16:11:52 2022 +0000
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.25 2021/10/26 11:17:36 nia Exp $
+$NetBSD: distinfo,v 1.26 2022/01/10 16:11:52 adam Exp $
 
-BLAKE2s (pcsc-lite-1.9.1.tar.bz2) = ca329fed008462def39bb1838f38bd41d8fef3e0ac379e42a51db03286fe9796
-SHA512 (pcsc-lite-1.9.1.tar.bz2) = 4f59ea6acb5b258092018f10609987e12b8e601049e6ffed4b4b82abd3c4b35c38a60e1cda28fdc884202e694d1bc3a3b5d930c5b1e9c1b9c309bd17ef463e63
-Size (pcsc-lite-1.9.1.tar.bz2) = 763525 bytes
-SHA1 (patch-configure) = d421ffddf787a01c8655c34dda0e4708978c1c6c
-SHA1 (patch-src_Makefile.in) = 077837434e4cf503b9556e45102603c408ccb0cb
-SHA1 (patch-src_PCSC_reader.h) = 8ea2b7be9b3bae56cdae64b950373c8eeda2813a
+BLAKE2s (pcsc-lite-1.9.5.tar.bz2) = 039e209dc9162b633e9dc00a1f2eb6a32b765002d3aafd082391a6b37985d30e
+SHA512 (pcsc-lite-1.9.5.tar.bz2) = 0315c2cf97cc9da0f5faf115f24e523b5a1746cea250a4fe6c4d5d7b2fbfc7c3ea0f068611072ca84866c672eb679e8067101437573148ccd1ac5ad26b18cd78
+Size (pcsc-lite-1.9.5.tar.bz2) = 775736 bytes
+SHA1 (patch-configure) = ff31450a3d94bd0d85ca8d94630583e5095124db
+SHA1 (patch-src_Makefile.in) = 796f51958a5a1d68f90cae045340a107220cfd18
 SHA1 (patch-src_libpcsclite.pc.in) = ba1c8ed98ce81f1fc40ecc8af1b44d0cff8537df
-SHA1 (patch-src_utils.c) = 7bfca2b5a097c6a3d4b7736933b670d1d0d63f76
diff -r 06e49dcaa4cb -r ea57416264b6 security/pcsc-lite/patches/patch-configure
--- a/security/pcsc-lite/patches/patch-configure        Mon Jan 10 15:49:20 2022 +0000
+++ b/security/pcsc-lite/patches/patch-configure        Mon Jan 10 16:11:52 2022 +0000
@@ -1,34 +1,16 @@
-$NetBSD: patch-configure,v 1.5 2020/06/20 19:03:37 adam Exp $
+$NetBSD: patch-configure,v 1.6 2022/01/10 16:11:52 adam Exp $
 
 Make sure libpcsclite.so is not linked against -lphtread on NetBSD, as
 loading libpthread.so through dlopen() is now forbidden
 
---- configure.orig     2014-09-24 13:04:46.000000000 +0000
+--- configure.orig     2021-12-04 12:29:53.000000000 +0000
 +++ configure
-@@ -680,6 +680,8 @@ LIBTOOL
- PTHREAD_CFLAGS
+@@ -711,6 +711,8 @@ PTHREAD_CFLAGS
  PTHREAD_LIBS
+ PTHREAD_CXX
  PTHREAD_CC
 +LIBPCSC_PTHREAD_CFLAGS
 +LIBPCSC_PTHREAD_LIBS
  ax_pthread_config
- ac_ct_AR
- AR
-@@ -13732,7 +13734,7 @@ fi
- 
- 
- # disable libudev check is USB is not used
--if test "$use_usb" == "no"; then
-+if test "$use_usb" = "no"; then
-       use_libudev="no"
- fi
- 
-@@ -13889,7 +13891,7 @@ fi
- 
- 
- # disable libusb check is USB is not used
--if test "$use_usb" == "no"; then
-+if test "$use_usb" = "no"; then
-       use_libusb="no"
- fi
- 
+ EGREP
+ GREP
diff -r 06e49dcaa4cb -r ea57416264b6 security/pcsc-lite/patches/patch-src_Makefile.in
--- a/security/pcsc-lite/patches/patch-src_Makefile.in  Mon Jan 10 15:49:20 2022 +0000
+++ b/security/pcsc-lite/patches/patch-src_Makefile.in  Mon Jan 10 16:11:52 2022 +0000
@@ -1,29 +1,29 @@
-$NetBSD: patch-src_Makefile.in,v 1.7 2020/06/20 19:03:37 adam Exp $
+$NetBSD: patch-src_Makefile.in,v 1.8 2022/01/10 16:11:52 adam Exp $
 
 Make sure libpcsclite.so is not linked against -lpthread on NetBSD, as
 loading libpthread.so through dlopen() is now forbidden.
 Disable installation of pcsc-spy
 
---- src/Makefile.in.orig       2020-06-14 13:43:23.000000000 +0000
+--- src/Makefile.in.orig       2021-12-04 12:29:54.000000000 +0000
 +++ src/Makefile.in
-@@ -436,6 +436,8 @@ POLKIT_LIBS = @POLKIT_LIBS@
- PTHREAD_CC = @PTHREAD_CC@
+@@ -435,6 +435,8 @@ PTHREAD_CC = @PTHREAD_CC@
  PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+ PTHREAD_CXX = @PTHREAD_CXX@
  PTHREAD_LIBS = @PTHREAD_LIBS@
 +LIBPCSC_PTHREAD_CFLAGS = @LIBPCSC_PTHREAD_CFLAGS@
 +LIBPCSC_PTHREAD_LIBS = @LIBPCSC_PTHREAD_LIBS@
  RANLIB = @RANLIB@
  SED = @SED@
  SET_MAKE = @SET_MAKE@
-@@ -507,7 +509,6 @@ top_builddir = @top_builddir@
+@@ -503,7 +505,6 @@ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
  usbdropdir = @usbdropdir@
- usbdropdir_exp = @usbdropdir_exp@
 -SUBDIRS = spy
  AM_CPPFLAGS = -I$(top_srcdir)/src/PCSC -I$(top_builddir)/src/PCSC \
        $(SYMBOL_VISIBILITY)
  
-@@ -529,8 +530,8 @@ libpcsclite_la_SOURCES = \
+@@ -524,8 +525,8 @@ libpcsclite_la_SOURCES = \
        winscard_msg.c
  
  libpcsclite_la_LDFLAGS = -version-info 1:0:0
diff -r 06e49dcaa4cb -r ea57416264b6 security/pcsc-lite/patches/patch-src_PCSC_reader.h
--- a/security/pcsc-lite/patches/patch-src_PCSC_reader.h        Mon Jan 10 15:49:20 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-src_PCSC_reader.h,v 1.2 2014/10/01 16:27:03 gdt Exp $
-
-Add NetBSD to apple/sun conditional.
-This should be sent upstream.
-
---- src/PCSC/reader.h.orig     2014-02-14 16:15:44.000000000 +0000
-+++ src/PCSC/reader.h
-@@ -155,7 +155,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE PO
- 
- /* Set structure elements aligment on bytes
-  * http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html */
--#if defined(__APPLE__) | defined(sun)
-+#if defined(__APPLE__) | defined(sun) | defined(__NetBSD__)
- #pragma pack(1)
- #else
- #pragma pack(push, 1)
-@@ -252,7 +252,7 @@ typedef struct {
- } PIN_PROPERTIES_STRUCTURE;
- 
- /* restore default structure elements alignment */
--#if defined(__APPLE__) | defined(sun)
-+#if defined(__APPLE__) | defined(sun) | defined(__NetBSD__)
- #pragma pack()
- #else
- #pragma pack(pop)
diff -r 06e49dcaa4cb -r ea57416264b6 security/pcsc-lite/patches/patch-src_utils.c
--- a/security/pcsc-lite/patches/patch-src_utils.c      Mon Jan 10 15:49:20 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-src_utils.c,v 1.3 2020/06/20 19:03:37 adam Exp $
-
-Make sure libpcsclite.so is not linked against -lpthread on NetBSD, as
-loading libpthread.so through dlopen() is now forbidden.
-
---- src/utils.c.orig   2014-08-08 16:57:27.000000000 +0000
-+++ src/utils.c
-@@ -151,6 +151,7 @@ long int time_sub(struct timeval *a, str
-       return r.tv_sec * 1000000 + r.tv_usec;
- } /* time_sub */
- 
-+#ifndef LIBPCSCLITE
- int ThreadCreate(pthread_t * pthThread, int attributes,
-       PCSCLITE_THREAD_FUNCTION(pvFunction), LPVOID pvArg)
- {
-@@ -186,3 +187,4 @@ error:
-       pthread_attr_destroy(&attr);
-       return ret;
- }
-+#endif /*  LIBPCSCLITE */



Home | Main Index | Thread Index | Old Index