From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] primecount: update to 7.7.
Date: Tue, 28 Mar 2023 15:34:52 +0200 [thread overview]
Message-ID: <20230328133452._OWfDfE2WIWsWB-FC_olYeLKx7iIk8VkwIOdoZ42JP0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43040@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2209 bytes --]
There is an updated 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/43040
primecount: update to 7.7.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
This is a very minor update to fix the following:
```
$ python -c 'from primecountpy.primecount import prime_pi ; print(prime_pi(-1))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "primecountpy/primecount.pyx", line 25, in primecountpy.primecount.prime_pi
File "primecountpy/primecount.pyx", line 47, in primecountpy.primecount.prime_pi
cysignals.signals.SignalError: Bus error
```
After the update
```
$ python -c 'from primecountpy.primecount import prime_pi ; print(prime_pi(-1))'
0
```
We can now sleep in the comfort that such an important calculation can be done in void linux with success.
As expected, other values of `π(x)` are still ok and quick:
```
$ python -c 'from primecountpy.primecount import prime_pi ; print(prime_pi(1_000_000_000_000))'
37607912018
$ python -c 'from primecountpy.primecount import prime_pi ; print(prime_pi(1_000_000_000_000_000))'
29844570422669
```
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/43040.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-primecount-43040.patch --]
[-- Type: text/x-diff, Size: 1133 bytes --]
From 14555f1ca0eed7720378ba7c2d7107e059868ff0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 26 Mar 2023 20:02:30 -0300
Subject: [PATCH] primecount: update to 7.8.
---
srcpkgs/primecount/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/primecount/template b/srcpkgs/primecount/template
index edb32b61d1c9..4f698b1e2169 100644
--- a/srcpkgs/primecount/template
+++ b/srcpkgs/primecount/template
@@ -1,6 +1,6 @@
# Template file for 'primecount'
pkgname=primecount
-version=7.6
+version=7.8
revision=1
build_style=cmake
configure_args="-DBUILD_TESTS=ON -DBUILD_LIBPRIMESIEVE=OFF
@@ -12,7 +12,7 @@ license="BSD-2-Clause"
homepage="https://github.com/kimwalisch/primecount/"
changelog="https://raw.githubusercontent.com/kimwalisch/primecount/master/ChangeLog"
distfiles="https://github.com/kimwalisch/primecount/archive/refs/tags/v${version}.tar.gz"
-checksum=e9a1fa2c41b9a7b84f2bead21b53cc9f7e2a5a0a34ddd818431a4e789aa44230
+checksum=7588b241cd268f4cc6c836135088a143ca65c181278ee0ba3b3309ac055d5ae8
build_options="native_build"
next prev parent reply other threads:[~2023-03-28 13:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-26 23:14 [PR PATCH] " tornaria
2023-03-27 22:28 ` classabbyamp
2023-03-28 13:34 ` tornaria [this message]
2023-03-28 14:41 ` primecount: update to 7.8 tornaria
2023-03-28 15:30 ` [PR PATCH] [Merged]: " classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230328133452._OWfDfE2WIWsWB-FC_olYeLKx7iIk8VkwIOdoZ42JP0@z \
--to=tornaria@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).