- fix tests build, rel 6 master auto/th/opensc-0.19.0-6
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 15 Oct 2021 20:39:38 +0000 (22:39 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 15 Oct 2021 20:39:38 +0000 (22:39 +0200)
build.patch
opensc.spec

index 0549b0da1994b53310a9bbac148470c8dee3ef0b..048c2d885dc8b856aaeb88a6884c28f66c46404d 100644 (file)
@@ -86,7 +86,7 @@
 +      size_t  num_keygen_mechs;
 +} token_info_t;
 +
-+token_info_t token;
++extern token_info_t token;
 +
 +#endif /* P11TEST_COMMON_H */
 +
@@ -124,3 +124,14 @@ Index: git/src/pkcs15init/pkcs15-oberthur.c
        if (sc_profile_get_file(profile, COSM_TITLE"-token-info", &file)) {
                rv = SC_ERROR_INCONSISTENT_PROFILE;
                SC_TEST_GOTO_ERR(ctx, SC_LOG_DEBUG_NORMAL, rv, "Cannot find "COSM_TITLE"-token-info");
+--- opensc-0.19.0/src/tests/p11test/p11test.c~ 2018-09-13 13:52:42.000000000 +0200
++++ opensc-0.19.0/src/tests/p11test/p11test.c  2021-10-15 22:37:12.303953281 +0200
+@@ -33,6 +33,8 @@
+ #define DEFAULT_P11LIB        "../../pkcs11/.libs/opensc-pkcs11.so"
++token_info_t token;
++
+ void display_usage() {
+       fprintf(stdout,
+               " Usage:\n"
index 260fab1990a09744b182555acd793265bdae14f4..ecff28d85d9c3ace3819486a0794747399a95577 100644 (file)
@@ -7,7 +7,7 @@ Summary:        OpenSC library - for accessing SmartCard devices using PC/SC Lite
 Summary(pl.UTF-8):     Biblioteka OpenSC - do korzystania z kart procesorowych przy użyciu PC/SC Lite
 Name:          opensc
 Version:       0.19.0
-Release:       5
+Release:       6
 License:       LGPL v2.1+
 Group:         Applications
 #Source0Download: https://github.com/OpenSC/OpenSC/releases
@@ -18,6 +18,7 @@ Patch1:               no-Werror.patch
 URL:           https://github.com/OpenSC/OpenSC/wiki
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake >= 1:1.10
+BuildRequires: cmocka-devel
 BuildRequires: docbook-style-xsl
 BuildRequires: libltdl-devel
 BuildRequires: libtool >= 1:1.4.2-9
This page took 0.160176 seconds and 4 git commands to generate.