diff --git a/0002-Suppress-cast-align-error.patch b/0002-Suppress-cast-align-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..fda2f8ed80081a48e2885c9d4ae04281e15b1e04 --- /dev/null +++ b/0002-Suppress-cast-align-error.patch @@ -0,0 +1,28 @@ +From bae26c0033d649722b5a3fc48df3adf2172490f1 Mon Sep 17 00:00:00 2001 +From: Sprite +Date: Tue, 6 Sep 2022 18:17:35 +0800 +Subject: [PATCH] Suppress error 'cast increases required alignment of target + type' + +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index d5c3627..43139af 100644 +--- a/meson.build ++++ b/meson.build +@@ -61,9 +61,9 @@ govirt_global_cflags = ['-std=c99', + '-Wextra', + '-Werror', + '-Wcast-align', ++ '-Wno-error=cast-align', + '-Wmissing-declarations', + '-Wpointer-arith', +- '-Wcast-align', + '-Wwrite-strings', + '-Winit-self', + '-Wreturn-type', +-- +GitLab + diff --git a/libgovirt.spec b/libgovirt.spec index d44061f94a3b16e927f902a37c8b029d6bb1be77..809a64b9c195d126afdd0db5bf420370b101c9f3 100644 --- a/libgovirt.spec +++ b/libgovirt.spec @@ -1,11 +1,12 @@ Name: libgovirt Version: 0.3.9 -Release: 1 +Release: 2 Summary: A GObject-based library to access oVirt REST API License: LGPLv2+ URL: https://gitlab.gnome.org/GNOME/libgovirt Source0: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz Patch1: 0001-Fix-i18n-generation.patch +Patch2: 0002-Suppress-cast-align-error.patch BuildRequires: glib2-devel intltool rest-devel >= 0.9.1 BuildRequires: gobject-introspection-devel glib-networking dconf gnupg2 @@ -61,6 +62,9 @@ that use libgovirt. %{_datadir}/gir-1.0/GoVirt-1.0.gir %changelog +* Mon Feb 27 2023 laokz - 0.3.9-2 +- Backport upstream patch to fix cast-align error on some arches + * Fri Dec 2 2022 lin zhang - 0.3.9-1 - Upgrade to version 0.3.9