From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E4B33139360 for ; Sat, 7 Aug 2021 16:37:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FF32E086F; Sat, 7 Aug 2021 16:37:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30ACBE086A for ; Sat, 7 Aug 2021 16:37:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B8B61342C4F for ; Sat, 7 Aug 2021 16:37:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 15D717BD for ; Sat, 7 Aug 2021 16:37:00 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1628354144.ae6b26acdfebbf19c8f8855a63fd86bab3e63b5d.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/givaro/files/, sci-libs/givaro/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/givaro/files/givaro-4.1.1-gcc-10.patch sci-libs/givaro/givaro-4.1.1-r2.ebuild X-VCS-Directories: sci-libs/givaro/ sci-libs/givaro/files/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: ae6b26acdfebbf19c8f8855a63fd86bab3e63b5d X-VCS-Branch: master Date: Sat, 7 Aug 2021 16:37:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 454f31b7-b0cf-455e-bfb7-52639e93e26e X-Archives-Hash: e538b1fd6974fcc0d4279720410a7288 commit: ae6b26acdfebbf19c8f8855a63fd86bab3e63b5d Author: Michael Orlitzky gentoo org> AuthorDate: Sat Aug 7 16:08:09 2021 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Sat Aug 7 16:35:44 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae6b26ac sci-libs/givaro: new revision to eliminate -fabi-version=6. This is just a quick hack directly to the ./configure script to ensure that the current version of givaro doesn't erroneously detect gcc-4.x where none exists. A real fix is already upstreamed, but not in a release, and is not easy to backport. Bug: https://bugs.gentoo.org/741434 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/givaro/files/givaro-4.1.1-gcc-10.patch | 36 ++++++++++++++++ sci-libs/givaro/givaro-4.1.1-r2.ebuild | 56 +++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/sci-libs/givaro/files/givaro-4.1.1-gcc-10.patch b/sci-libs/givaro/files/givaro-4.1.1-gcc-10.patch new file mode 100644 index 00000000000..0564c7f94fe --- /dev/null +++ b/sci-libs/givaro/files/givaro-4.1.1-gcc-10.patch @@ -0,0 +1,36 @@ +From 5ba9fa4930b347aea8817da444bea5a88971079a Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +Date: Sat, 7 Aug 2021 11:43:29 -0400 +Subject: [PATCH 1/1] configure: hack out old GCC-4.x test. + +The Givaro ./configure script fails to detect modern versions of GCC, +instead deciding that they must be gcc-4.8. As a result, we wind up +with "-fabi-version=6" in CXXFLAGS, which then gets propagated to +users of "givaro-config --cflags", like fflas-ffpack. + +This is already fixed upstream, but not in a release, and not in a +way that I care to backport. Here we just hack the configure script +directly since the change is so trivial. +--- + configure | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/configure b/configure +index 1eb75b0..f3bbb52 100755 +--- a/configure ++++ b/configure +@@ -17172,11 +17172,6 @@ fi + + echo "-----------------------------------------------" + +-if test "x$CCNAM" = "xgcc48"; then : +- REQUIRED_FLAGS="${REQUIRED_FLAGS} -fabi-version=6" +-fi +- +- + + # Machine characteristics + +-- +2.31.1 + diff --git a/sci-libs/givaro/givaro-4.1.1-r2.ebuild b/sci-libs/givaro/givaro-4.1.1-r2.ebuild new file mode 100644 index 00000000000..2e76210dd2e --- /dev/null +++ b/sci-libs/givaro/givaro-4.1.1-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="C++ library for arithmetic and algebraic computations" +HOMEPAGE="https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro/" +SRC_URI="https://github.com/linbox-team/givaro/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="CeCILL-B" +SLOT="0/9" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2 doc static-libs test" +RESTRICT="!test? ( test )" + +BDEPEND=" + doc? ( + app-doc/doxygen[dot] + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + ) +" +DEPEND="dev-libs/gmp:0[cxx(+)]" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog README.md ) + +PATCHES=( "${FILESDIR}/givaro-4.1.1-gcc-10.patch" ) + +src_configure() { + # Passing "--disable-doc" also accidentally enables building + # the documentation, so we can't just $(use_enable doc) here. + # https://github.com/linbox-team/givaro/issues/148 + econf \ + $(usex doc --enable-doc "" "" "") \ + --with-docdir="/usr/share/doc/${PF}/html" \ + $(use_enable static-libs static) \ + $(use_enable cpu_flags_x86_fma3 fma) \ + $(use_enable cpu_flags_x86_fma4 fma4) \ + $(use_enable cpu_flags_x86_sse sse) \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable cpu_flags_x86_sse3 sse3) \ + $(use_enable cpu_flags_x86_ssse3 ssse3) \ + $(use_enable cpu_flags_x86_sse4_1 sse41) \ + $(use_enable cpu_flags_x86_sse4_2 sse42) \ + $(use_enable cpu_flags_x86_avx avx) \ + $(use_enable cpu_flags_x86_avx2 avx2) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +}