[packages/gbdfed] Rel 2
arekm
arekm at pld-linux.org
Thu May 21 16:00:50 CEST 2026
commit 7b1b5c648cf0b2098c1539ca73f2a8d71994173b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 16:00:27 2026 +0200
Rel 2
gbdfed-1.6_modern-compiler.patch | 72 ++++++++++++++++++++++++++++++++++++++++
gbdfed.spec | 4 ++-
2 files changed, 75 insertions(+), 1 deletion(-)
---
diff --git a/gbdfed.spec b/gbdfed.spec
index 4fd2424..4170544 100644
--- a/gbdfed.spec
+++ b/gbdfed.spec
@@ -1,7 +1,7 @@
Summary: Bitmap Font Editor
Name: gbdfed
Version: 1.6
-Release: 1
+Release: 2
License: BSD 3-Clause
Group: X11/Applications
Source0: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/%{name}-%{version}.tar.bz2
@@ -15,6 +15,7 @@ Source3: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/gbdfed48x48.png
Source4: %{name}.desktop
Patch0: %{name}-1.6_64bit.patch
Patch1: %{name}-1.6_array-index.patch
+Patch2: %{name}-1.6_modern-compiler.patch
URL: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/
BuildRequires: freetype-devel
BuildRequires: gtk+2-devel >= 2.6
@@ -32,6 +33,7 @@ grayscale fonts.
%setup -q
%patch -P0 -p0
%patch -P1 -p0
+%patch -P2 -p0
%build
%configure
diff --git a/gbdfed-1.6_modern-compiler.patch b/gbdfed-1.6_modern-compiler.patch
new file mode 100644
index 0000000..9b8840d
--- /dev/null
+++ b/gbdfed-1.6_modern-compiler.patch
@@ -0,0 +1,72 @@
+--- bdf.c
++++ bdf.c
+@@ -2065,7 +2065,7 @@
+ char *name, *value;
+ _bdf_parse_t *p;
+ _bdf_line_func_t *next;
+- char nbuf[24];
++ char nbuf[128];
+
+ next = (_bdf_line_func_t *) call_data;
+ p = (_bdf_parse_t *) client_data;
+@@ -2274,7 +2274,7 @@
+ _bdf_parse_t *p;
+ HBF_BBOX *fbbx;
+ double ps, rx, dw;
+- char nbuf[24];
++ char nbuf[128];
+
+ /*
+ * Attempt to get the bitmap.
+@@ -2843,14 +2843,14 @@
+ bpr = ((c->bbx.width * font->bpp) + 7) >> 3;
+ for (j = 0; bpr != 0 && j < c->bytes; j++) {
+ if (j && j % bpr == 0)
+- fprintf(out, eol);
++ fputs(eol, out);
+ fprintf(out, "%02X", c->bitmap[j]);
+ }
+ /*
+ * Handle empty bitmaps like this.
+ */
+ if (c->bbx.height > 0)
+- fprintf(out, eol);
++ fputs(eol, out);
+ fprintf(out, "ENDCHAR%s", eol);
+
+ /*
+@@ -2915,14 +2915,14 @@
+ bpr = ((c->bbx.width * font->bpp) + 7) >> 3;
+ for (j = 0; bpr != 0 && j < c->bytes; j++) {
+ if (j && j % bpr == 0)
+- fprintf(out, eol);
++ fputs(eol, out);
+ fprintf(out, "%02X", c->bitmap[j]);
+ }
+ /*
+ * Handle empty bitmaps like this.
+ */
+ if (c->bbx.height > 0)
+- fprintf(out, eol);
++ fputs(eol, out);
+ fprintf(out, "ENDCHAR%s", eol);
+
+ /*
+--- hbf.c
++++ hbf.c
+@@ -60,6 +60,7 @@
+ #include <stddef.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <stdbool.h>
+ #include <ctype.h>
+ #include <string.h>
+ #include "hbf.h"
+@@ -82,7 +83,6 @@
+
+ #define reg register
+
+-typedef int bool;
+ #define TRUE 1
+ #define FALSE 0
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gbdfed.git/commitdiff/7b1b5c648cf0b2098c1539ca73f2a8d71994173b
More information about the pld-cvs-commit
mailing list