Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New math package: flintqs-1.0
Date: Tue, 06 Apr 2021 07:08:35 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30035@inbox.vuxu.org> (raw)

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

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

https://github.com/tornaria/void-packages math-flintqs
https://github.com/void-linux/void-packages/pull/30035

New math package: flintqs-1.0
Multi-polynomial quadratic sieve for integer factorization

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

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

From 4ca4609024527e2e16bfeedc33a59ad6f76c524b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 1 Jun 2020 22:51:44 -0300
Subject: [PATCH] New package: flintqs-1.0

---
 srcpkgs/flintqs/template | 41 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 srcpkgs/flintqs/template

diff --git a/srcpkgs/flintqs/template b/srcpkgs/flintqs/template
new file mode 100644
index 000000000000..0f4e7a7fd74d
--- /dev/null
+++ b/srcpkgs/flintqs/template
@@ -0,0 +1,41 @@
+# Template file for 'flintqs'
+pkgname=flintqs
+version=1.0
+revision=1
+wrksrc="FlintQS-${version}"
+build_style="gnu-configure"
+hostmakedepends="automake"
+makedepends="gmp-devel"
+checkdepends="bc"
+short_desc="Multi-polynomial quadratic sieve for integer factorization"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://github.com/sagemath/FlintQS"
+distfiles="https://github.com/sagemath/FlintQS/archive/v${version}.tar.gz"
+checksum=b983052f267988192c9ec59c9d2754470e5f2db74b45e364cf7ad62f349bc9eb
+
+pre_configure() {
+	touch ChangeLog
+	autoreconf -fi
+}
+
+_check_factor() {
+	echo -n "Factor $1 ... "
+	factors=$(echo "$1" | src/QuadraticSieve | awk 'x{print}/FACTORS:/{x=1}' | sort -u)
+	echo -n $factors | sed -e 's/ / * /'
+	prod=$(echo $factors | sed -e 's/ /*/' | bc)
+	if [ "$prod" == "$1" ] ; then
+		echo " - OK"
+		return 0
+	else
+		echo " - FAIL"
+		return 1
+	fi
+}
+
+do_check() {
+	# check that it can factor
+	_check_factor 7115311179635024735652627015068546182713648318529
+	_check_factor 55100662978045942257527719411373552579109062399339
+	_check_factor 179926028483627295233062780598576300117675953698228811539221
+}

             reply	other threads:[~2021-04-06  5:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06  5:08 tornaria [this message]
2021-04-07 12:54 ` dkwo
2021-08-18 22:10 ` [PR PATCH] [Updated] " tornaria
2021-08-18 22:52 ` tornaria
2021-08-19  1:42 ` tornaria
2021-11-08 15:25 ` [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-30035@inbox.vuxu.org \
    --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).