[Bug 463266] Review Request: globalplatform - Access OpenPlatform and GlobalPlatform smart cards library

bugzilla at redhat.com bugzilla at redhat.com
Fri Oct 3 21:54:51 UTC 2008


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=463266





--- Comment #3 from François Kooman <fkooman at tuxed.net>  2008-10-03 17:54:50 EDT ---
Updated SPEC and SRPM:

Spec URL: http://users.tuxed.net/fkooman/rpmbuild/SPECS/globalplatform.spec
SRPM URL:
http://users.tuxed.net/fkooman/rpmbuild/SRPMS/globalplatform-5.0.0-2.fc10.src.rpm

I've addressed all issues (see changelog in spec and spec itself) except the
pkg-config one as I'm not quite sure how to proceed with this.

I was digging through the configure output and checking the config.log file to
see what is going on there. The globalplatform configure script seems to use
pkg-config to detect the location of pcsc-libs:

configure:20726: $PKG_CONFIG --exists --print-errors "libpcsclite >=
1.2.9-beta7"
configure:20729: $? = 0
configure:20781: result: yes
configure:20815: checking winscard.h usability
configure:20832: gcc -c -g -O2 -pthread -I/usr/include/PCSC    conftest.c >&5
configure:20838: $? = 0
configure:20852: result: yes
configure:20856: checking winscard.h presence
configure:20871: gcc -E  conftest.c
conftest.c:27:22: error: winscard.h: No such file or directory
configure:20877: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GlobalPlatform"
| #define PACKAGE_TARNAME "globalplatform"
| #define PACKAGE_VERSION "5.0.0"
| #define PACKAGE_STRING "GlobalPlatform 5.0.0"
| #define PACKAGE_BUGREPORT "k_o_ at users.sourceforge.net"
| #define PACKAGE "globalplatform"
| #define VERSION "5.0.0"
| #define STDC_HEADERS 1
    <more>
| #define HAVE_MEMCPY 1
| #define HAVE_VSYSLOG 1
| /* end confdefs.h.  */
| #include <winscard.h>
configure:20891: result: no
configure:20897: WARNING: winscard.h: accepted by the compiler, rejected by the
preprocessor!
configure:20899: WARNING: winscard.h: proceeding with the compiler's result
configure:20924: checking for winscard.h
configure:20931: result: yes
configure:20958: checking for SCardEstablishContext in -lpcsclite
configure:20993: gcc -o conftest -g -O2   -lpcsclite   conftest.c -lpcsclite  
>&5
configure:20999: $? = 0
configure:21017: result: yes

So it already seems that globalplatform needs pkgconfig as a dependency as
otherwise it would never find the the winscard.h... Because it succeeds somehow
in finding it can the rest of the configure stuff be ignored? It seems a bit
"dirty"...

GPshell (which used globalplatform) has the same pkg-config stuff for
libpcsclite as globalplatform so that solves the problem for GPshell in that
way...

So, I'm not really sure what the best way to go would be...

Thanks for your time and review!

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the package-review mailing list