Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New math package: flintqs-1.0
@ 2021-04-06  5:08 tornaria
  2021-04-07 12:54 ` dkwo
  0 siblings, 1 reply; 2+ messages in thread
From: tornaria @ 2021-04-06  5:08 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: New math package: flintqs-1.0
  2021-04-06  5:08 [PR PATCH] New math package: flintqs-1.0 tornaria
@ 2021-04-07 12:54 ` dkwo
  0 siblings, 0 replies; 2+ messages in thread
From: dkwo @ 2021-04-07 12:54 UTC (permalink / raw)
  To: ml

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

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/pull/30035#issuecomment-814889740

Comment:
Looks good to me.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-07 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06  5:08 [PR PATCH] New math package: flintqs-1.0 tornaria
2021-04-07 12:54 ` dkwo

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ http://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git