<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6e5dc429beeb4fa055beefd6d75dec83e117aef8">https://github.com/macports/macports-ports/commit/6e5dc429beeb4fa055beefd6d75dec83e117aef8</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 6e5dc429bee lha: Fix implicit declaration of exit
</span>6e5dc429bee is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6e5dc429beeb4fa055beefd6d75dec83e117aef8
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Dec 6 19:51:23 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> lha: Fix implicit declaration of exit
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/61535
</span>---
archivers/lha/Portfile | 3 +-
archivers/lha/files/implicit.patch | 49 +++++++++++++++++++++++++++++
archivers/lha/files/patch-src_header.c.diff | 10 +++---
3 files changed, 55 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/lha/Portfile b/archivers/lha/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 20d2192eb8b..1154ea0efd8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/lha/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/lha/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,7 +19,8 @@ checksums rmd160 3015b301291a5b707e125dea6918f4fdbf534485 \
</span> sha256 4b21cbba1836d019d36a022d5c8ec66b1fd9d09dcfa2a857bf51b8cdea76e94e \
size 220432
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-src_header.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-src_header.c.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit.patch
</span>
depends_lib-append port:libiconv
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/lha/files/implicit.patch b/archivers/lha/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1117c95f983
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/lha/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,49 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix implicit declaration of exit.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/jca02266/lha/pull/18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -129,14 +129,14 @@ AC_CACHE_CHECK([whether strchr()/strrchr() is 8bit clean],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *strchr (), *strrchr ();
</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;'>+-main()
</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;'>+ char *s = "\377";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (strchr(s, 0xff) != s) exit(1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (strchr(s, '\377') != s) exit(1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (strrchr(s, 0xff) != s) exit(1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (strrchr(s, '\377') != s) exit(1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit(0); /* ok */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (strchr(s, 0xff) != s) return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (strchr(s, '\377') != s) return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (strrchr(s, 0xff) != s) return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (strrchr(s, '\377') != s) return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 0; /* ok */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], lha_cv_func_strchr_8bit_clean=yes,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lha_cv_func_strchr_8bit_clean=no,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -163,19 +163,19 @@ AC_CACHE_CHECK([whether the 2nd argument of gettimeofday() is effective],
</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;'>+-main()
</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;'>+ struct timeval tv;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct timezone tz;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tz.tz_minuteswest = -1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (gettimeofday(&tv, &tz) == -1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit(1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (tz.tz_minuteswest == -1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit(1); /* the timezone information is no given */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 1; /* the timezone information is no given */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }], lha_cv_func_gettimeofday_2nd_arg=yes,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lha_cv_func_gettimeofday_2nd_arg=no,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lha_cv_func_gettimeofday_2nd_arg=no))
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/lha/files/patch-src_header.c.diff b/archivers/lha/files/patch-src_header.c.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 8e2471ed243..2d73eee37d6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/lha/files/patch-src_header.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/lha/files/patch-src_header.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,8 +1,6 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Index: src/header.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-===================================================================
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/header.c (revision 871)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/header.c (working copy)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1798,6 +1798,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/header.c.orig 2019-10-04 22:58:55.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/header.c 2020-12-06 19:49:29.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1976,6 +1976,7 @@
</span> unsigned long usedByteLen = 0;
UniChar uniStr[256];
unsigned long cfResult;
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +8,7 @@ Index: src/header.c
</span>
cfResult = CFStringEncodingBytesToUnicode(kCFStringEncodingUTF8,
flags,
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1808,6 +1809,38 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1986,6 +1987,38 @@
</span> 255,
&unicodeChars);
if (cfResult == 0) {
</pre><pre style='margin:0'>
</pre>