From d0358934aaad62f366f22578e8de67d35d4b7cd3 Mon Sep 17 00:00:00 2001 From: liheavy <17865196565@163.com> Date: Wed, 4 Aug 2021 11:47:23 +0800 Subject: [PATCH] fix complication failed due to gcc upgrade --- 0002-fix-compilation-failed.patch | 12 ++++++++++++ gegl04.spec | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 0002-fix-compilation-failed.patch diff --git a/0002-fix-compilation-failed.patch b/0002-fix-compilation-failed.patch new file mode 100644 index 0000000..e889e2f --- /dev/null +++ b/0002-fix-compilation-failed.patch @@ -0,0 +1,12 @@ +diff -Nur a/gcut/gcut.h b/gcut/gcut.h +--- a/gcut/gcut.h 2018-05-13 19:48:27.000000000 +0800 ++++ b/gcut/gcut.h 2021-08-04 11:14:47.869520800 +0800 +@@ -234,7 +234,7 @@ + char *clip_query; + int clip_query_edited; + int filter_edited; +-} _GeglEDL; ++}; + + void update_size (GeglEDL *edl, Clip *clip); + void remove_in_betweens (GeglNode *nop_scaled, GeglNode *nop_filtered); diff --git a/gegl04.spec b/gegl04.spec index 894d5da..2c624a7 100644 --- a/gegl04.spec +++ b/gegl04.spec @@ -5,7 +5,9 @@ Summary: Generic Graphics Library License: LGPLv3+ URL: http://www.gegl.org/ Source0: http://download.gimp.org/pub/gegl/0.4/gegl-%{version}.tar.bz2 + Patch0000: 0001-fix-C-linkage.patch +Patch0001: 0002-fix-compilation-failed.patch BuildRequires: chrpath, enscript, gcc-c++, gettext-devel >= 0.19.8, gobject-introspection-devel >= 1.32.0, libspiro-devel, perl-interpreter BuildRequires: ruby, SDL-devel >= 1.2.0, suitesparse-devel, vala-tools, pkgconfig(babl) >= 0.1.56, pkgconfig(cairo) >= 1.12.2, pkgconfig(exiv2) >= 0.25 @@ -50,7 +52,7 @@ This package includes development files for %{name}. %autosetup -n gegl-%{version} -p1 %build -%configure --disable-static CFLAGS="${CFLAGS} -fcommon" +%configure --disable-static CFLAGS="${CFLAGS}" %make_build %install