Standard %n fix, I guess.
Mark as NO_TEST while here; there is no check or test target.
ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/openjade/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile 2 Sep 2021 17:57:04 -0000 1.34
+++ Makefile 10 Sep 2021 15:22:20 -0000
@@ -4,7 +4,7 @@ COMMENT= object-oriented DSSSL engine
DISTNAME= openjade-1.3.3-pre1
PKGNAME= openjade-1.3.3pre1
-REVISION= 7
+REVISION= 8
CATEGORIES= textproc
@@ -29,6 +29,7 @@ CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --datadir=${PREFIX}/share/sgml/openjade
USE_GMAKE= Yes
+NO_TEST= Yes
INSTALL_TARGET= install install-man
Index: patches/patch-jade_MifFOTBuilder_cxx
===================================================================
RCS file: patches/patch-jade_MifFOTBuilder_cxx
diff -N patches/patch-jade_MifFOTBuilder_cxx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-jade_MifFOTBuilder_cxx 10 Sep 2021 15:22:20 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: jade/MifFOTBuilder.cxx
+--- jade/MifFOTBuilder.cxx.orig
++++ jade/MifFOTBuilder.cxx
+@@ -1200,7 +1200,7 @@ class MifOutputByteStream {
+ MifOutputByteStream &operator<<( const MifDoc::T_dimension &d ) {
+ char buf[32];
+ int i;
+- sprintf( buf, "%li.%.3i%n", long(d)/1000, abs(long(d)%1000), &i );
++ i = sprintf( buf, "%li.%.3i", long(d)/1000, abs(long(d)%1000) );
+ while( buf[--i] == '0' ) {}; if( buf[i] == '.' ) i--;
+ buf[i+1] = '\0';
+ stream() << buf << "pt";
Index: patches/patch-jade_TeXFOTBuilder_cxx
===================================================================
RCS file: patches/patch-jade_TeXFOTBuilder_cxx
diff -N patches/patch-jade_TeXFOTBuilder_cxx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-jade_TeXFOTBuilder_cxx 10 Sep 2021 15:22:20 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: jade/TeXFOTBuilder.cxx
+--- jade/TeXFOTBuilder.cxx.orig
++++ jade/TeXFOTBuilder.cxx
+@@ -1004,7 +1004,7 @@ OutputByteStream &operator<<( OutputByteStream &os, Le
+
+ char buf[32];
+ int i;
+- sprintf( buf, "%li.%.3i%n", long(length.l)/1000, abs(long(length.l)%1000),
&i );
++ i = sprintf( buf, "%li.%.3i", long(length.l)/1000, abs(long(length.l)%1000)
);
+ while( buf[--i] == '0' ) {}; if( buf[i] == '.' ) i--;
+ buf[i+1] = '\0';
+ os << buf << "\\p@";
--
Christian "naddy" Weisgerber [email protected]