From 2c48e8d70671726dbc47e74b3b7ee1f9253a53ff Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 16 Sep 2011 16:21:36 +0300 Subject: [PATCH] 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 deletion(-) create mode 100644 pcsc-lite-1.6.6-no_auto_power_down.patch 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 - 1.7.4-5 +- Reapply the patch to disable automatic card power down (#737988) + * Sun Sep 04 2011 Kalev Lember - 1.7.4-4 - Ignore errors from 'systemctl enable' (#734852)