Backport upstream patch to fix cast-align error on some arches
This commit is contained in:
parent
a1852cdcca
commit
a93fc5df64
28
0002-Suppress-cast-align-error.patch
Normal file
28
0002-Suppress-cast-align-error.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From bae26c0033d649722b5a3fc48df3adf2172490f1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sprite <SpriteOvO@gmail.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,11 +1,12 @@
|
|||||||
Name: libgovirt
|
Name: libgovirt
|
||||||
Version: 0.3.9
|
Version: 0.3.9
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A GObject-based library to access oVirt REST API
|
Summary: A GObject-based library to access oVirt REST API
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://gitlab.gnome.org/GNOME/libgovirt
|
URL: https://gitlab.gnome.org/GNOME/libgovirt
|
||||||
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
|
||||||
Patch1: 0001-Fix-i18n-generation.patch
|
Patch1: 0001-Fix-i18n-generation.patch
|
||||||
|
Patch2: 0002-Suppress-cast-align-error.patch
|
||||||
|
|
||||||
BuildRequires: glib2-devel intltool rest-devel >= 0.9.1
|
BuildRequires: glib2-devel intltool rest-devel >= 0.9.1
|
||||||
BuildRequires: gobject-introspection-devel glib-networking dconf gnupg2
|
BuildRequires: gobject-introspection-devel glib-networking dconf gnupg2
|
||||||
@ -61,6 +62,9 @@ that use libgovirt.
|
|||||||
%{_datadir}/gir-1.0/GoVirt-1.0.gir
|
%{_datadir}/gir-1.0/GoVirt-1.0.gir
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 27 2023 laokz <zhangkai@iscas.ac.cn> - 0.3.9-2
|
||||||
|
- Backport upstream patch to fix cast-align error on some arches
|
||||||
|
|
||||||
* Fri Dec 2 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.3.9-1
|
* Fri Dec 2 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.3.9-1
|
||||||
- Upgrade to version 0.3.9
|
- Upgrade to version 0.3.9
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user