[packages/mftrace] Up to 1.2.20

arekm arekm at pld-linux.org
Fri May 8 20:48:05 CEST 2026


commit 182726ba1046becfbafe7cb562ac292aa43d4c36
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri May 8 20:47:32 2026 +0200

    Up to 1.2.20

 mftrace-c23-fixes.patch | 68 +++++++++++++++++++++++++++++++++++++++++++++++++
 mftrace.spec            | 14 +++++-----
 2 files changed, 76 insertions(+), 6 deletions(-)
---
diff --git a/mftrace.spec b/mftrace.spec
index edd32b7..3ba83fb 100644
--- a/mftrace.spec
+++ b/mftrace.spec
@@ -1,15 +1,16 @@
 Summary:	Generate scalable fonts for TeX
 Summary(pl.UTF-8):	Generowanie skalowanych fontów dla TeXa
 Name:		mftrace
-Version:	1.2.13
+Version:	1.2.20
 Release:	1
 License:	GPL
 Group:		Applications/Publishing
 Source0:	https://lilypond.org/download/sources/mftrace/%{name}-%{version}.tar.gz
-# Source0-md5:	0d3f2ae9cff1f2677fbf968eb40c9238
+# Source0-md5:	33056fadd1badce2ecffbeeab138f219
+Patch0:		%{name}-c23-fixes.patch
 URL:		http://lilypond.org/mftrace/
 Requires:	potrace
-Requires:	python >= 2.1
+Requires:	python3
 Requires:	t1utils
 Requires:	tetex-metafont
 Conflicts:	autotrace < 0.30
@@ -43,11 +44,12 @@ automatycznego hintingu.
 
 %prep
 %setup -q
+%patch -P 0 -p1
 
 %build
 %configure \
 	POTRACE=/usr/bin/potrace \
-	PYTHON=%{__python} \
+	PYTHON=%{__python3} \
 	AUTOTRACE=/usr/bin/autotrace
 
 %{__make} \
@@ -72,7 +74,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/mftrace
 %{_mandir}/man1/mftrace.1*
 %dir %{_datadir}/mftrace
-%{_datadir}/mftrace/afm.pyc
 %{_datadir}/mftrace/afm.py
-%{_datadir}/mftrace/tfm.pyc
 %{_datadir}/mftrace/tfm.py
+%dir %{_datadir}/mftrace/__pycache__
+%{_datadir}/mftrace/__pycache__/*.pyc
diff --git a/mftrace-c23-fixes.patch b/mftrace-c23-fixes.patch
new file mode 100644
index 0000000..2f933c4
--- /dev/null
+++ b/mftrace-c23-fixes.patch
@@ -0,0 +1,68 @@
+--- a/gf2pbm.c	2026-05-08 20:34:16.040197971 +0200
++++ b/gf2pbm.c	2026-05-08 20:35:47.469836898 +0200
+@@ -30,8 +30,8 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdbool.h>
+ #include <unistd.h>		/* getopt. */
+-#include <strings.h>
+ 
+ #include "config.h"
+ 
+@@ -106,7 +106,7 @@
+ #endif
+ #endif
+ 
+-typedef enum {false,true}bool;
++/* bool, true, false are keywords in C23; stdbool.h covers C99/C11/C17 */
+ bool debug;
+ 
+ struct font {
+@@ -252,7 +252,7 @@
+ 	glyphp = fontp->glyph = (struct glyph*)realloc(fontp->glyph,
+ 	    (unsigned int) (newsize + 1) * sizeof(struct glyph));
+ 	if (newsize > fontp->maxchar)
+-	    bzero((char *) (glyphp + fontp->maxchar + 1),
++	    memset((char *) (glyphp + fontp->maxchar + 1), 0,
+ 		(int) (newsize - fontp->maxchar) * sizeof(struct glyph));
+ 	maxchar = fontp->maxchar = newsize;
+ }
+@@ -366,7 +366,7 @@
+  */
+ 	bytes_wide = ROUNDUP((int) g->bitmap.w, BMBITS) * BMBYTES;
+ 	maxp = ADD(basep, g->bitmap.h * bytes_wide);
+-	bzero(g->bitmap.bits, g->bitmap.h * bytes_wide);
++	memset(g->bitmap.bits, 0, g->bitmap.h * bytes_wide);
+ 	new_row = false;
+ 	word_weight = BMBITS;
+ 	for (;;) {
+@@ -502,7 +502,7 @@
+  *	Prepare glyph array.
+  */
+ 	fontp->glyph = (struct glyph*)xmalloc(256 * sizeof(struct glyph));
+-	bzero((char *) fontp->glyph, 256 * sizeof(struct glyph));
++	memset((char *) fontp->glyph, 0, 256 * sizeof(struct glyph));
+ /*
+  *	Read glyph directory.
+  */
+@@ -641,7 +641,7 @@
+     }
+ 
+   fontp = (struct font*)malloc (sizeof (struct font));
+-  bzero (fontp, sizeof (struct font));
++  memset (fontp, 0, sizeof (struct font));
+ 
+   fontp->fontname = filename;
+   fontp->file = in_file;
+--- a/GNUmakefile.in	2026-05-08 20:36:36.151740650 +0200
++++ b/GNUmakefile.in	2026-05-08 20:36:42.946503560 +0200
+@@ -14,7 +14,7 @@
+ srcdir=@srcdir@
+ VPATH=$(srcdir)
+ NAME=mftrace
+-MANPAGES=mftrace.1 gf2pbm.1
++MANPAGES=mftrace.1
+ VERSION=@VERSION@
+ distdir=$(NAME)-$(VERSION)
+ prefix=@prefix@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mftrace.git/commitdiff/182726ba1046becfbafe7cb562ac292aa43d4c36



More information about the pld-cvs-commit mailing list