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