Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Math packages: gf2x, ntl, flintlib, arb, eclib
Date: Tue, 10 Aug 2021 22:39:45 +0200	[thread overview]
Message-ID: <20210810203945.4TvqQuy4V5YaCmu42HruyGnY1UUwwSbEifZ0BY05oDo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30032@inbox.vuxu.org>

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

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages math2
https://github.com/void-linux/void-packages/pull/30032

Math packages: gf2x, ntl, flintlib, arb, eclib
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me

#### Notes
- This includes: `gf2x` (see also #29783), `ntl`, `flintlib`, `arb`, `eclib`.
- Everything is tested and check pass in x86_64, x86_64-musl, i686.

EDIT: split in smaller independent PR to ease review.

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

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

From 2e9bc58a10c0b45976d3cc7d88aa69743913501a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 Jan 2018 11:18:35 -0300
Subject: [PATCH 1/5] New package: gf2x-1.3.0

---
 common/options.description |  1 +
 common/shlibs              |  1 +
 srcpkgs/gf2x-devel         |  1 +
 srcpkgs/gf2x/template      | 35 +++++++++++++++++++++++++++++++++++
 srcpkgs/gf2x/update        |  1 +
 5 files changed, 39 insertions(+)
 create mode 120000 srcpkgs/gf2x-devel
 create mode 100644 srcpkgs/gf2x/template
 create mode 100644 srcpkgs/gf2x/update

diff --git a/common/options.description b/common/options.description
index 06360211a23f..46e24a140e52 100644
--- a/common/options.description
+++ b/common/options.description
@@ -49,6 +49,7 @@ desc_option_lz4="Enable support for LZ4 compression format"
 desc_option_lzo="Enable support for LZO compression format"
 desc_option_microhttpd="Enable support for microhttpd"
 desc_option_mpcdec="Enable support for the Musepack decoder"
+desc_option_native_build="Enable instruction subsets supported by the build computer"
 desc_option_notify="Enable support for desktop notifications (libnotify)"
 desc_option_nvenc="Enable support for NVENC codecs"
 desc_option_openblas="Enable support for OpenBLAS accelerated linear algebra"
diff --git a/common/shlibs b/common/shlibs
index 278d2456072f..57f5ca62c4c6 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3983,6 +3983,7 @@ libsword-1.8.1.so libsword-1.8.1_6
 libpari-gmp.so.7 pari-2.13.0_1
 libtree-sitter.so.0 tree-sitter-0.19.0_1
 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1
+libgf2x.so.3 gf2x-1.3.0_1
 libwayland-client++.so.0 libwaylandpp-0.2.8_1
 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1
 libwayland-egl++.so.0 libwaylandpp-0.2.8_1
diff --git a/srcpkgs/gf2x-devel b/srcpkgs/gf2x-devel
new file mode 120000
index 000000000000..4542295e8de7
--- /dev/null
+++ b/srcpkgs/gf2x-devel
@@ -0,0 +1 @@
+gf2x
\ No newline at end of file
diff --git a/srcpkgs/gf2x/template b/srcpkgs/gf2x/template
new file mode 100644
index 000000000000..b056ac4f87f7
--- /dev/null
+++ b/srcpkgs/gf2x/template
@@ -0,0 +1,35 @@
+# Template file for 'gf2x'
+pkgname=gf2x
+version=1.3.0
+revision=1
+wrksrc=gf2x-gf2x-${version}
+build_style=gnu-configure
+hostmakedepends="automake libtool"
+short_desc="C/C++ library for fast arithmetic in GF(2)[x]"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-3.0-or-later"
+homepage="https://gitlab.inria.fr/gf2x/gf2x"
+distfiles="https://gitlab.inria.fr/gf2x/gf2x/-/archive/gf2x-${version}/gf2x-gf2x-${version}.tar.gz"
+checksum=11bcf98b620c60c2ee3b4460b02b7be741f14cfdc26b542f22c92950926575e0
+
+build_options="native_build"
+
+if [ -z "$build_option_native_build" ]; then
+	# this disables sse3, ssse3, sse41, pclmul
+	configure_args="--disable-sse3"
+fi
+
+pre_configure() {
+	autoreconf -fi
+}
+
+gf2x-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+	}
+}
diff --git a/srcpkgs/gf2x/update b/srcpkgs/gf2x/update
new file mode 100644
index 000000000000..504503610161
--- /dev/null
+++ b/srcpkgs/gf2x/update
@@ -0,0 +1 @@
+pkgname=gf2x-gf2x

