From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Several math libraries
Date: Tue, 06 Apr 2021 06:57:13 +0200 [thread overview]
Message-ID: <20210406045713.BL9jmtojRLnCb3j_8S3adKAukek0kdtd94cx_R09hpM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29997@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]
There is an updated pull request by tornaria against master on the void-packages repository
https://github.com/tornaria/void-packages math1
https://github.com/void-linux/void-packages/pull/29997
Several math libraries
<!-- 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: `givaro`, `fflas-ffpack`, `linbox`, `gf2x` (see also #29783), `ntl`, `flintlib`, `arb`, one commit each.
- Everything is tested and check pass in x86_64, x86_64-musl, i686.
- Except `gf2x`, everything is nocross.
- I tried to make sure everything works with baseline x86_64 as defined [here](https://en.wikipedia.org/wiki/X86-64#Microarchitecture_Levels), essentially it means SSE2 is ok, but SSE3 is not.
- I added a general option `native`, which defaults to off. When turned on, it will let the libraries compile for the build machine which often results in significant improvements.
I will have a few more coming, but it takes a real effort to turn a works-for-me template into a portable one.
A patch file from https://github.com/void-linux/void-packages/pull/29997.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-math1-29997.patch --]
[-- Type: text/x-diff, Size: 7345 bytes --]
From 22744296d015ae018a683a74206dbba06a8b992c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 9 Jan 2018 23:00:22 -0300
Subject: [PATCH 1/3] New package: givaro-4.1.1
---
common/options.description | 1 +
common/shlibs | 1 +
srcpkgs/givaro-devel | 1 +
srcpkgs/givaro/template | 38 ++++++++++++++++++++++++++++++++++++++
4 files changed, 41 insertions(+)
create mode 120000 srcpkgs/givaro-devel
create mode 100644 srcpkgs/givaro/template
diff --git a/common/options.description b/common/options.description
index 06360211a23f..40f5074e63cf 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="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 9aa0a601250b..02175ed0b76a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3956,6 +3956,7 @@ libopenaptx.so.0 libopenaptx-0.2.0_1
libsimavr.so.1 simavr-1.6_2
libsimavrparts.so.1 simavr-1.6_2
libsword-1.8.1.so libsword-1.8.1_6
+libgivaro.so.9 givaro-4.1.1_1
libpari-gmp.so.7 pari-2.13.0_1
libtree-sitter.so.0 tree-sitter-0.19.0_1
libwayland-client++.so.0 libwaylandpp-0.2.8_1
diff --git a/srcpkgs/givaro-devel b/srcpkgs/givaro-devel
new file mode 120000
index 000000000000..587339b2c069
--- /dev/null
+++ b/srcpkgs/givaro-devel
@@ -0,0 +1 @@
+givaro
\ No newline at end of file
diff --git a/srcpkgs/givaro/template b/srcpkgs/givaro/template
new file mode 100644
index 000000000000..15b307ca117a
--- /dev/null
+++ b/srcpkgs/givaro/template
@@ -0,0 +1,38 @@
+# Template file for 'givaro'
+pkgname=givaro
+version=4.1.1
+revision=1
+build_style="gnu-configure"
+makedepends="gmpxx-devel"
+short_desc="C++ library for arithmetic and algebraic computations"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="CECILL-B"
+homepage="https://github.com/linbox-team/givaro"
+distfiles="https://github.com/linbox-team/givaro/releases/download/v${version}/givaro-${version}.tar.gz"
+checksum=628049899386e91da245aee6cd446350fbca87e94863bc0d815066c08150487f
+nocross=yes
+
+build_options="native"
+
+if [ ! "$build_option_native" ]; then
+ configure_args="--enable-sse --enable-sse2
+ --disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42
+ --disable-avx --disable-avx2 --disable-fma --disable-fma4"
+fi
+
+post_install() {
+ vlicense "Licence_CeCILL-B_V1-en.txt"
+}
+
+givaro-devel_package() {
+ depends="givaro-${version}_${revision}"
+ depends+=" gmpxx-devel"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove "usr/include"
+ vmove "usr/lib/*.a"
+ vmove "usr/lib/*.so"
+ vmove "usr/lib/pkgconfig"
+ vmove "usr/bin"
+ }
+}
From fbfd2e6b7ddc50b8b92503c795dfe45cc4a3eb9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 9 Jan 2018 23:39:59 -0300
Subject: [PATCH 2/3] New package: fflas-ffpack-2.4.3
---
srcpkgs/fflas-ffpack/template | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 srcpkgs/fflas-ffpack/template
diff --git a/srcpkgs/fflas-ffpack/template b/srcpkgs/fflas-ffpack/template
new file mode 100644
index 000000000000..ff2410ea0e90
--- /dev/null
+++ b/srcpkgs/fflas-ffpack/template
@@ -0,0 +1,25 @@
+# Template file for 'fflas-ffpack'
+pkgname=fflas-ffpack
+version=2.4.3
+revision=1
+wrksrc="fflas_ffpack-${version}"
+build_style="gnu-configure"
+hostmakedepends="pkg-config"
+makedepends="givaro-devel openblas-devel"
+depends="givaro-devel openblas-devel"
+short_desc="Finite Field Linear Algebra Subroutines / Package"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="LGPL-2.1-or-later"
+homepage="http://linbox-team.github.io/fflas-ffpack/"
+distfiles="https://github.com/linbox-team/fflas-ffpack/releases/download/v${version}/fflas_ffpack-${version}.tar.bz2"
+checksum=d4ecfc6289c7077185ed5e58fa77d07fdb034c1a74385366566226a4887c50c3
+nocross=yes
+
+build_options="native"
+
+if [ ! "$build_option_native" ]; then
+ configure_args="--enable-sse --enable-sse2
+ --disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42
+ --disable-avx --disable-avx2 --disable-fma --disable-fma4
+ --disable-avx512f --disable-avx512dq --disable-avx512vl"
+fi
From 8c93208c8989b98b29dafac6e5ee868b96e38bda Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Wed, 10 Jan 2018 00:14:35 -0300
Subject: [PATCH 3/3] New package: linbox-1.6.3
---
common/shlibs | 1 +
srcpkgs/linbox-devel | 1 +
srcpkgs/linbox/template | 46 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+)
create mode 120000 srcpkgs/linbox-devel
create mode 100644 srcpkgs/linbox/template
diff --git a/common/shlibs b/common/shlibs
index 02175ed0b76a..559cbd305c71 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3957,6 +3957,7 @@ libsimavr.so.1 simavr-1.6_2
libsimavrparts.so.1 simavr-1.6_2
libsword-1.8.1.so libsword-1.8.1_6
libgivaro.so.9 givaro-4.1.1_1
+liblinbox.so.0 linbox-1.6.3_1
libpari-gmp.so.7 pari-2.13.0_1
libtree-sitter.so.0 tree-sitter-0.19.0_1
libwayland-client++.so.0 libwaylandpp-0.2.8_1
diff --git a/srcpkgs/linbox-devel b/srcpkgs/linbox-devel
new file mode 120000
index 000000000000..4b90ac79c1e7
--- /dev/null
+++ b/srcpkgs/linbox-devel
@@ -0,0 +1 @@
+linbox
\ No newline at end of file
diff --git a/srcpkgs/linbox/template b/srcpkgs/linbox/template
new file mode 100644
index 000000000000..fd582a435276
--- /dev/null
+++ b/srcpkgs/linbox/template
@@ -0,0 +1,46 @@
+# Template file for 'linbox'
+pkgname=linbox
+version=1.6.3
+revision=1
+build_style="gnu-configure"
+hostmakedepends="pkg-config"
+makedepends="fflas-ffpack"
+short_desc="C++ library for exact, high-performance linear algebra"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="LGPL-2.1-or-later"
+homepage="https://linalg.org"
+distfiles="https://github.com/linbox-team/linbox/releases/download/v${version}/linbox-${version}.tar.gz"
+checksum=a58a188307b07c57964e844bceb99321d3043a8a4a1fccc082a54928bb9a0057
+nocross=yes
+
+build_options="native"
+
+if [ ! "$build_option_native" ]; then
+ configure_args="--enable-sse --enable-sse2
+ --disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42
+ --disable-avx --disable-avx2 --disable-fma --disable-fma4"
+fi
+
+pre_check() {
+ if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
+ # skip test that doesn't compile on i686
+ # see https://github.com/linbox-team/linbox/issues/273
+ touch tests/test-qlup.o
+ echo 'exit 77' > tests/test-qlup
+ chmod +x tests/test-qlup
+ fi
+}
+
+linbox-devel_package() {
+ depends="linbox-${version}_${revision}"
+ depends+=" fflas-ffpack"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove "usr/include"
+ vmove "usr/lib/*.a"
+ vmove "usr/lib/*.so"
+ vmove "usr/lib/pkgconfig"
+ vmove "usr/bin"
+ vmove "usr/share"
+ }
+}
next prev parent reply other threads:[~2021-04-06 4:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-04 15:18 [PR PATCH] " tornaria
2021-04-04 17:41 ` dkwo
2021-04-04 23:33 ` [PR PATCH] [Updated] " tornaria
2021-04-04 23:36 ` tornaria
2021-04-06 4:57 ` tornaria [this message]
2021-04-07 12:52 ` Math packages: givaro, fflas-ffpack, linbox dkwo
2021-04-07 17:24 ` [PR REVIEW] " Chocimier
2021-04-07 17:43 ` ericonr
2021-04-07 17:45 ` Chocimier
2021-04-07 17:54 ` tornaria
2021-04-07 17:55 ` tornaria
2021-08-19 7:56 ` dkwo
2021-08-19 14:01 ` [PR PATCH] [Updated] " tornaria
2021-08-19 15:04 ` tornaria
2021-09-17 13:42 ` [PR PATCH] [Updated] " tornaria
2021-09-17 14:07 ` tornaria
2021-09-17 15:30 ` tornaria
2021-09-17 15:33 ` tornaria
2021-09-17 21:23 ` tornaria
2021-10-29 15:17 ` dkwo
2021-10-30 19:25 ` [PR PATCH] [Merged]: " 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=20210406045713.BL9jmtojRLnCb3j_8S3adKAukek0kdtd94cx_R09hpM@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).