From f203fc1321bebc41290c822d8b4b25b59e8a6024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 15 Feb 2021 14:41:19 +0000 Subject: [PATCH] Disable -Wcast-align which causes problems with gtk-doc scanner on arm7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- libvirt-glib-4.0.0-cast-align.patch | 11 +++++++++++ libvirt-glib.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 libvirt-glib-4.0.0-cast-align.patch diff --git a/libvirt-glib-4.0.0-cast-align.patch b/libvirt-glib-4.0.0-cast-align.patch new file mode 100644 index 0000000..d3f7e44 --- /dev/null +++ b/libvirt-glib-4.0.0-cast-align.patch @@ -0,0 +1,11 @@ +diff -rup libvirt-glib-4.0.0.orig/meson.build libvirt-glib-4.0.0.new/meson.build +--- libvirt-glib-4.0.0.orig/meson.build 2021-02-15 12:23:04.609036200 +0000 ++++ libvirt-glib-4.0.0.new/meson.build 2021-02-15 14:39:27.150071607 +0000 +@@ -175,7 +175,6 @@ cc_flags += [ + '-Wbuiltin-declaration-mismatch', + '-Wbuiltin-macro-redefined', + '-Wcannot-profile', +- '-Wcast-align', + '-Wcast-align=strict', + '-Wcast-function-type', + '-Wchar-subscripts', diff --git a/libvirt-glib.spec b/libvirt-glib.spec index f9115e2..7ab4602 100644 --- a/libvirt-glib.spec +++ b/libvirt-glib.spec @@ -7,6 +7,7 @@ Summary: libvirt glib integration for events License: LGPLv2+ URL: https://libvirt.org/ Source0: https://libvirt.org/sources/glib/%{name}-%{version}.tar.xz +Patch1: %{name}-%{version}-cast-align.patch BuildRequires: meson BuildRequires: glib2-devel @@ -64,6 +65,7 @@ managing virtualization host objects %prep %setup -q +%patch1 -p1 %build %meson -Drpath=disabled