From 4a74efaccd81455f50905b91d30a7e9556cc8534 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 30 Jan 2018 11:02:38 -0300
Subject: [PATCH 2/5] New package: ntl-11.5.1

---
 common/shlibs        |  1 +
 srcpkgs/ntl-devel    |  1 +
 srcpkgs/ntl/template | 36 ++++++++++++++++++++++++++++++++++++
 srcpkgs/ntl/update   |  1 +
 4 files changed, 39 insertions(+)
 create mode 120000 srcpkgs/ntl-devel
 create mode 100644 srcpkgs/ntl/template
 create mode 100644 srcpkgs/ntl/update

diff --git a/common/shlibs b/common/shlibs
index 57f5ca62c4c6..70534cc413b2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3984,6 +3984,7 @@ libpari-gmp.so.7 pari-2.13.0_1
 libtree-sitter.so.0 tree-sitter-0.19.0_1
 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1
 libgf2x.so.3 gf2x-1.3.0_1
+libntl.so.44 ntl-11.5.1_1
 libwayland-client++.so.0 libwaylandpp-0.2.8_1
 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1
 libwayland-egl++.so.0 libwaylandpp-0.2.8_1
diff --git a/srcpkgs/ntl-devel b/srcpkgs/ntl-devel
new file mode 120000
index 000000000000..fc0a39987329
--- /dev/null
+++ b/srcpkgs/ntl-devel
@@ -0,0 +1 @@
+ntl
\ No newline at end of file
diff --git a/srcpkgs/ntl/template b/srcpkgs/ntl/template
new file mode 100644
index 000000000000..b778ba27a3b7
--- /dev/null
+++ b/srcpkgs/ntl/template
@@ -0,0 +1,36 @@
+# Template file for 'ntl'
+pkgname=ntl
+version=11.5.1
+revision=1
+build_wrksrc="src"
+build_style=configure
+hostmakedepends="perl libtool"
+makedepends="gmp-devel gf2x-devel"
+short_desc="Library for doing Number Theory"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="LGPL-2.1-or-later"
+homepage="https://libntl.org"
+distfiles="https://libntl.org/ntl-${version}.tar.gz"
+checksum=210d06c31306cbc6eaf6814453c56c776d9d8e8df36d74eb306f6a523d1c6a8a
+nocross=yes # runs binaries built for target
+
+build_options="native_build"
+
+do_configure() {
+	# see http://www.shoup.net/ntl/doc/tour-unix.html
+	./configure CXX="$CXX" CXXFLAGS="$CXXFLAGS" LIBTOOL="libtool" \
+		PREFIX="/usr" SHARED="on" NTL_GF2X_LIB="on" \
+		NATIVE="$(vopt_if native_build 'on' 'off')"
+}
+
+ntl-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	depends+=" ${makedepends}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share
+	}
+}
diff --git a/srcpkgs/ntl/update b/srcpkgs/ntl/update
new file mode 100644
index 000000000000..7ca2974b146f
--- /dev/null
+++ b/srcpkgs/ntl/update
@@ -0,0 +1 @@
+site="https://libntl.org/download.html"

From 3f756a78111d65cde35754270ea6e81bb9547381 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Fri, 2 Feb 2018 22:42:49 -0300
Subject: [PATCH 3/5] New package: flintlib-2.8.0

---
 common/shlibs             |  1 +
 srcpkgs/flintlib-devel    |  1 +
 srcpkgs/flintlib/template | 27 +++++++++++++++++++++++++++
 srcpkgs/flintlib/update   |  3 +++
 4 files changed, 32 insertions(+)
 create mode 120000 srcpkgs/flintlib-devel
 create mode 100644 srcpkgs/flintlib/template
 create mode 100644 srcpkgs/flintlib/update

diff --git a/common/shlibs b/common/shlibs
index 70534cc413b2..ce170cbdeaa8 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3985,6 +3985,7 @@ libtree-sitter.so.0 tree-sitter-0.19.0_1
 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1
 libgf2x.so.3 gf2x-1.3.0_1
 libntl.so.44 ntl-11.5.1_1
+libflint.so.16 flintlib-2.8.0_1
 libwayland-client++.so.0 libwaylandpp-0.2.8_1
 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1
 libwayland-egl++.so.0 libwaylandpp-0.2.8_1
