<pre style='margin:0'>
Ryan Carsten Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a9a615199c41c0dcc050fdc0d47244fbc5be9dd0">https://github.com/macports/macports-ports/commit/a9a615199c41c0dcc050fdc0d47244fbc5be9dd0</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a9a615199c41c0dcc050fdc0d47244fbc5be9dd0
</span>Author: Ryan Carsten Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jun 14 16:22:43 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> t1lib: Fix implicit func decls and implicit int
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/69795
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Use -std=gnu89 because the code uses old K&R-style declarations.
</span>---
devel/t1lib/Portfile | 7 +-
devel/t1lib/files/implicit-int.patch | 14 +++
devel/t1lib/files/implicit.patch | 167 +++++++++++++++++++++++++++++++++++
3 files changed, 187 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/t1lib/Portfile b/devel/t1lib/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5c24f0c392a..fd0ee7b8ac3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/t1lib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/t1lib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,12 +24,17 @@ long_description \
</span> homepage http://www.t1lib.org/
master_sites sunsite:libs/graphics/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-01-buffer-limit \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles implicit.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit-int.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-01-buffer-limit \
</span> patch-libtool-tag.diff
configure.args --without-athena \
--without-x
<span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -std=gnu89
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build path:bin/glibtool:libtool
build.args LIBTOOL=${prefix}/bin/glibtool
build.target without_doc
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/t1lib/files/implicit-int.patch b/devel/t1lib/files/implicit-int.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ef3dd546841
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/t1lib/files/implicit-int.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Add missing parameter types for improved C99 compatibility: implicit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ints are not part of C99.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://src.fedoraproject.org/rpms/t1lib/blob/rawhide/f/t1lib-c99.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/type1/regions.c.orig 2007-12-23 16:49:42.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/type1/regions.c 2023-01-18 13:24:18.670386804 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -604,6 +604,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ register struct region *R; /* region in which we are changing direction */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fractpel x,y; /* current beginning x,y */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fractpel dy; /* direction and magnitude of change in y */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int x2, y2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ register fractpel ymin,ymax; /* minimum and maximum Y since last call */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ register fractpel x_at_ymin,x_at_ymax; /* their respective X's */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/t1lib/files/implicit.patch b/devel/t1lib/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6ab3ede6d69
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/t1lib/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,167 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Based on:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://src.fedoraproject.org/rpms/t1lib/blob/rawhide/f/t1lib-configure-c99.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2007-12-23 09:49:43.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2024-06-14 16:06:22.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2888,7 +2888,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (exit $ac_status); }; }; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for ac_declaration in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- '' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ '#include <stdlib.h>' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'extern "C" void std::exit (int); using std::exit;' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'extern "C" void exit (int) throw ();' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -5787,8 +5787,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (i = 0; i < 256; i++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (XOR (islower (i), ISLOWER (i))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || toupper (i) != TOUPPER (i))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit(2);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f conftest$ac_exeext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6291,7 +6291,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for ac_declaration in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- '' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ '#include <stdlib.h>' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'extern "C" void std::exit (int); using std::exit;' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'extern "C" void exit (int) throw ();' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -10322,10 +10322,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern "C" void exit (int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fnord() { int i=42;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -10339,7 +10335,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* dlclose (self); */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (status);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return status;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -10420,10 +10416,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern "C" void exit (int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fnord() { int i=42;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -10437,7 +10429,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* dlclose (self); */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (status);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return status;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14038,10 +14030,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern "C" void exit (int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fnord() { int i=42;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14055,7 +14043,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* dlclose (self); */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (status);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return status;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14136,10 +14124,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern "C" void exit (int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fnord() { int i=42;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14153,7 +14137,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* dlclose (self); */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (status);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return status;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19560,10 +19544,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern "C" void exit (int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fnord() { int i=42;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19577,7 +19557,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* dlclose (self); */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (status);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return status;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19658,10 +19638,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern "C" void exit (int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fnord() { int i=42;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19675,7 +19651,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* dlclose (self); */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (status);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return status;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24526,7 +24502,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ unsigned int B = 3;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for(i=0; i<B; i++) Array[i] = i - 3;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit( Array[1] != -2 );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return Array[1] != -2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f conftest$ac_exeext
</span></pre><pre style='margin:0'>
</pre>