Github messages for voidlinux
 help / color / mirror / Atom feed
From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] flintlib: patch to fix test
Date: Wed, 15 Feb 2023 00:21:25 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42271@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

There is a new pull request by dkwo against master on the void-packages repository

https://github.com/dkwo/void-packages flint
https://github.com/void-linux/void-packages/pull/42271

flintlib: patch to fix test
@tornaria 

A patch file from https://github.com/void-linux/void-packages/pull/42271.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flint-42271.patch --]
[-- Type: text/x-diff, Size: 1920 bytes --]

From a6285cf04a6bf3c35c17a5a8862da5d99d009ced Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Tue, 14 Feb 2023 18:19:36 -0500
Subject: [PATCH] flintlib: patch to fix test

---
 .../patches/fix-test-t-sdiv_qrnnd.patch       | 23 +++++++++++++++++++
 srcpkgs/flintlib/template                     |  2 +-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/flintlib/patches/fix-test-t-sdiv_qrnnd.patch

diff --git a/srcpkgs/flintlib/patches/fix-test-t-sdiv_qrnnd.patch b/srcpkgs/flintlib/patches/fix-test-t-sdiv_qrnnd.patch
new file mode 100644
index 000000000000..cfa109792892
--- /dev/null
+++ b/srcpkgs/flintlib/patches/fix-test-t-sdiv_qrnnd.patch
@@ -0,0 +1,23 @@
+From fb8ddbcc06afa2a8f25637032fbb8211f6c6c122 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Albin=20Ahlb=C3=A4ck?= <albin.ahlback@gmail.com>
+Date: Fri, 20 May 2022 14:16:38 +0200
+Subject: [PATCH] Fix bug in test code for GCC 12
+
+---
+ test/t-sdiv_qrnnd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/t-sdiv_qrnnd.c b/test/t-sdiv_qrnnd.c
+index 2e9822e848..2676903826 100644
+--- a/test/t-sdiv_qrnnd.c
++++ b/test/t-sdiv_qrnnd.c
+@@ -33,7 +33,7 @@ int main(void)
+         {
+             d = n_randtest_not_zero(state);
+             nh = n_randtest(state);
+-        } while ((FLINT_ABS(nh) >= FLINT_ABS(d)/2) || (nh == WORD_MIN));
++        } while ((nh == WORD_MIN) || (FLINT_ABS(nh) >= FLINT_ABS(d)/2));
+ 
+         nl = n_randtest(state);
+ 
+
diff --git a/srcpkgs/flintlib/template b/srcpkgs/flintlib/template
index f7442c8052aa..a878d0f731ec 100644
--- a/srcpkgs/flintlib/template
+++ b/srcpkgs/flintlib/template
@@ -1,7 +1,7 @@
 # Template file for 'flintlib'
 pkgname=flintlib
 version=2.9.0
-revision=1
+revision=2
 build_style=configure
 configure_args="--prefix=/usr $(vopt_with ntl)
  $(vopt_if openblas --with-blas=${XBPS_CROSS_BASE}/usr/include/openblas)"

             reply	other threads:[~2023-02-14 23:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-14 23:21 dkwo [this message]
2023-02-15 14:47 ` tornaria
2023-02-15 15:11 ` [PR PATCH] [Updated] " dkwo
2023-02-15 15:12 ` dkwo
2023-02-15 19:29 ` [PR PATCH] [Merged]: " leahneukirchen

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42271@inbox.vuxu.org \
    --to=dkwo@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).