diff --git a/srcpkgs/flintlib-devel b/srcpkgs/flintlib-devel
new file mode 120000
index 000000000000..7c2633183069
--- /dev/null
+++ b/srcpkgs/flintlib-devel
@@ -0,0 +1 @@
+flintlib
\ No newline at end of file
diff --git a/srcpkgs/flintlib/template b/srcpkgs/flintlib/template
new file mode 100644
index 000000000000..6552234c7f8f
--- /dev/null
+++ b/srcpkgs/flintlib/template
@@ -0,0 +1,27 @@
+# Template file for 'flintlib'
+pkgname=flintlib
+version=2.8.0
+revision=1
+wrksrc="flint-${version}"
+build_style=configure
+configure_args="--prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-ntl=/usr"
+makedepends="mpfr-devel ntl-devel"
+short_desc="Fast Library for Number Theory"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="LGPL-2.1-or-later"
+homepage="https://flintlib.org"
+distfiles="https://flintlib.org/flint-${version}.tar.gz"
+checksum=584235cdc39d779d9920eaef16fe084f3c26ffeeea003a3fff64a20a0f33449e
+
+CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t
+
+flintlib-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	depends+=" mpfr-devel"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}
diff --git a/srcpkgs/flintlib/update b/srcpkgs/flintlib/update
new file mode 100644
index 000000000000..21d6ab4bae5b
--- /dev/null
+++ b/srcpkgs/flintlib/update
@@ -0,0 +1,3 @@
+# package was named 'flintlib' because of another package
+pkgname=flint
+site="https://flintlib.org/downloads.html"

From b5da78696f56f81d0a6c2ee304ccf337082c6513 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Feb 2018 01:00:19 -0300
Subject: [PATCH 4/5] New package: arb-2.20.0

---
 common/shlibs        |  1 +
 srcpkgs/arb-devel    |  1 +
 srcpkgs/arb/template | 29 +++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+)
 create mode 120000 srcpkgs/arb-devel
 create mode 100644 srcpkgs/arb/template

diff --git a/common/shlibs b/common/shlibs
index ce170cbdeaa8..0b0e1fcb59ab 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3986,6 +3986,7 @@ libgtkdatabox.so.1 gtkdatabox3-1.0.0_1
 libgf2x.so.3 gf2x-1.3.0_1
 libntl.so.44 ntl-11.5.1_1
 libflint.so.16 flintlib-2.8.0_1
+libarb.so.2 arb-2.20.0_1
 libwayland-client++.so.0 libwaylandpp-0.2.8_1
 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1
 libwayland-egl++.so.0 libwaylandpp-0.2.8_1
diff --git a/srcpkgs/arb-devel b/srcpkgs/arb-devel
new file mode 120000
index 000000000000..456b9f00a86c
--- /dev/null
+++ b/srcpkgs/arb-devel
@@ -0,0 +1 @@
+arb
\ No newline at end of file
diff --git a/srcpkgs/arb/template b/srcpkgs/arb/template
new file mode 100644
index 000000000000..9a390cf4a84b
--- /dev/null
+++ b/srcpkgs/arb/template
@@ -0,0 +1,29 @@
+# Template file for 'arb'
+pkgname=arb
+version=2.20.0
+revision=1
+build_style=configure
+configure_args="--prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-flint=/usr"
+makedepends="flintlib-devel"
+short_desc="C library for arbitrary-precision interval arithmetic"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="LGPL-2.1-or-later"
+homepage="https://arblib.org"
+distfiles="https://github.com/fredrik-johansson/arb/archive/${version}.tar.gz"
+checksum=d2f186b10590c622c11d1ca190c01c3da08bac9bc04e84cb591534b917faffe7
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+	# on glibc this would give a conflict with function fdiv()
+	CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t
+fi
+
+arb-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	depends+=" ${makedepends}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}

From 02f6f569a12e7bf8012cf61aa430f4cad0ae0bd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 1 Jun 2020 14:50:01 -0300
Subject: [PATCH 5/5] New package: eclib-20210625

---
 common/shlibs          |  1 +
 srcpkgs/eclib-devel    |  1 +
 srcpkgs/eclib/template | 30 ++++++++++++++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 120000 srcpkgs/eclib-devel
 create mode 100644 srcpkgs/eclib/template

diff --git a/common/shlibs b/common/shlibs
index 0b0e1fcb59ab..edfc82fbed0b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3987,6 +3987,7 @@ libgf2x.so.3 gf2x-1.3.0_1
 libntl.so.44 ntl-11.5.1_1
 libflint.so.16 flintlib-2.8.0_1
 libarb.so.2 arb-2.20.0_1
+libec.so.8 eclib-20210625_1
 libwayland-client++.so.0 libwaylandpp-0.2.8_1
 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1
 libwayland-egl++.so.0 libwaylandpp-0.2.8_1
