From 8d970acc7c55acdeb9ed3f9c8b5ffbfe881e8640 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 26 Aug 2016 17:13:09 +0200 Subject: [PATCH] do not compile with -Werror --- libtasn1-4.9-no-werror.patch | 13 +++++++++++++ libtasn1.spec | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 libtasn1-4.9-no-werror.patch diff --git a/libtasn1-4.9-no-werror.patch b/libtasn1-4.9-no-werror.patch new file mode 100644 index 0000000..b08771c --- /dev/null +++ b/libtasn1-4.9-no-werror.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 7a14e04..066f5fe 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -70,8 +70,6 @@ AC_ARG_ENABLE([gcc-warnings], + ) + + if test "$gl_gcc_warnings" = yes; then +- gl_WARN_ADD([-Werror], [WERROR_CFLAGS]) +- + nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings + nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers + nw="$nw -Wtraditional" # Warns on #elif which we use often diff --git a/libtasn1.spec b/libtasn1.spec index 65ba058..d34f5de 100644 --- a/libtasn1.spec +++ b/libtasn1.spec @@ -10,7 +10,8 @@ URL: http://www.gnu.org/software/libtasn1/ Source0: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz Source1: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz.sig Patch1: libtasn1-3.4-rpath.patch -BuildRequires: bison, pkgconfig +Patch2: libtasn1-4.9-no-werror.patch +BuildRequires: bison, pkgconfig, help2man BuildRequires: autoconf, automake, libtool %ifarch %ix86 x86_64 ppc ppc64 BuildRequires: valgrind @@ -53,6 +54,7 @@ data. %setup -q %patch1 -p1 -b .rpath +%patch2 -p1 -b .no-werror %build autoreconf -v -f --install