Fix graphene instrospection build on i686
Thanks to mclasen for coming up with the fix! https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/384
This commit is contained in:
parent
c6a3e372f0
commit
7f78c6c9e7
31
269.patch
Normal file
31
269.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From 60b0cf2fc2fdc74d13832d1fdde21cfdc813b84e Mon Sep 17 00:00:00 2001
|
||||
From: Emmanuele Bassi <ebassi@gnome.org>
|
||||
Date: Mon, 26 Apr 2021 10:59:52 +0100
|
||||
Subject: [PATCH] scanner: Add more float types
|
||||
|
||||
The scanner is chocking on the `__float80` and `__float128` types that
|
||||
are provided by GCC as extensions to ISO/IEC TS 18661-3:2015:
|
||||
|
||||
https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html
|
||||
|
||||
Fixes: #384
|
||||
---
|
||||
giscanner/scannerlexer.l | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
|
||||
index cfec4d58..b6cc6499 100644
|
||||
--- a/giscanner/scannerlexer.l
|
||||
+++ b/giscanner/scannerlexer.l
|
||||
@@ -224,6 +224,8 @@ stringtext ([^\\\"])|(\\.)
|
||||
"_Float32x" { return BASIC_TYPE; }
|
||||
"_Float64x" { return BASIC_TYPE; }
|
||||
"_Float128x" { return BASIC_TYPE; }
|
||||
+"__float80" { return BASIC_TYPE; }
|
||||
+"__float128" { return BASIC_TYPE; }
|
||||
"for" { return FOR; }
|
||||
"goto" { return GOTO; }
|
||||
"if" { return IF; }
|
||||
--
|
||||
GitLab
|
||||
|
@ -2,13 +2,17 @@
|
||||
|
||||
Name: gobject-introspection
|
||||
Version: 1.68.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Introspection system for GObject-based libraries
|
||||
|
||||
License: GPLv2+, LGPLv2+, MIT
|
||||
URL: https://wiki.gnome.org/Projects/GObjectIntrospection
|
||||
Source0: https://download.gnome.org/sources/gobject-introspection/1.68/%{name}-%{version}.tar.xz
|
||||
|
||||
# Fix graphene instrospection build on i686
|
||||
# https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/384
|
||||
Patch0: 269.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: bison
|
||||
BuildRequires: cairo-gobject-devel
|
||||
@ -84,6 +88,9 @@ Libraries and headers for gobject-introspection
|
||||
%{_mandir}/man1/g-ir-scanner.1*
|
||||
|
||||
%changelog
|
||||
* Mon Apr 26 2021 Kalev Lember <klember@redhat.com> - 1.68.0-2
|
||||
- Fix graphene instrospection build on i686
|
||||
|
||||
* Mon Mar 22 2021 Kalev Lember <klember@redhat.com> - 1.68.0-1
|
||||
- Update to 1.68.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user