<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/7752f4c66c4b4a08725b2dcf75fb71c558f48053">https://github.com/macports/macports-ports/commit/7752f4c66c4b4a08725b2dcf75fb71c558f48053</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 7752f4c66c4 primegen: Fix implicit function declarations
</span>7752f4c66c4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7752f4c66c4b4a08725b2dcf75fb71c558f48053
</span>Author: Ivan Kuchin <tadump+git@gmail.com>
AuthorDate: Tue Dec 29 07:32:08 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> primegen: Fix implicit function declarations
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fix issues in code that are causing error in Xcode 12 and caused
</span><span style='display:block; white-space:pre;color:#404040;'> warnings in previous versions. Namely include missing stdio.h, use int
</span><span style='display:block; white-space:pre;color:#404040;'> as return type for main and use return instead of exit in main.
</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/61870
</span>---
math/primegen/Portfile | 5 +-
math/primegen/files/patch-modernise.diff | 89 ++++++++++++++++++++++++++++++++
2 files changed, 93 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/primegen/Portfile b/math/primegen/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 92daeb84ec3..097a0d67307 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/primegen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/primegen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,7 +21,8 @@ homepage https://cr.yp.to/primegen.html
</span> master_sites https://cr.yp.to/primegen/
checksums rmd160 6f18fb8819e5589b0d7701f2dd69a2d8be4138b3 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 54285baf8eed9e421ff2220a2112d38cfb20c1ebef6014ef3f0004c22c95f40d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 54285baf8eed9e421ff2220a2112d38cfb20c1ebef6014ef3f0004c22c95f40d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 31491
</span>
configure {
reinplace "s|gcc|${configure.cc} [get_canonical_archflags cc]|" ${worksrcpath}/conf-cc
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,6 +31,8 @@ configure {
</span>
build.target it
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-modernise.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
xinstall -m 755 ${worksrcpath}/primegaps ${worksrcpath}/primes ${destroot}${prefix}/bin
xinstall -m 644 ${worksrcpath}/primegen.h ${destroot}${prefix}/include
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/primegen/files/patch-modernise.diff b/math/primegen/files/patch-modernise.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5a49a8a10f3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/primegen/files/patch-modernise.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,89 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git eratspeed.c eratspeed.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 3bad129..08fe934 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- eratspeed.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ eratspeed.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,6 +1,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define B32 1001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define B (B32 * 32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "timing.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "uint32.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -400,7 +401,7 @@ void countit()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timing t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timing told;
</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;'>+ int L = 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -432,5 +433,5 @@ main()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printf("Overall seconds: approximately %f.\n",0.000000001 * timing_basic_diff(&finishb,&startb));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printf("Tick counts may be underestimates on systems without hardware tick support.\n");
</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;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git primegaps.c primegaps.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c040611..190d6b1 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- primegaps.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ primegaps.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,9 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <math.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "primegen.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ primegen pg;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void 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;'>+ uint64 p;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uint64 lastp;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git primes.c primes.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index b8b0461..a9cd8e5 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- primes.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ primes.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -36,7 +36,7 @@ primegen pg;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uint32 digits[40];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int len;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void main(argc,argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int main(argc,argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int argc;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char **argv;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -88,5 +88,5 @@ char **argv;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ putchar('\n');
</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(0);
</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;'>+diff --git primespeed.c primespeed.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 3d16c04..294f120 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- primespeed.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ primespeed.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,3 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "timing.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "primegen.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "primegen_impl.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -89,7 +90,7 @@ timing_basic startb;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timing finish;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timing_basic finishb;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void main(argc,argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int main(argc,argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int argc;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char **argv;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -118,5 +119,5 @@ char **argv;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printf("Overall seconds: approximately %f.\n",0.000000001 * timing_basic_diff(&finishb,&startb));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printf("Tick counts may be underestimates on systems without hardware tick support.\n");
</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;'>+ }
</span></pre><pre style='margin:0'>
</pre>