* [PR PATCH] New packages: primesieve-7.7, primecount-7.2
@ 2021-12-13 20:15 tornaria
2021-12-21 13:05 ` tornaria
2021-12-21 13:16 ` [PR PATCH] [Merged]: " leahneukirchen
0 siblings, 2 replies; 3+ messages in thread
From: tornaria @ 2021-12-13 20:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
There is a new pull request by tornaria against master on the void-packages repository
https://github.com/tornaria/void-packages primecount
https://github.com/void-linux/void-packages/pull/34516
New packages: primesieve-7.7, primecount-7.2
Dependencies for sagemath-9.5
#### Testing the changes
- I tested the changes in this PR: **YES**
A patch file from https://github.com/void-linux/void-packages/pull/34516.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-primecount-34516.patch --]
[-- Type: text/x-diff, Size: 4563 bytes --]
From cc0ad6d66732fcbc1d3c1955b576e1403229ab21 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 13 Dec 2021 15:40:18 -0300
Subject: [PATCH 1/2] New package: primesieve-7.7
---
common/shlibs | 1 +
srcpkgs/primesieve-devel | 1 +
srcpkgs/primesieve/template | 31 +++++++++++++++++++++++++++++++
3 files changed, 33 insertions(+)
create mode 120000 srcpkgs/primesieve-devel
create mode 100644 srcpkgs/primesieve/template
diff --git a/common/shlibs b/common/shlibs
index 2c0536f1550a..c13fbd594785 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4052,6 +4052,7 @@ libqrtr-glib.so.0 libqrtr-glib-1.0.0_1
libbraiding.so.0 libbraiding-1.1_1
libstemmer.so.2 libstemmer-2.1.0_1
libdecor-0.so.0 libdecor-0.1.0_1
+libprimesieve.so.9 primesieve-7.7_1
libavif.so.13 libavif-0.9.3_1
libkdumpfile.so.9 libkdumpfile-0.4.1_1
libamd.so.2 SuiteSparse-5.10.1_1
diff --git a/srcpkgs/primesieve-devel b/srcpkgs/primesieve-devel
new file mode 120000
index 000000000000..f4ffe288e787
--- /dev/null
+++ b/srcpkgs/primesieve-devel
@@ -0,0 +1 @@
+primesieve
\ No newline at end of file
diff --git a/srcpkgs/primesieve/template b/srcpkgs/primesieve/template
new file mode 100644
index 000000000000..d023f7f1e884
--- /dev/null
+++ b/srcpkgs/primesieve/template
@@ -0,0 +1,31 @@
+# Template file for 'primesieve'
+pkgname=primesieve
+version=7.7
+revision=1
+build_style=cmake
+configure_args="-DBUILD_TESTS=ON -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF"
+short_desc="Fast prime number generator"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="BSD-2-Clause"
+homepage="https://github.com/kimwalisch/primesieve"
+distfiles="https://github.com/kimwalisch/primesieve/archive/refs/tags/v${version}.tar.gz"
+checksum=fcb3f25e68081c54e5d560d6d1f6448d384a7051e9c56d56ee0d65d6d7954db1
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+fi
+
+post_install() {
+ vlicense COPYING
+}
+
+primesieve-devel_package() {
+ depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/cmake
+ vmove usr/lib/pkgconfig
+ vmove "usr/lib/*.so"
+ }
+}
From ce824c0729ec1912df04260601d16e7abcb21560 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 13 Dec 2021 17:08:11 -0300
Subject: [PATCH 2/2] New package: primecount-7.2
---
common/shlibs | 1 +
srcpkgs/primecount-devel | 1 +
srcpkgs/primecount/template | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 36 insertions(+)
create mode 120000 srcpkgs/primecount-devel
create mode 100644 srcpkgs/primecount/template
diff --git a/common/shlibs b/common/shlibs
index c13fbd594785..59c8695277f0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4052,6 +4052,7 @@ libqrtr-glib.so.0 libqrtr-glib-1.0.0_1
libbraiding.so.0 libbraiding-1.1_1
libstemmer.so.2 libstemmer-2.1.0_1
libdecor-0.so.0 libdecor-0.1.0_1
+libprimecount.so.7 primecount-7.2_1
libprimesieve.so.9 primesieve-7.7_1
libavif.so.13 libavif-0.9.3_1
libkdumpfile.so.9 libkdumpfile-0.4.1_1
diff --git a/srcpkgs/primecount-devel b/srcpkgs/primecount-devel
new file mode 120000
index 000000000000..f5356598687b
--- /dev/null
+++ b/srcpkgs/primecount-devel
@@ -0,0 +1 @@
+primecount
\ No newline at end of file
diff --git a/srcpkgs/primecount/template b/srcpkgs/primecount/template
new file mode 100644
index 000000000000..09a43b602f19
--- /dev/null
+++ b/srcpkgs/primecount/template
@@ -0,0 +1,34 @@
+# Template file for 'primecount'
+pkgname=primecount
+version=7.2
+revision=1
+build_style=cmake
+configure_args="-DBUILD_TESTS=ON -DBUILD_LIBPRIMESIEVE=OFF
+ -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF"
+makedepends="primesieve-devel libgomp-devel"
+short_desc="Fast prime counting function"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="BSD-2-Clause"
+homepage="https://github.com/kimwalisch/primecount/"
+distfiles="https://github.com/kimwalisch/primecount/archive/refs/tags/v${version}.tar.gz"
+checksum=54c1eec33e665a780002dda20cf39ba0cefa8e846fdeda44734fb2265cba9257
+
+build_options="native_build"
+
+if [ -z "$build_option_native_build" ]; then
+ configure_args+=" -DWITH_POPCNT=OFF"
+fi
+
+post_install() {
+ vlicense COPYING
+}
+
+primecount-devel_package() {
+ depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove "usr/lib/*.so"
+ }
+}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: New packages: primesieve-7.7, primecount-7.2
2021-12-13 20:15 [PR PATCH] New packages: primesieve-7.7, primecount-7.2 tornaria
@ 2021-12-21 13:05 ` tornaria
2021-12-21 13:16 ` [PR PATCH] [Merged]: " leahneukirchen
1 sibling, 0 replies; 3+ messages in thread
From: tornaria @ 2021-12-21 13:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 668 bytes --]
New comment by tornaria on void-packages repository
https://github.com/void-linux/void-packages/pull/34516#issuecomment-998762725
Comment:
@leahneukirchen simple packages, needed for sagemath, but they just work on their own and are fast:
```
$ time primesieve $((10**10))
Sieve size = 128 KiB
Threads = 8
100%
Seconds: 0.296
Primes: 455052511
real 0m0.298s
user 0m1.925s
sys 0m0.005s
$ time primecount $((10**10))
455052511
real 0m0.004s
user 0m0.005s
sys 0m0.001s
$ time primecount $((10**16))
279238341033925
real 0m1.236s
user 0m8.368s
sys 0m0.022s
```
Note: primesieve actually finds all primes, primecount just computes the number.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Merged]: New packages: primesieve-7.7, primecount-7.2
2021-12-13 20:15 [PR PATCH] New packages: primesieve-7.7, primecount-7.2 tornaria
2021-12-21 13:05 ` tornaria
@ 2021-12-21 13:16 ` leahneukirchen
1 sibling, 0 replies; 3+ messages in thread
From: leahneukirchen @ 2021-12-21 13:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
There's a merged pull request on the void-packages repository
New packages: primesieve-7.7, primecount-7.2
https://github.com/void-linux/void-packages/pull/34516
Description:
Dependencies for sagemath-9.5
#### Testing the changes
- I tested the changes in this PR: **YES**
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-21 13:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 20:15 [PR PATCH] New packages: primesieve-7.7, primecount-7.2 tornaria
2021-12-21 13:05 ` tornaria
2021-12-21 13:16 ` [PR PATCH] [Merged]: " leahneukirchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).