summaryrefslogtreecommitdiff
path: root/sci-libs/primegen/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/primegen/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/primegen/files')
-rw-r--r--sci-libs/primegen/files/primegen-0.97-man.patch24
-rw-r--r--sci-libs/primegen/files/primegen-0.97-missing-headers.patch46
2 files changed, 70 insertions, 0 deletions
diff --git a/sci-libs/primegen/files/primegen-0.97-man.patch b/sci-libs/primegen/files/primegen-0.97-man.patch
new file mode 100644
index 000000000000..069409f1df76
--- /dev/null
+++ b/sci-libs/primegen/files/primegen-0.97-man.patch
@@ -0,0 +1,24 @@
+Fix incorrect man page and include mention of the possibility
+of linking to a static libary only.
+https://bugs.gentoo.org/show_bug.cgi?id=562570
+
+--- primegen-0.97/primegen.3
++++ primegen-0.97/primegen.3
+@@ -14,13 +14,16 @@
+ .br
+ void \fBprimegen_skipto\fP(&\fIpg\fR,\fIbound\fR);
+
+-struct primegen \fIpg\fR;
++primegen \fIpg\fR;
+ .br
+ uint64 \fIbound\fR;
+ .SH DESCRIPTION
+ The primegen library generates prime numbers in order:
+ 2, 3, 5, 7, etc.
+ It can generate primes as large as 10^15.
++Only a static version of this library is provided, so instead of
++linking your program with -lprimegen you will have to pass the
++full path to the library (e.g. /usr/lib/primegen.a) to the compiler.
+
+ The simplest way to use primegen
+ is to call
diff --git a/sci-libs/primegen/files/primegen-0.97-missing-headers.patch b/sci-libs/primegen/files/primegen-0.97-missing-headers.patch
new file mode 100644
index 000000000000..51f1aaac3823
--- /dev/null
+++ b/sci-libs/primegen/files/primegen-0.97-missing-headers.patch
@@ -0,0 +1,46 @@
+--- primegen-0.97/eratspeed.c.orig 2009-03-27 09:16:52.000000000 -0300
++++ primegen-0.97/eratspeed.c 2009-03-27 09:18:29.000000000 -0300
+@@ -1,6 +1,8 @@
+ #define B32 1001
+ #define B (B32 * 32)
+
++#include <stdio.h>
++#include <stdlib.h>
+ #include "timing.h"
+ #include "uint32.h"
+
+--- primegen-0.97/primegaps.c.orig 2009-03-27 09:17:07.000000000 -0300
++++ primegen-0.97/primegaps.c 2009-03-27 09:17:19.000000000 -0300
+@@ -1,4 +1,5 @@
+ #include <math.h>
++#include <stdio.h>
+ #include "primegen.h"
+
+ primegen pg;
+--- primegen-0.97/primes.c.orig 2009-03-27 09:19:08.000000000 -0300
++++ primegen-0.97/primes.c 2009-03-27 09:19:14.000000000 -0300
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "primegen.h"
+ #include "fs64.h"
+
+--- primegen-0.97/primespeed.c.orig 2009-03-27 09:17:41.000000000 -0300
++++ primegen-0.97/primespeed.c 2009-03-27 09:18:54.000000000 -0300
+@@ -1,3 +1,5 @@
++#include <stdio.h>
++#include <stdlib.h>
+ #include "timing.h"
+ #include "primegen.h"
+ #include "primegen_impl.h"
+--- primegen-0.97/error.h.orig 2009-09-11 19:40:53.000000000 +0100
++++ primegen-0.97/error.h 2009-09-11 19:41:02.000000000 +0100
+@@ -1,7 +1,7 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+
+-extern int errno;
++#include <errno.h>
+
+ extern int error_intr;
+ extern int error_nomem;