summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-02-18 19:56:16 +0100
committerDavid Seifert <soap@gentoo.org>2021-02-18 19:56:16 +0100
commita4843cc366f338d9cd3ca518c4ae24a24a3dc123 (patch)
treeef23c8b5b1c92733bf3a7efbd882188289f9a300 /sci-libs/m4ri
parentsci-libs/linux-gpib-modules: Remove old (diff)
downloadgentoo-a4843cc366f338d9cd3ca518c4ae24a24a3dc123.tar.gz
gentoo-a4843cc366f338d9cd3ca518c4ae24a24a3dc123.tar.bz2
gentoo-a4843cc366f338d9cd3ca518c4ae24a24a3dc123.zip
sci-libs/m4ri: Remove old
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-libs/m4ri')
-rw-r--r--sci-libs/m4ri/Manifest1
-rw-r--r--sci-libs/m4ri/files/m4ri-20200115-libm_underlinking.patch76
-rw-r--r--sci-libs/m4ri/files/m4ri-20200115-memory_violation.patch87
-rw-r--r--sci-libs/m4ri/m4ri-20200115.ebuild57
4 files changed, 0 insertions, 221 deletions
diff --git a/sci-libs/m4ri/Manifest b/sci-libs/m4ri/Manifest
index 01691d598875..1b77571fb2a6 100644
--- a/sci-libs/m4ri/Manifest
+++ b/sci-libs/m4ri/Manifest
@@ -1,2 +1 @@
-DIST m4ri-20200115.tar.gz 510562 BLAKE2B 4522793ab61dd97dae5c8d82a4457364f437040c9c45c355007a3150bfebb5264e336b19a7416f62b5ef937480f15079d9c0e9711dd26a6f7c6f5ce66d699296 SHA512 4791576878097077bcda768c03a43ec9a5b05c29adaa9c5f1e737e798b3fc7d027f830183d57db7b8b6b75b25e01fb522eb8b2e5359efcb05054fc341cbb403c
DIST m4ri-20200125.tar.gz 511132 BLAKE2B 637dbf7f17b84dc5fc91c9d8f501fa223cfacd687cb953ce3b9c4716e9a6d39318ef168c2ec8a4b5eeb469a4b46abbcd8802aaf694991d82deb20c832843c3ab SHA512 212ea58a93b792c1901f62411b06cd1a2ee60b3506c987e45ded73c146f2fa6baf5461b1dcabf31a5771ab5a44eab050d64714f7a5fca3df2d141d0d80c6c51a
diff --git a/sci-libs/m4ri/files/m4ri-20200115-libm_underlinking.patch b/sci-libs/m4ri/files/m4ri-20200115-libm_underlinking.patch
deleted file mode 100644
index 8d9d2738c087..000000000000
--- a/sci-libs/m4ri/files/m4ri-20200115-libm_underlinking.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From be6c249e7838bd838174db5c2bb98bf63b026b83 Mon Sep 17 00:00:00 2001
-From: François Bissey <frp.bissey@gmail.com>
-Date: Tue, 21 Jan 2020 11:24:50 +1300
-Subject: [PATCH] Detect and use LIBM to link libm4ri in all cases.
-
----
- Makefile.am | 2 +-
- configure.ac | 6 +++++-
- m4ri.pc.in | 2 +-
- tests/Makefile.am | 2 +-
- 4 files changed, 8 insertions(+), 4 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index e317d06..416d9f1 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -58,7 +58,7 @@ pkgconfigdir = $(libdir)/pkgconfig
- pkgconfig_DATA = m4ri.pc
-
- libm4ri_la_LDFLAGS = -release 0.0.$(RELEASE) -no-undefined
--libm4ri_la_LIBADD = $(LIBPNG_LIBADD)
-+libm4ri_la_LIBADD = $(LIBPNG_LIBADD) $(LIBM)
-
- SUBDIRS = . tests
- DIST_SUBDIRS = $(SUBDIRS) bench
-diff --git a/configure.ac b/configure.ac
-index 39de702..520154d 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -15,7 +15,7 @@ AC_CONFIG_MACRO_DIR([m4])
- dnl Compiling with per-target flags (test_elimination.c) requires AM_PROG_CC_C_O.
- AM_PROG_CC_C_O
-
--AC_PROG_LIBTOOL
-+LT_INIT
-
- AC_PROG_INSTALL
-
-@@ -26,6 +26,10 @@ if test "$ac_cv_prog_cc_c99" = "no"; then
- AC_MSG_ERROR([C99 support is required but not found.])
- fi
-
-+# Find and set LIBM on the platform.
-+LT_LIB_M
-+AC_SUBST(LIBM)
-+
- # SSE2 support
- AC_ARG_ENABLE([sse2],
- AS_HELP_STRING([--disable-sse2], [don't use SSE2 instruction set.]),
-diff --git a/m4ri.pc.in b/m4ri.pc.in
-index 5044de7..07597bd 100644
---- a/m4ri.pc.in
-+++ b/m4ri.pc.in
-@@ -7,5 +7,5 @@ Name: M4RI
- Description: Dense linear algebra over GF(2).
- Version: @PACKAGE_VERSION@
- Requires: @M4RI_USE_PNG_PC@
--Libs: -L${libdir} -lm4ri @RAW_LIBPNG@ -lm
-+Libs: -L${libdir} -lm4ri @RAW_LIBPNG@ @LIBM@
- Cflags: -I${includedir} @SIMD_CFLAGS@ @OPENMP_CFLAGS@
-diff --git a/tests/Makefile.am b/tests/Makefile.am
-index c9839a2..069e360 100644
---- a/tests/Makefile.am
-+++ b/tests/Makefile.am
-@@ -15,7 +15,7 @@ DEFINES =
- AM_CFLAGS = -I$(TOPSRCDIR) -I$(TOPBUILDDIR) -D_XOPEN_SOURCE=600 $(DEFINES) @OPENMP_CFLAGS@ @PAPI_CFLAGS@
-
- STAGEDIR := $(realpath -s $(TOPBUILDDIR)/.libs)
--AM_LDFLAGS = -L$(STAGEDIR) -Wl,-rpath,$(STAGEDIR) -lm4ri -lm @PAPI_LDFLAGS@ @PAPI_LIBS@ -no-install
-+AM_LDFLAGS = -L$(STAGEDIR) -Wl,-rpath,$(STAGEDIR) -lm4ri $(LIBM) @PAPI_LDFLAGS@ @PAPI_LIBS@ -no-install
-
- test_smallops_SOURCES = test_smallops.c testing.c testing.h
-
---
-2.10.5
-
diff --git a/sci-libs/m4ri/files/m4ri-20200115-memory_violation.patch b/sci-libs/m4ri/files/m4ri-20200115-memory_violation.patch
deleted file mode 100644
index b74be3b4bf8f..000000000000
--- a/sci-libs/m4ri/files/m4ri-20200115-memory_violation.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From e2fb0dcb70a97972fa1576a528cb01458f57a85d Mon Sep 17 00:00:00 2001
-From: "Martin R. Albrecht" <martinralbrecht@googlemail.com>
-Date: Sun, 19 Jan 2020 17:44:57 -0800
-Subject: [PATCH] fix memory violation
-
-fixes #72
----
- m4ri/mzd.c | 2 +-
- tests/test_misc.c | 42 ++++++++++++++++++++++++++++++++++++++++++
- 2 files changed, 43 insertions(+), 1 deletion(-)
-
-diff --git a/m4ri/mzd.c b/m4ri/mzd.c
-index 861905c..922dc3c 100644
---- a/m4ri/mzd.c
-+++ b/m4ri/mzd.c
-@@ -1894,7 +1894,7 @@ mzd_t *mzd_submatrix(mzd_t *S, mzd_t const *M, rci_t const startrow, rci_t const
- } else {
- wi_t j;
- for(rci_t i=0; i<nrows; i++) {
-- for(j=0; j+m4ri_radix<=ncols; j+=m4ri_radix)
-+ for(j=0; j+m4ri_radix<ncols; j+=m4ri_radix)
- S->rows[i][j/m4ri_radix] = mzd_read_bits(M, startrow+i, startcol+j, m4ri_radix);
- S->rows[i][j/m4ri_radix] &= ~S->high_bitmask;
- S->rows[i][j/m4ri_radix] |= mzd_read_bits(M, startrow+i, startcol+j, ncols - j) & S->high_bitmask;
-diff --git a/tests/test_misc.c b/tests/test_misc.c
-index a9a9547..b1a2e32 100644
---- a/tests/test_misc.c
-+++ b/tests/test_misc.c
-@@ -76,6 +76,31 @@ int test_png(rci_t m, rci_t n) {
- return ret;
- }
-
-+int test_submatrix(const rci_t m, const rci_t n, const rci_t lowr, const rci_t lowc, const rci_t highr, const rci_t highc) {
-+ printf("submatrix: m: %4d, n: %4d, (%4d, %4d, %4d, %4d)", m, n, lowr, lowc, highr, highc);
-+ assert(highr-lowr > 0);
-+ assert(highc-lowc > 0);
-+ mzd_t *M = mzd_init(m, n);
-+ mzd_randomize(M);
-+ mzd_t *S = mzd_init(highr-lowr, highc-lowc);
-+ mzd_submatrix(S, M, lowr, lowc, highr, highc);
-+ int ret = 0;
-+ for(rci_t i=0; i<highr-lowr; i++) {
-+ for(rci_t j=0; j<highc-lowc; j++) {
-+ ret += (mzd_read_bit(M, lowr+i, lowc+j) ^ mzd_read_bit(S, i, j));
-+ }
-+ }
-+
-+ mzd_free(M);
-+ mzd_free(S);
-+
-+ if(ret==0) {
-+ printf(" ... passed\n");
-+ } else {
-+ printf(" ... FAILED\n");
-+ }
-+ return ret;
-+}
-
- int main(int argc, char *argv[]) {
- int status = 0;
-@@ -99,6 +124,23 @@ int main(int argc, char *argv[]) {
- status += test_png(126,12);
- status += test_png(128,200);
-
-+ status += test_submatrix(2, 127, 1, 1, 2, 127);
-+ status += test_submatrix(2, 128, 1, 1, 2, 128);
-+ status += test_submatrix(2, 129, 1, 1, 2, 129);
-+ status += test_submatrix(2, 130, 1, 1, 2, 130);
-+ status += test_submatrix(2, 131, 1, 1, 2, 131);
-+
-+ status += test_submatrix(2, 63, 1, 1, 1, 63);
-+ status += test_submatrix(2, 64, 1, 1, 1, 64);
-+ status += test_submatrix(2, 65, 1, 1, 1, 65);
-+ status += test_submatrix(2, 66, 1, 1, 1, 66);
-+ status += test_submatrix(2, 67, 1, 1, 1, 67);
-+
-+ status += test_submatrix(2, 127, 1, 63, 2, 127);
-+ status += test_submatrix(2, 128, 1, 64, 2, 128);
-+ status += test_submatrix(2, 129, 1, 65, 2, 129);
-+ status += test_submatrix(2, 130, 1, 66, 2, 130);
-+
- if (!status) {
- printf("All tests passed.\n");
- } else {
---
-2.10.5
-
diff --git a/sci-libs/m4ri/m4ri-20200115.ebuild b/sci-libs/m4ri/m4ri-20200115.ebuild
deleted file mode 100644
index bfa4cd0d8535..000000000000
--- a/sci-libs/m4ri/m4ri-20200115.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools flag-o-matic toolchain-funcs
-
-DESCRIPTION="Method of four russian for inversion (M4RI)"
-HOMEPAGE="https://bitbucket.org/malb/m4ri"
-SRC_URI="https://bitbucket.org/malb/${PN}/downloads/${P}.tar.gz"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="debug openmp cpu_flags_x86_sse2 png static-libs"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="png? ( media-libs/libpng:= )"
-RDEPEND="${DEPEND}"
-
-# NEWS and ChangeLog are empty as of 2020-01-01, and README.md
-# didn't make it into the release tarball.
-DOCS=( AUTHORS )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-20200115-memory_violation.patch
- "${FILESDIR}"/${PN}-20200115-libm_underlinking.patch
-)
-
-pkg_pretend() {
- use openmp && tc-check-openmp
-}
-
-src_prepare() {
- default
-
- eautoreconf
-}
-
-src_configure() {
- # when using openmp and -O0 the testsuite fails
- # https://github.com/cschwan/sage-on-gentoo/issues/475
- # Still current as of 20200115
- use openmp && replace-flags -O0 -O1
-
- econf \
- $(use_enable debug) \
- $(use_enable openmp) \
- $(use_enable png) \
- $(use_enable cpu_flags_x86_sse2 sse2) \
- $(use_enable static-libs static)
-}
-
-src_install() {
- default
- find "${ED}" -name '*.la' -delete || die
-}