[-- 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 +}
[-- 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.
[-- Attachment #1: Type: text/plain, Size: 384 bytes --] There is an updated 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: 1722 bytes --] From 4f3013cc66017316f0b2f75ba6b1613ec7541755 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 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 srcpkgs/FlintQS/template diff --git a/srcpkgs/FlintQS/template b/srcpkgs/FlintQS/template new file mode 100644 index 000000000000..daa9fc3bd00a --- /dev/null +++ b/srcpkgs/FlintQS/template @@ -0,0 +1,40 @@ +# Template file for 'flintqs' +pkgname=FlintQS +version=1.0 +revision=1 +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 +}
[-- Attachment #1: Type: text/plain, Size: 384 bytes --] There is an updated 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: 1722 bytes --] From d516e47b81fba12685bf8ddf8b67e88cd9340a9f 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 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 srcpkgs/FlintQS/template diff --git a/srcpkgs/FlintQS/template b/srcpkgs/FlintQS/template new file mode 100644 index 000000000000..37ecad28b441 --- /dev/null +++ b/srcpkgs/FlintQS/template @@ -0,0 +1,40 @@ +# Template file for 'FlintQS' +pkgname=FlintQS +version=1.0 +revision=1 +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 +}
[-- Attachment #1: Type: text/plain, Size: 210 bytes --] New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/30035#issuecomment-901543102 Comment: @ericonr: rebased with only style changes. Tested with sage-9.4.rc2.
[-- Attachment #1: Type: text/plain, Size: 221 bytes --] There's a merged pull request on the void-packages repository New math package: flintqs-1.0 https://github.com/void-linux/void-packages/pull/30035 Description: Multi-polynomial quadratic sieve for integer factorization