From 19c61ac367cb0a39d7a2e56d622a7fc18dec96eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= 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 5affb5dc09fd..6ee93e48bfc9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4008,6 +4008,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..918a9f2d0d5a --- /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 " +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 424c5b7e14b67d4a523ce738764b4d33d7bd50d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= 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 6ee93e48bfc9..a35e0d24a9c2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4009,6 +4009,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..9020c6b5ce68 --- /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 " +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 fa89aee97db8aa2df40713b8ea7019437730e736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= 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 + .../0001-fix-compilation-with-musl-libc.patch | 80 +++++++++++++++++++ srcpkgs/flintlib/template | 25 ++++++ srcpkgs/flintlib/update | 3 + 5 files changed, 110 insertions(+) create mode 120000 srcpkgs/flintlib-devel create mode 100644 srcpkgs/flintlib/patches/0001-fix-compilation-with-musl-libc.patch create mode 100644 srcpkgs/flintlib/template create mode 100644 srcpkgs/flintlib/update diff --git a/common/shlibs b/common/shlibs index a35e0d24a9c2..bfd2ead4bcb9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4010,6 +4010,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/patches/0001-fix-compilation-with-musl-libc.patch b/srcpkgs/flintlib/patches/0001-fix-compilation-with-musl-libc.patch new file mode 100644 index 000000000000..646af0ce43d9 --- /dev/null +++ b/srcpkgs/flintlib/patches/0001-fix-compilation-with-musl-libc.patch @@ -0,0 +1,80 @@ +From 2a5b3f8bda5a50cb8a17db0c65fba489d1bf7c71 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= +Date: Fri, 6 Aug 2021 23:57:10 -0300 +Subject: [PATCH] fix compilation with musl libc + +Reported upstream at https://github.com/wbhart/flint2/pull/988 + +--- + fmpz.h | 3 +++ + fmpz_mod_poly_factor/factor_distinct_deg_threaded.c | 1 + + fmpz_poly/taylor_shift_divconquer.c | 1 + + fmpz_poly/taylor_shift_multi_mod_threaded.c | 1 + + nmod_poly_factor/factor_distinct_deg_threaded.c | 1 + + 5 files changed, 7 insertions(+) + +diff --git a/fmpz.h b/fmpz.h +index bb9aa71c9..a091e082e 100644 +--- a/fmpz.h ++++ b/fmpz.h +@@ -32,6 +32,9 @@ + #include "fmpz-conversions.h" + + #if FLINT_USES_PTHREAD ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif + #include + #endif + +diff --git a/fmpz_mod_poly_factor/factor_distinct_deg_threaded.c b/fmpz_mod_poly_factor/factor_distinct_deg_threaded.c +index 7a0f8cd6d..48ae530e6 100644 +--- a/fmpz_mod_poly_factor/factor_distinct_deg_threaded.c ++++ b/fmpz_mod_poly_factor/factor_distinct_deg_threaded.c +@@ -15,6 +15,7 @@ + #define ulong ulongxx/* interferes with system includes */ + + #include ++#define _GNU_SOURCE + #include + + #undef ulong +diff --git a/fmpz_poly/taylor_shift_divconquer.c b/fmpz_poly/taylor_shift_divconquer.c +index 9c1397f3e..608c64a96 100644 +--- a/fmpz_poly/taylor_shift_divconquer.c ++++ b/fmpz_poly/taylor_shift_divconquer.c +@@ -11,6 +11,7 @@ + */ + + #include ++#define _GNU_SOURCE + #include + #include + #include "flint.h" +diff --git a/fmpz_poly/taylor_shift_multi_mod_threaded.c b/fmpz_poly/taylor_shift_multi_mod_threaded.c +index 87bbe251d..b54886655 100644 +--- a/fmpz_poly/taylor_shift_multi_mod_threaded.c ++++ b/fmpz_poly/taylor_shift_multi_mod_threaded.c +@@ -10,6 +10,7 @@ + (at your option) any later version. See . + */ + ++#define _GNU_SOURCE + #include + #include + #include "flint.h" +diff --git a/nmod_poly_factor/factor_distinct_deg_threaded.c b/nmod_poly_factor/factor_distinct_deg_threaded.c +index 272dd871f..b43765fe4 100644 +--- a/nmod_poly_factor/factor_distinct_deg_threaded.c ++++ b/nmod_poly_factor/factor_distinct_deg_threaded.c +@@ -15,6 +15,7 @@ + #define ulong ulongxx/* interferes with system includes */ + + #include ++#define _GNU_SOURCE + #include + + #undef ulong +-- +2.32.0 + diff --git a/srcpkgs/flintlib/template b/srcpkgs/flintlib/template new file mode 100644 index 000000000000..c8cfca9b7a59 --- /dev/null +++ b/srcpkgs/flintlib/template @@ -0,0 +1,25 @@ +# 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 " +license="LGPL-2.1-or-later" +homepage="https://flintlib.org" +distfiles="https://flintlib.org/flint-${version}.tar.gz" +checksum=584235cdc39d779d9920eaef16fe084f3c26ffeeea003a3fff64a20a0f33449e + +flintlib-devel_package() { + depends="flintlib>=${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 2f3225ab0fd7c7d334db7cde04a88c250bfffba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= 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 + .../0001-fix-compilation-with-musl-libc.patch | 43 +++++++++++++++++++ srcpkgs/arb/template | 24 +++++++++++ 4 files changed, 69 insertions(+) create mode 120000 srcpkgs/arb-devel create mode 100644 srcpkgs/arb/patches/0001-fix-compilation-with-musl-libc.patch create mode 100644 srcpkgs/arb/template diff --git a/common/shlibs b/common/shlibs index bfd2ead4bcb9..43c81b9afab8 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4011,6 +4011,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/patches/0001-fix-compilation-with-musl-libc.patch b/srcpkgs/arb/patches/0001-fix-compilation-with-musl-libc.patch new file mode 100644 index 000000000000..b6f4c5d86ee0 --- /dev/null +++ b/srcpkgs/arb/patches/0001-fix-compilation-with-musl-libc.patch @@ -0,0 +1,43 @@ +From 65a570aad78d30539cb2cc7facd30cc676334da0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= +Date: Sat, 7 Aug 2021 00:25:49 -0300 +Subject: [PATCH] fix compilation with musl libc + +Reported upstream at https://github.com/fredrik-johansson/arb/pull/376 + +--- + acb_poly/powsum_series_naive_threaded.c | 2 +- + partitions/fmpz_fmpz.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/acb_poly/powsum_series_naive_threaded.c b/acb_poly/powsum_series_naive_threaded.c +index b665c3cb..acf5f401 100644 +--- a/acb_poly/powsum_series_naive_threaded.c ++++ b/acb_poly/powsum_series_naive_threaded.c +@@ -9,8 +9,8 @@ + (at your option) any later version. See . + */ + +-#include + #include "acb_poly.h" ++#include + + typedef struct + { +diff --git a/partitions/fmpz_fmpz.c b/partitions/fmpz_fmpz.c +index 3b63489d..f3913f6b 100644 +--- a/partitions/fmpz_fmpz.c ++++ b/partitions/fmpz_fmpz.c +@@ -9,8 +9,8 @@ + (at your option) any later version. See . + */ + +-#include + #include "partitions.h" ++#include + + /* defined in flint*/ + #define NUMBER_OF_SMALL_PARTITIONS 128 +-- +2.32.0 + diff --git a/srcpkgs/arb/template b/srcpkgs/arb/template new file mode 100644 index 000000000000..0b1f333b3909 --- /dev/null +++ b/srcpkgs/arb/template @@ -0,0 +1,24 @@ +# 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 " +license="LGPL-2.1-or-later" +homepage="https://arblib.org" +distfiles="https://github.com/fredrik-johansson/arb/archive/${version}.tar.gz" +checksum=d2f186b10590c622c11d1ca190c01c3da08bac9bc04e84cb591534b917faffe7 + +arb-devel_package() { + depends="arb>=${version}_${revision}" + depends+=" ${makedepends}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + } +} From 79b992b5a972401a6a91e576ab001e5f09037a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= 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 43c81b9afab8..6ea8387496c2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4012,6 +4012,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..4f36a16287b5 --- /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 " +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="eclib>=${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 + } +}