diff --git a/srcpkgs/eclib-devel b/srcpkgs/eclib-devel
new file mode 120000
index 000000000000..d29e610e9249
--- /dev/null
+++ b/srcpkgs/eclib-devel
@@ -0,0 +1 @@
+eclib
\ No newline at end of file
diff --git a/srcpkgs/eclib/template b/srcpkgs/eclib/template
new file mode 100644
index 000000000000..935e9c181d2d
--- /dev/null
+++ b/srcpkgs/eclib/template
@@ -0,0 +1,30 @@
+# Template file for 'eclib'
+pkgname=eclib
+version=20210625
+revision=1
+build_style=gnu-configure
+configure_args="--with-flint --with-boost"
+hostmakedepends="automake autoconf-archive libtool"
+makedepends="pari-devel ntl-devel flintlib-devel boost-devel"
+short_desc="Elliptic curve library, includes mwrank"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://github.com/JohnCremona/eclib"
+distfiles="https://github.com/JohnCremona/eclib/archive/refs/tags/${version}.tar.gz"
+checksum=00333fd36afd237c9e6e410c7ab98536ddcd7fdc430e6837fe293247b835c572
+
+pre_configure() {
+	autoreconf -fi
+}
+
+eclib-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	depends+=" ntl-devel"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+	}
+}

  parent reply	other threads:[~2021-08-10 20:39 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06  3:35 [PR PATCH] More math libraries and tools tornaria
2021-04-06  3:53 ` abenson
2021-04-06  5:05 ` Math packages: gf2x, ntl, flintlib, arb, eclib tornaria
2021-04-06  5:05 ` tornaria
2021-04-07 12:53 ` dkwo
2021-04-09  2:10 ` [PR PATCH] [Updated] " tornaria
2021-05-13 17:57 ` tornaria
2021-05-13 18:25 ` tornaria
2021-08-06 19:18 ` [PR REVIEW] " ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:18 ` ericonr
2021-08-06 19:32 ` [PR PATCH] [Updated] " tornaria
2021-08-06 19:32 ` tornaria
2021-08-06 19:36 ` [PR REVIEW] " tornaria
2021-08-06 19:44 ` ericonr
2021-08-06 19:44 ` ericonr
2021-08-06 20:02 ` tornaria
2021-08-06 20:05 ` ericonr
2021-08-06 20:05 ` ericonr
2021-08-06 20:11 ` tornaria
2021-08-06 20:48 ` [PR REVIEW] " tornaria
2021-08-06 20:48 ` tornaria
2021-08-06 20:52 ` tornaria
2021-08-06 21:00 ` tornaria
2021-08-06 21:22 ` ericonr
2021-08-06 21:24 ` ericonr
2021-08-07  0:12 ` ericonr
2021-08-08 23:04 ` tornaria
2021-08-08 23:22 ` [PR PATCH] [Updated] " tornaria
2021-08-08 23:24 ` [PR REVIEW] " tornaria
2021-08-08 23:25 ` tornaria
2021-08-08 23:25 ` tornaria
2021-08-08 23:26 ` tornaria
2021-08-08 23:30 ` [PR PATCH] [Updated] " tornaria
2021-08-08 23:30 ` [PR REVIEW] " tornaria
2021-08-08 23:33 ` tornaria
2021-08-08 23:37 ` tornaria
2021-08-09  2:33 ` [PR PATCH] [Updated] " tornaria
2021-08-09  2:40 ` tornaria
2021-08-10 18:38 ` [PR REVIEW] " ericonr
2021-08-10 18:38 ` ericonr
2021-08-10 18:38 ` ericonr
2021-08-10 18:38 ` ericonr
2021-08-10 18:38 ` ericonr
2021-08-10 18:38 ` ericonr
2021-08-10 18:38 ` ericonr
2021-08-10 20:39 ` tornaria [this message]
2021-08-10 20:46 ` [PR PATCH] [Updated] " tornaria
2021-08-10 20:48 ` tornaria
2021-08-17 21:50 ` tornaria
2021-08-18  9:26 ` dkwo
2021-08-18 14:44 ` tornaria
2021-08-18 14:57 ` dkwo
2021-08-18 16:57 ` dkwo
2021-08-18 18:48 ` [PR PATCH] [Merged]: " ericonr
2021-08-18 18:49 ` ericonr

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=20210810203945.4TvqQuy4V5YaCmu42HruyGnY1UUwwSbEifZ0BY05oDo@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).