[packages/opensc] - disable Werror due to usage of deprecated openssl APIs - rel 4
baggins
baggins at pld-linux.org
Mon Oct 4 22:33:49 CEST 2021
commit 44f3983997eb634fa294cff4fa1fe8734046abaa
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Oct 4 22:33:12 2021 +0200
- disable Werror due to usage of deprecated openssl APIs
- rel 4
no-Werror.patch | 30 ++++++++++++++++++++++++++++++
opensc.spec | 4 +++-
2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/opensc.spec b/opensc.spec
index d5db61c..35def41 100644
--- a/opensc.spec
+++ b/opensc.spec
@@ -7,13 +7,14 @@ 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: 3
+Release: 4
License: LGPL v2.1+
Group: Applications
#Source0Download: https://github.com/OpenSC/OpenSC/releases
Source0: https://github.com/OpenSC/OpenSC/releases/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 40734b2343cf83c62c4c403f8a37475e
Patch0: build.patch
+Patch1: no-Werror.patch
URL: https://github.com/OpenSC/OpenSC/wiki
BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1:1.10
@@ -103,6 +104,7 @@ Bashowe uzupełnianie parametrów poleceń OpenSC.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..68d5db7
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,30 @@
+--- opensc-0.19.0/configure.ac~ 2018-09-13 13:52:42.000000000 +0200
++++ opensc-0.19.0/configure.ac 2021-10-04 22:28:33.902587661 +0200
+@@ -130,7 +130,6 @@
+ ;;
+ esac
+
+-AX_CHECK_COMPILE_FLAG(-Wunknown-warning-option, [have_unknown_warning_option="yes"], [have_unknown_warning_option="no"], [-Werror])
+ AM_CONDITIONAL([HAVE_UNKNOWN_WARNING_OPTION], [test "${have_unknown_warning_option}" = "yes"])
+
+ AC_ARG_ENABLE(
+@@ -1042,7 +1042,7 @@
+ CFLAGS="${CFLAGS} -pedantic"
+ fi
+ if test "${enable_strict}" = "yes"; then
+- CFLAGS="${CFLAGS} -Wall -Wextra -Wno-unused-parameter -Werror"
++ CFLAGS="${CFLAGS} -Wall -Wextra -Wno-unused-parameter"
+ fi
+
+ AC_CONFIG_FILES([
+--- opensc-0.19.0/m4/ax_pthread.m4~ 2018-09-13 13:52:42.000000000 +0200
++++ opensc-0.19.0/m4/ax_pthread.m4 2021-10-04 22:29:18.960949785 +0200
+@@ -299,7 +299,7 @@
+ ax_pthread_save_CFLAGS="$CFLAGS"
+ for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
+ AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
+- CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
++ CFLAGS="-Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
+ ac_link="$ax_pthread_save_ac_link"
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
+ [ac_link="$ax_pthread_2step_ac_link"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opensc.git/commitdiff/44f3983997eb634fa294cff4fa1fe8734046abaa
More information about the pld-cvs-commit
mailing list