diff --git a/0001-fix-strict-aliasing.patch b/0001-fix-strict-aliasing.patch new file mode 100644 index 0000000..7bce640 --- /dev/null +++ b/0001-fix-strict-aliasing.patch @@ -0,0 +1,24 @@ +From 25c6247b43c5954da43c9b2f27e9a5e6bb1d651a Mon Sep 17 00:00:00 2001 +From: Tomas Krizek +Date: Thu, 2 Apr 2020 14:52:41 +0200 +Subject: [PATCH] fix strict aliasing + +--- + meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/meson.build b/meson.build +index a839eb23..8c584aaf 100644 +--- a/meson.build ++++ b/meson.build +@@ -111,6 +111,7 @@ add_project_arguments( + '-Wtype-limits', + '-Wshadow', + '-fvisibility=hidden', ++ '-fno-strict-aliasing', + language: 'c', + ) + +-- +2.26.0 + diff --git a/knot-resolver.spec b/knot-resolver.spec index 8e6a6c7..f08e593 100644 --- a/knot-resolver.spec +++ b/knot-resolver.spec @@ -8,12 +8,13 @@ Name: knot-resolver Version: %{VERSION} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Caching full DNS Resolver License: GPLv3 URL: https://www.knot-resolver.cz/ Source0: https://secure.nic.cz/files/%{name}/%{name}-%{version}.tar.xz +Patch0: 0001-fix-strict-aliasing.patch # LuaJIT only on these arches %if 0%{?rhel} @@ -144,6 +145,7 @@ gpg2 --import %{SOURCE100} %{SOURCE101} %{SOURCE102} gpg2 --verify %{SOURCE1} %{SOURCE0} %endif %setup -q -n %{name}-%{version} +%patch0 -p1 %build CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" meson build_rpm \ @@ -335,6 +337,9 @@ fi %endif %changelog +* Thu Apr 02 2020 Tomas Krizek - 5.0.1-2 +- add patch to fix strict aliasing (!971) until next release + * Wed Feb 05 2020 Tomas Krizek - 5.0.1-1 - update to upstream version 5.0.1 - ensure kres-cache-gc.service is restarted on upgrade