From 4e1eb58b8040b0ea6d58a69e2bb62b5c687f8839 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Mar 25 2018 21:34:32 +0000 Subject: Work around FTBFS (#1560309). Signed-off-by: Randy Barlow --- diff --git a/0001-Remove-warnings_as_errors-to-work-around-47.patch b/0001-Remove-warnings_as_errors-to-work-around-47.patch new file mode 100644 index 0000000..4211000 --- /dev/null +++ b/0001-Remove-warnings_as_errors-to-work-around-47.patch @@ -0,0 +1,29 @@ +From a1f53b19dc66f1723b1ec60e784bdd920a340434 Mon Sep 17 00:00:00 2001 +From: Randy Barlow +Date: Sun, 25 Mar 2018 17:21:21 -0400 +Subject: [PATCH] Remove warnings_as_errors to work around #47. + +https://github.com/potatosalad/erlang-jose/issues/47 + +Signed-off-by: Randy Barlow +--- + rebar.config | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/rebar.config b/rebar.config +index 829d879..531c4a5 100644 +--- a/rebar.config ++++ b/rebar.config +@@ -2,8 +2,7 @@ + %% vim: ts=4 sw=4 ft=erlang noet + {erl_opts, [ + {platform_define, "(?=^[0-9]+)(?!^17$)", optional_callbacks}, +- debug_info, +- warnings_as_errors ++ debug_info + ]}. + {deps, [ + {base64url, ".*", {git, "git://github.com/dvv/base64url.git", {branch, "master"}}} +-- +2.16.2 + diff --git a/erlang-jose.spec b/erlang-jose.spec index 8a58410..383bc2f 100644 --- a/erlang-jose.spec +++ b/erlang-jose.spec @@ -5,7 +5,7 @@ Name: erlang-%{srcname} Version: 1.8.4 -Release: 2%{?dist} +Release: 3%{?dist} License: MPLv2.0 Summary: JSON Object Signing and Encryption (JOSE) for Erlang and Elixir @@ -13,6 +13,8 @@ URL: https://github.com/potatosalad/erlang-jose Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz # https://github.com/potatosalad/erlang-jose/pull/42 Patch0: 0000-Use-include-instead-of-include_lib-for-jose-in-tests.patch +# Workaround for https://github.com/potatosalad/erlang-jose/issues/47 +Patch1: 0001-Remove-warnings_as_errors-to-work-around-47.patch BuildRequires: erlang-base64url BuildRequires: erlang-rebar @@ -49,6 +51,9 @@ BuildRequires: erlang-triq %changelog +* Sun Mar 25 2018 Randy Barlow - 1.8.4-3 +- Work around FTBFS (#1560309). + * Wed Feb 07 2018 Fedora Release Engineering - 1.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild