[email protected]
[Top] [All Lists]

Bug#355281: marked as forwarded (patch to support Debian libccid)

Subject: Bug#355281: marked as forwarded patch to support Debian libccid
From: Debian Bug Tracking System
Date: Thu, 04 May 2006 02:33:13 -0700
Your message dated Thu, 04 May 2006 11:28:04 +0200
with message-id <[email protected]>
has caused the Debian Bug report #355281,
regarding patch to support Debian libccid
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Subject: libchipcard and libccid with pcsclite logging
From: Thomas Viehmann
Date: Thu, 04 May 2006 11:28:04 +0200
Hi Martin,

do you think that providing compatibility functions debug_msg() and
log_xxd() is an option for you? I've got this message and patch from the
Debian and upstream maintainer of libccid. (Apologies if you are already

Kind regards


P.S.: This is in English for the CC: to the Debian BTS. If you want
followups to be recorded, it would be nice of you to keep this CC.

-------- Original Message --------
Date: Sun, 23 Apr 2006 18:26:54 +0200
From: Ludovic Rousseau <[email protected]>


As the Debian maintainer of libccid I do not plan to provide two
different binaries of libccid.

As the upstream author of libccid I modified it to make its use as easy
as possible in libchipcard2. The libccid driver uses two functions from
pcscd: debug_msg() and log_xxd() to log through pcscd. To use the same
binary in libchipcard2 the easiest solution is for libchipcard2 to also
provide these two functions. A patch is included below.

The file src/drivers/ccid/driverccid.c is patched to provide the two
needed functions. They just do nothing. You can add some code to
printf() the log message if you want. You can even reuse the file
ccid/src/debug.c from the libccid driver if you want (licence is LGPL).

The file src/drivers/ccid/Makefile.am is patched so that the two
functions are available to external modules. If -export-dynamic is not
used the symbols are not visible from libccid.

The file src/drivers/ccid/Makefile.in is patched so that you do not have
to regenerate the file from Makefile.am. This patch is only needed to
rebuild the Debian package. Upstream only has to patch Makefile.am.

I tested the patch. I suggest to propose it upstream.


diff -ru libchipcard2-
--- libchipcard2-
2005-12-09 01:52:34.000000000 +0100
+++ libchipcard2-
2006-04-18 14:38:42.000000000 +0200
@@ -1032,4 +1032,12 @@
   return errbuf;

+void debug_msg(const int priority, const char *fmt, ...)
+void log_xxd(const int priority, const char *msg, const unsigned char
+       const int size)

diff -ru libchipcard2-
--- libchipcard2-
2005-12-07 16:41:36.000000000 +0100
+++ libchipcard2-
2006-04-18 15:19:13.000000000 +0200
@@ -19,7 +19,7 @@

 ccid_LDADD=../../lib/chipcard2-server/driver/libchipcard2d.la \
   @[email protected] @[email protected] @[email protected]
[email protected]@
[email protected]@ -export-dynamic


diff -ru libchipcard2-
--- libchipcard2-
2006-01-26 14:45:31.000000000 +0100
+++ libchipcard2-
2006-04-18 15:25:59.000000000 +0200
@@ -277,7 +277,7 @@

 ccid_LDADD = ../../lib/chipcard2-server/driver/libchipcard2d.la \
-  @[email protected] @[email protected] @[email protected]
+  @[email protected] @[email protected] @[email protected] -export-dynamic

 ccid_LDFLAGS = @[email protected]

 Dr Ludovic Rousseau                        [email protected]
 -- Normaliser Unix c'est comme pasteuriser le camembert, L.R. --

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#355281: marked as forwarded (patch to support Debian libccid), Debian Bug Tracking System <=