[packages/ming] fix prototypes missing in perl extension

atler atler at pld-linux.org
Tue Jul 29 18:43:33 CEST 2025


commit ed4d5ee3f9d37da525de34f3520a05c5538c457d
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jul 29 18:43:07 2025 +0200

    fix prototypes missing in perl extension

 ming.spec        |  2 ++
 prototypes.patch | 21 +++++++++++++++++++++
 2 files changed, 23 insertions(+)
---
diff --git a/ming.spec b/ming.spec
index 2a2c001..36e0a42 100644
--- a/ming.spec
+++ b/ming.spec
@@ -20,6 +20,7 @@ Patch1:		am.patch
 Patch2:		flex.patch
 Patch3:		tcl-libx32.patch
 Patch4:		swig.patch
+Patch5:		prototypes.patch
 URL:		http://www.libming.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -173,6 +174,7 @@ Interfejs Tcl do biblioteki Ming generującej pliki SWF.
 %patch -P2 -p1
 %patch -P3 -p1
 %patch -P4 -p1
+%patch -P5 -p1
 
 %build
 %{__libtoolize}
diff --git a/prototypes.patch b/prototypes.patch
new file mode 100644
index 0000000..ce623cd
--- /dev/null
+++ b/prototypes.patch
@@ -0,0 +1,21 @@
+--- libming-ming-0_4_8/src/ming.h.in.orig	2017-04-07 10:12:56.000000000 +0200
++++ libming-ming-0_4_8/src/ming.h.in	2025-07-29 18:29:39.083778043 +0200
+@@ -542,7 +542,7 @@
+ void SWFTextField_addChars(SWFTextField field, const char *string);
+ 
+   /* deprecated? */
+-  /*void SWFTextField_addUTF8Chars(SWFTextField field, const char *string);*/
++void SWFTextField_addUTF8Chars(SWFTextField field, const char *string);
+ 
+ void SWFTextField_setAlignment(SWFTextField field,
+ 			       SWFTextFieldAlignment alignment);
+--- libming-ming-0_4_8/perl_ext/Font.xs.orig	2017-04-07 10:12:56.000000000 +0200
++++ libming-ming-0_4_8/perl_ext/Font.xs	2025-07-29 18:33:29.977773581 +0200
+@@ -14,6 +14,7 @@
+ #include "XSUB.h"
+ 
+ #include "SWF.h"
++#include "blocks/block.h"
+ #include "perl_swf.h"
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ming.git/commitdiff/ed4d5ee3f9d37da525de34f3520a05c5538c457d



More information about the pld-cvs-commit mailing list