[packages/opensc] - rel 3; fix build
arekm
arekm at pld-linux.org
Thu Oct 17 21:32:36 CEST 2019
commit 075acfab6823338694f654f0000c14a406275c87
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 17 21:32:29 2019 +0200
- rel 3; fix build
build.patch | 34 ++++++++++++++++++++++++++++++++++
opensc.spec | 2 +-
2 files changed, 35 insertions(+), 1 deletion(-)
---
diff --git a/opensc.spec b/opensc.spec
index b0030a0..d5db61c 100644
--- a/opensc.spec
+++ b/opensc.spec
@@ -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: 2
+Release: 3
License: LGPL v2.1+
Group: Applications
#Source0Download: https://github.com/OpenSC/OpenSC/releases
diff --git a/build.patch b/build.patch
index d7fbaf4..0549b0d 100644
--- a/build.patch
+++ b/build.patch
@@ -90,3 +90,37 @@
+
+#endif /* P11TEST_COMMON_H */
+
+From c012f46965b3fe24e31367796e52c2d0b14ca5d9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Mon, 17 Dec 2018 18:44:23 -0800
+Subject: [PATCH] Remove redundant logging
+
+Same information is printed a few line below in same function, the only
+difference is that there it takes care of case when label is NULL pointer
+unlike this line
+
+secondly, every function call to cosm_write_tokeninfo() in this file
+passes label=NULL, and then it tries to print a null pointer
+
+Fixes errors like
+src/libopensc/log.h:48:47: error: '%s' directive argument is null
+[-Werror=format-overflow=]
+
+Upstream-Status: Submitted [https://github.com/OpenSC/OpenSC/pull/1557]
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ src/pkcs15init/pkcs15-oberthur.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+Index: git/src/pkcs15init/pkcs15-oberthur.c
+===================================================================
+--- git.orig/src/pkcs15init/pkcs15-oberthur.c
++++ git/src/pkcs15init/pkcs15-oberthur.c
+@@ -70,7 +70,6 @@ cosm_write_tokeninfo (struct sc_pkcs15_c
+ ctx = p15card->card->ctx;
+
+ SC_FUNC_CALLED(ctx, SC_LOG_DEBUG_VERBOSE);
+- sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "cosm_write_tokeninfo() label '%s'; flags 0x%X", label, flags);
+ 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");
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opensc.git/commitdiff/075acfab6823338694f654f0000c14a406275c87
More information about the pld-cvs-commit
mailing list