[packages/Xlt] - added type fixes for gcc 15, release 4
qboosh
qboosh at pld-linux.org
Fri Feb 6 21:55:42 CET 2026
commit 7ebf893f2216e09b78be100ef4b44b0d7efad05e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Feb 6 21:56:00 2026 +0100
- added type fixes for gcc 15, release 4
Xlt-types.patch | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Xlt.spec | 8 +++++---
2 files changed, 63 insertions(+), 3 deletions(-)
---
diff --git a/Xlt.spec b/Xlt.spec
index a627c94..bdf6bcc 100644
--- a/Xlt.spec
+++ b/Xlt.spec
@@ -2,13 +2,14 @@ Summary: The LessTif/Motif extension library
Summary(pl.UTF-8): Biblioteka rozszerzeń do LessTifa/Motifa
Name: Xlt
Version: 13.0.13
-Release: 3
+Release: 4
License: LGPL v2+
Group: X11/Libraries
-Source0: http://downloads.sourceforge.net/xlt/%{name}-%{version}.tar.gz
+Source0: https://downloads.sourceforge.net/xlt/%{name}-%{version}.tar.gz
# Source0-md5: 46b6259c7637d6e9b87520eb91b6ea51
Patch0: %{name}-format.patch
-URL: http://xlt.sourceforge.net/
+Patch1: %{name}-types.patch
+URL: https://xlt.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
@@ -53,6 +54,7 @@ Biblioteka statyczna Xlt.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
touch MaintainerMode.am
diff --git a/Xlt-types.patch b/Xlt-types.patch
new file mode 100644
index 0000000..ebabbcd
--- /dev/null
+++ b/Xlt-types.patch
@@ -0,0 +1,58 @@
+--- Xlt-13.0.13/lib/BubbleButton.c.orig 2004-07-03 16:21:09.000000000 +0200
++++ Xlt-13.0.13/lib/BubbleButton.c 2026-02-06 20:23:41.639849396 +0100
+@@ -46,6 +46,8 @@
+ #include <dmalloc.h>
+ #endif
+
++extern XmString _XmStringCreateExternal(XmFontList, _XmString);
++
+ static const char rcsid[] = "$Id: BubbleButton.c,v 1.17 2004/07/03 14:21:09 rwscott Exp $";
+
+ /*
+--- Xlt-13.0.13/lib/EntrySB.c.orig 2026-02-06 19:48:16.361734752 +0100
++++ Xlt-13.0.13/lib/EntrySB.c 2026-02-06 21:50:40.098006514 +0100
+@@ -287,9 +287,9 @@ static void initialize(request,self,args
+ XmFontList font_list;
+ XFontStruct *font, **FontList;
+ XtPointer FontPtr;
++ XmFontContext FontContext;
+ #if (XmREVISION <= 1)
+ XmStringCharSet CharSet;
+- XmFontContext FontContext;
+ #else
+ XmFontType FontType;
+ #endif
+@@ -331,13 +331,12 @@ static void initialize(request,self,args
+ XtVaGetValues(((XltEntrySBWidget)self)->xltEntrySB.label_widget,
+ XmNfontList, &font_list,
+ NULL);
+-#if (XmREVISION <= 1)
+ XmFontListInitFontContext(&FontContext, font_list);
++#if (XmREVISION <= 1)
+ XmFontListGetNextFont(FontContext, &CharSet, &font);
+ XtFree(CharSet);
+- XmFontListFreeFontContext(FontContext);
+ #else
+- FontPtr = XmFontListEntryGetFont(font_list, &FontType);
++ FontPtr = XmFontListEntryGetFont(XmFontListNextEntry(FontContext), &FontType);
+ if ( FontType == XmFONT_IS_FONT )
+ font = (XFontStruct *) FontPtr;
+ else {
+@@ -346,6 +345,7 @@ static void initialize(request,self,args
+ font = FontList[0];
+ }
+ #endif
++ XmFontListFreeFontContext(FontContext);
+ /* get label width and height */
+ XTextExtents(font, ((XltEntrySBWidget)self)->xltEntrySB.label, strlen(((XltEntrySBWidget)self)->xltEntrySB.label), &direction,
+ &font_ascent, &font_descent, &overall);
+--- Xlt-13.0.13/lib/SciPlot.c.orig 2001-08-27 16:30:42.000000000 +0200
++++ Xlt-13.0.13/lib/SciPlot.c 2026-02-06 21:51:15.768198922 +0100
+@@ -32,6 +32,7 @@
+ #include "../config.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Xlt.git/commitdiff/7ebf893f2216e09b78be100ef4b44b0d7efad05e
More information about the pld-cvs-commit
mailing list