diff --git a/xfig-3.2.9-gcc14.patch b/xfig-3.2.9-gcc14.patch new file mode 100644 index 0000000..83ef633 --- /dev/null +++ b/xfig-3.2.9-gcc14.patch @@ -0,0 +1,15 @@ +--- + src/u_fonts.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- src/u_fonts.h ++++ src/u_fonts.h 2024-08-28 07:00:30.512232174 +0000 +@@ -77,7 +77,7 @@ extern struct _fstruct latex_fontinfo[]; + * need to map the byte characters into UTF-8 multi byte characters. + * This to make XftTextExtentsUtf8() and XftDrawStringUtf8() working. + */ +-typedef XftChar8 *(*map_f)(XftChar8); ++typedef XftChar32 (*map_f)(XftChar8); + extern XftChar32 map_dingbats(XftChar8); + extern XftChar32 map_symbols(XftChar8); + extern map_f adobe_charset(XftFont *font); diff --git a/xfig.changes b/xfig.changes index 181dcab..b147917 100644 --- a/xfig.changes +++ b/xfig.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 28 07:01:39 UTC 2024 - Dr. Werner Fink + +- Add patch xfig-3.2.9-gcc14.patch to make it build again + ------------------------------------------------------------------- Mon Jan 8 08:53:08 UTC 2024 - Dr. Werner Fink diff --git a/xfig.spec b/xfig.spec index 1766a72..ab2e117 100644 --- a/xfig.spec +++ b/xfig.spec @@ -44,6 +44,8 @@ Patch7: xfig.3.2.5b-fixes.dif Patch8: Sanitize-a-call-to-realloc-ticket-165.patch # PATCH-FIX-UPSTREAM Patch9: Fix-exporting-only-active-layers-ticket-163.patch +# PATCH-FIX-UPSTREAM +Patch10: xfig-3.2.9-gcc14.patch BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: flex @@ -109,6 +111,7 @@ set -x %patch -P7 -b .fixes %patch -P8 -p1 %patch -P9 -p1 +%patch -P10 cp %{SOURCE1} . test ! -e Libraries/Examples/aircraft.fig || { echo forbidden file found 1>&2; exit 1; }