ports/147288: comms/gnokii does not build
Guido Falsi
mad at madpilot.net
Fri Jun 4 13:40:04 UTC 2010
The following reply was made to PR ports/147288; it has been noted by GNATS.
From: Guido Falsi <mad at madpilot.net>
To: bug-followup at FreeBSD.org, anatoly.borodin at gmail.com
Cc:
Subject: Re: ports/147288: comms/gnokii does not build
Date: Fri, 04 Jun 2010 15:33:01 +0200
This is a multi-part message in MIME format.
--------------070108050704010509070609
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Hi!
The SCARD_W_INSERTED_CARD define was simply removed with no substitute
from the pcsc-lite defines with the update to 1.6.0. [1] [2]
I'm attaching a patch which fixes build by not checking for such a
return code from pcsc(which reasonably should not return it back anymore
not having defined it).
This quick fix should be tested by someone using the pcsc gnokii
functionality which I'm not able to test.
Also already sent information and simple patch upstream.
Added file:
gnokii/files/patch-common-phones-pcsc.c
[1]
http://svn.debian.org/viewsvn/pcsclite/trunk/PCSC/src/PCSC/pcsclite.h.in?view=log
[2]
http://svn.debian.org/viewsvn/pcsclite/trunk/PCSC/src/PCSC/pcsclite.h.in?r1=4544&r2=4574
--
Guido Falsi <mad at madpilot.net>
--------------070108050704010509070609
Content-Type: text/plain;
name="gnokii.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="gnokii.diff"
diff -ruN gnokii.old/files/patch-common-phones-pcsc.c gnokii/files/patch-common-phones-pcsc.c
--- gnokii.old/files/patch-common-phones-pcsc.c 1970-01-01 01:00:00.000000000 +0100
+++ gnokii/files/patch-common-phones-pcsc.c 2010-06-04 15:16:29.846724231 +0200
@@ -0,0 +1,10 @@
+--- common/phones/pcsc.c.orig 2010-06-04 15:08:13.000466080 +0200
++++ common/phones/pcsc.c 2010-06-04 15:15:44.926057193 +0200
+@@ -199,7 +199,6 @@
+ case SCARD_W_UNPOWERED_CARD:
+ case SCARD_W_RESET_CARD:
+ case SCARD_W_REMOVED_CARD:
+- case SCARD_W_INSERTED_CARD:
+ return GN_ERR_SIMPROBLEM;
+ case SCARD_E_NO_MEMORY:
+ return GN_ERR_MEMORYFULL;
--------------070108050704010509070609--
More information about the freebsd-ports-bugs
mailing list