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

This commit is contained in:
Kalev Lember 2011-09-16 16:21:36 +03:00
parent fd30a60e01
commit 2c48e8d706
2 changed files with 32 additions and 1 deletions

View File

@ -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 */

View File

@ -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@gmail.com> - 1.7.4-5
- Reapply the patch to disable automatic card power down (#737988)
* Sun Sep 04 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-4
- Ignore errors from 'systemctl enable' (#734852)