public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xfig] epel10.2: Fix compile error with f40+ gcc
@ 2026-05-30 14:28 Hans de Goede
  0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2026-05-30 14:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/xfig
Branch : epel10.2
Commit : a6b2ba00ebe180bfdfad2add5abfe22699931f9b
Author : Hans de Goede <hdegoede@redhat.com>
Date   : 2024-02-26T14:15:30+01:00
Stats  : +15/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/xfig/c/a6b2ba00ebe180bfdfad2add5abfe22699931f9b?branch=epel10.2

Log:
Fix compile error with f40+ gcc

---
diff --git a/xfig-3.2.9-compile-fix.patch b/xfig-3.2.9-compile-fix.patch
new file mode 100644
index 0000000..6ca38bc
--- /dev/null
+++ b/xfig-3.2.9-compile-fix.patch
@@ -0,0 +1,13 @@
+diff -up xfig-3.2.9/configure~ xfig-3.2.9/configure
+diff -up xfig-3.2.9/src/u_fonts.h~ xfig-3.2.9/src/u_fonts.h
+--- xfig-3.2.9/src/u_fonts.h~	2024-02-26 13:37:49.000000000 +0100
++++ xfig-3.2.9/src/u_fonts.h	2024-02-26 14:05:16.718889666 +0100
+@@ -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.spec b/xfig.spec
index a3c2bcc..f40d049 100644
--- a/xfig.spec
+++ b/xfig.spec
@@ -21,6 +21,8 @@ Patch1:  Fix-exporting-only-active-layers-ticket-163.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=2260359
 # https://sourceforge.net/p/mcj/xfig/ci/1e2d842875502b4ce0e74ec779454304c71efe54/
 Patch2: 0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch
+# compile fix for above patch
+Patch3: xfig-3.2.9-compile-fix.patch
 #Patch0: xfig-3.2.5a-default-apps.patch
 #Patch1: xfig-3.2.5-urwfonts.patch
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-30 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30 14:28 [rpms/xfig] epel10.2: Fix compile error with f40+ gcc Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox