[packages/libhnj] Rel 11

arekm arekm at pld-linux.org
Sun Mar 15 02:00:47 CET 2026


commit 953323b23b0e53565b58ae2583ede7c29f6de8f8
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 02:00:40 2026 +0100

    Rel 11

 libhnj-c99.patch | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 libhnj.spec      |  4 +++-
 2 files changed, 67 insertions(+), 1 deletion(-)
---
diff --git a/libhnj.spec b/libhnj.spec
index 1a3b70a..cda2907 100644
--- a/libhnj.spec
+++ b/libhnj.spec
@@ -2,7 +2,7 @@ Summary:	Libhnj Library
 Summary(pl.UTF-8):	Biblioteka Libhnj
 Name:		libhnj
 Version:	0.1.1
-Release:	10
+Release:	11
 License:	LGPL v2+ or MPL v1.0
 Group:		Libraries
 # formerly ftp://ftp.gnome.org/pub/GNOME/stable/sources/libhnj/
@@ -10,6 +10,7 @@ Source0:	http://hkn.eecs.berkeley.edu/~dyoo/pyHnj/%{name}-%{version}.tar.gz
 # Source0-md5:	29f5571af559690e916b1c7b1aa6aa1f
 Patch0:		%{name}-const-error.patch
 Patch1:		%{name}-am18.patch
+Patch2:		%{name}-c99.patch
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libtool
@@ -51,6 +52,7 @@ Biblioteka statyczna libhnj.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__libtoolize}
diff --git a/libhnj-c99.patch b/libhnj-c99.patch
new file mode 100644
index 0000000..606a244
--- /dev/null
+++ b/libhnj-c99.patch
@@ -0,0 +1,64 @@
+--- libhnj-0.1.1/parseAFM.c.orig	2026-03-15 01:44:13.786571652 +0100
++++ libhnj-0.1.1/parseAFM.c	2026-03-15 01:44:44.533656691 +0100
+@@ -51,6 +51,8 @@
+ 
+ #include <stdio.h>
+ #include <errno.h>
++#include <stdlib.h>
++#include <string.h>
+ #include <sys/file.h>
+ #include <math.h>
+ #include "parseAFM.h"
+@@ -493,7 +495,7 @@
+  *  parseFile to determine if there is more file to parse.
+  */
+  
+-static parseCharWidths(fp, cwi)
++static int parseCharWidths(fp, cwi)
+   FILE *fp;
+   register int *cwi;
+ {  
+@@ -594,7 +596,7 @@
+  *  parseFile to determine if there is more file to parse.
+  */
+  
+-static parseCharMetrics(fp, fi)
++static int parseCharMetrics(fp, fi)
+   FILE *fp;
+   register FontInfo *fi;
+ {  
+@@ -705,7 +707,7 @@
+  *  parseFile to determine if there is more file to parse.
+  */
+  
+-static parseTrackKernData(fp, fi)
++static int parseTrackKernData(fp, fi)
+   FILE *fp;
+   register FontInfo *fi;
+ {  
+@@ -809,7 +811,7 @@
+  *  parseFile to determine if there is more file to parse.
+  */
+  
+-static parsePairKernData(fp, fi)
++static int parsePairKernData(fp, fi)
+   FILE *fp;
+   register FontInfo *fi;
+ {  
+@@ -935,7 +937,7 @@
+  *  parseFile to determine if there is more file to parse.
+  */
+  
+-static parseCompCharData(fp, fi)
++static int parseCompCharData(fp, fi)
+   FILE *fp;
+   register FontInfo *fi;
+ {  
+--- libhnj-0.1.1/parseAFM.h.orig	2026-03-15 01:44:14.073238318 +0100
++++ libhnj-0.1.1/parseAFM.h	2026-03-15 01:44:49.571415591 +0100
+@@ -318,4 +318,4 @@
+  *  The possible return codes from parseFile are defined above.
+  */
+ 
+-extern int parseFile ( /* FILE *fp; FontInfo **fi; FLAGS flags; */ ); 
++extern int parseFile (FILE *fp, FontInfo **fi, FLAGS flags);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libhnj.git/commitdiff/953323b23b0e53565b58ae2583ede7c29f6de8f8



More information about the pld-cvs-commit mailing list