[pcsc-lite/f16] Reapply the patch to disable automatic card power down (#737988)

Kalev Lember kalev at fedoraproject.org
Fri Sep 16 13:26:59 UTC 2011


commit 2c48e8d70671726dbc47e74b3b7ee1f9253a53ff
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Fri Sep 16 16:21:36 2011 +0300

    Reapply the patch to disable automatic card power down (#737988)

 pcsc-lite-1.6.6-no_auto_power_down.patch |   24 ++++++++++++++++++++++++
 pcsc-lite.spec                           |    9 ++++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/pcsc-lite-1.6.6-no_auto_power_down.patch b/pcsc-lite-1.6.6-no_auto_power_down.patch
new file mode 100644
index 0000000..324642c
--- /dev/null
+++ b/pcsc-lite-1.6.6-no_auto_power_down.patch
@@ -0,0 +1,24 @@
+diff -up pcsc-lite-1.6.6/src/pcscd.h.in.no_auto_power_down pcsc-lite-1.6.6/src/pcscd.h.in
+--- pcsc-lite-1.6.6/src/pcscd.h.in.no_auto_power_down	2010-12-13 16:29:40.328693266 +0200
++++ pcsc-lite-1.6.6/src/pcscd.h.in	2010-12-13 16:30:04.531954586 +0200
+@@ -63,7 +63,7 @@ enum
+ #define PCSCLITE_STATUS_EVENT_TIMEOUT 10*60*1000 /* 10 minutes */
+ 
+ /* Uncomment the next line if you do NOT want to use auto power off */
+-/* #define DISABLE_ON_DEMAND_POWER_ON */
++#define DISABLE_ON_DEMAND_POWER_ON
+ 
+ /* Uncomment the next line if you do not want the card to be powered on
+  * when inserted */
+diff -up pcsc-lite-1.6.6/src/pcscd.h.no_auto_power_down pcsc-lite-1.6.6/src/pcscd.h
+--- pcsc-lite-1.6.6/src/pcscd.h.no_auto_power_down	2010-12-13 16:29:31.064593222 +0200
++++ pcsc-lite-1.6.6/src/pcscd.h	2010-12-13 16:29:55.337855295 +0200
+@@ -63,7 +63,7 @@ enum
+ #define PCSCLITE_STATUS_EVENT_TIMEOUT 10*60*1000 /* 10 minutes */
+ 
+ /* Uncomment the next line if you do NOT want to use auto power off */
+-/* #define DISABLE_ON_DEMAND_POWER_ON */
++#define DISABLE_ON_DEMAND_POWER_ON
+ 
+ /* Uncomment the next line if you do not want the card to be powered on
+  * when inserted */
diff --git a/pcsc-lite.spec b/pcsc-lite.spec
index 269200f..4e598d4 100644
--- a/pcsc-lite.spec
+++ b/pcsc-lite.spec
@@ -2,7 +2,7 @@
 
 Name:           pcsc-lite
 Version:        1.7.4
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        PC/SC Lite smart card framework and applications
 
 Group:          System Environment/Daemons
@@ -14,6 +14,9 @@ Source0:        http://alioth.debian.org/download.php/%{upstream_build}/%{name}-
 Patch0:         0001-Support-systemd-socket-activation.patch
 Patch1:         0002-Add-disable-autostart-option.patch
 Patch2:         0003-Install-systemd-service-files.patch
+# Disable automatic card power down which seems to be unreliable at this point
+# https://bugzilla.redhat.com/show_bug.cgi?id=737988
+Patch3:         pcsc-lite-1.6.6-no_auto_power_down.patch
 
 BuildRequires:  automake libtool
 BuildRequires:  libudev-devel
@@ -67,6 +70,7 @@ Requires:       %{name}-libs = %{version}-%{release}
 %patch0 -p2 -b .socket_activation
 %patch1 -p2 -b .noautostart
 %patch2 -p2 -b .service_files
+%patch3 -p1 -b .no_auto_power_down
 
 autoreconf -f
 
@@ -170,6 +174,9 @@ fi
 
 
 %changelog
+* Fri Sep 16 2011 Kalev Lember <kalevlember at gmail.com> - 1.7.4-5
+- Reapply the patch to disable automatic card power down (#737988)
+
 * Sun Sep 04 2011 Kalev Lember <kalevlember at gmail.com> - 1.7.4-4
 - Ignore errors from 'systemctl enable' (#734852)
 


More information about the scm-commits mailing list