Update to 1.6.7

Rebased noautostart patch.
This commit is contained in:
Kalev Lember 2011-02-25 17:40:15 +02:00
parent 3ea230dc78
commit 87ca8061db
4 changed files with 23 additions and 13 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/pcsc-lite-1.6.4.tar.bz2
/pcsc-lite-1.6.6.tar.bz2
/pcsc-lite-1.6.7.tar.bz2

View File

@ -1,13 +1,14 @@
diff -up pcsc-lite-1.6.4/src/winscard_clnt.c.noautostart pcsc-lite-1.6.4/src/winscard_clnt.c
--- pcsc-lite-1.6.4/src/winscard_clnt.c.noautostart 2010-12-12 23:46:43.228293593 +0200
+++ pcsc-lite-1.6.4/src/winscard_clnt.c 2010-12-12 23:52:44.388532774 +0200
@@ -387,79 +387,15 @@ LONG SCardEstablishContext(DWORD dwScope
diff -up pcsc-lite-1.6.7/src/winscard_clnt.c.noautostart pcsc-lite-1.6.7/src/winscard_clnt.c
--- pcsc-lite-1.6.7/src/winscard_clnt.c.noautostart 2011-02-23 00:20:25.000000000 +0200
+++ pcsc-lite-1.6.7/src/winscard_clnt.c 2011-02-25 17:17:32.201085695 +0200
@@ -444,80 +444,16 @@ LONG SCardEstablishContext(DWORD dwScope
LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
{
LONG rv;
- int daemon_launched = FALSE;
- int retries = 0;
API_TRACE_IN("%ld, %p, %p", dwScope, pvReserved1, pvReserved2)
PROFILE_START
-again:
@ -48,7 +49,7 @@ diff -up pcsc-lite-1.6.4/src/winscard_clnt.c.noautostart pcsc-lite-1.6.4/src/win
-
- if (0 == pid)
- {
- int ret, i, max;
- int i, max;
- char *param = getenv("PCSCLITE_PCSCD_ARGS");
-
- /* close all file handles except stdin, stdout and
@ -61,7 +62,7 @@ diff -up pcsc-lite-1.6.4/src/winscard_clnt.c.noautostart pcsc-lite-1.6.4/src/win
- (void)close(i);
-
- /* son process */
- ret = execl(PCSCD_BINARY, "pcscd", "--auto-exit", param,
- execl(PCSCD_BINARY, "pcscd", "--auto-exit", param,
- (char *)NULL);
- Log2(PCSC_LOG_CRITICAL, "exec " PCSCD_BINARY " failed: %s",
- strerror(errno));
@ -81,7 +82,7 @@ diff -up pcsc-lite-1.6.4/src/winscard_clnt.c.noautostart pcsc-lite-1.6.4/src/win
if (rv != SCARD_S_SUCCESS)
goto end;
@@ -468,15 +404,6 @@ launch:
@@ -526,15 +462,6 @@ launch:
pvReserved2, phContext);
(void)SCardUnlockThread();
@ -96,4 +97,4 @@ diff -up pcsc-lite-1.6.4/src/winscard_clnt.c.noautostart pcsc-lite-1.6.4/src/win
-
end:
PROFILE_END(rv)
API_TRACE_OUT("%ld", *phContext)

View File

@ -1,8 +1,8 @@
%global upstream_build 3479
%global upstream_build 3516
Name: pcsc-lite
Version: 1.6.6
Release: 3%{?dist}
Version: 1.6.7
Release: 1%{?dist}
Summary: PC/SC Lite smart card framework and applications
Group: System Environment/Daemons
@ -13,7 +13,7 @@ Source1: pcscd.init
Patch0: %{name}-1.4-docinst.patch
Patch1: %{name}-1.5.5-rpath64.patch
# Disable pcscd on-demand startup (#653903)
Patch2: %{name}-1.6.4-noautostart.patch
Patch2: %{name}-1.6.7-noautostart.patch
# Disable automatic card power down which seems to be unreliable at this point
Patch3: %{name}-1.6.6-no_auto_power_down
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -92,6 +92,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/pcscd
# Create empty directories
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pcsc
# remove setuid bit
chmod 0755 $RPM_BUILD_ROOT%{_sbindir}/pcscd
@ -148,6 +152,10 @@ fi
%changelog
* Fri Feb 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.6.7-1
- Update to 1.6.7
- Rebased noautostart patch
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View File

@ -1 +1 @@
f80d3ecd9569b71d557f283f16295c74 pcsc-lite-1.6.6.tar.bz2
62115ae6dc6fc23da7ffe50986e84eb7 pcsc-lite-1.6.7.tar.bz2