diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-libs/gf2x | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-libs/gf2x')
-rw-r--r-- | dev-libs/gf2x/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/gf2x/files/fno-common.patch | 37 | ||||
-rw-r--r-- | dev-libs/gf2x/gf2x-1.3.0.ebuild | 57 |
3 files changed, 97 insertions, 0 deletions
diff --git a/dev-libs/gf2x/Manifest b/dev-libs/gf2x/Manifest index 41adfc1db795..e5bdcbaa5ef6 100644 --- a/dev-libs/gf2x/Manifest +++ b/dev-libs/gf2x/Manifest @@ -1,3 +1,6 @@ +AUX fno-common.patch 1170 BLAKE2B 828fb26be2a3055d0dfb7fb5b0237c0a0b6f22143ed0a55e786b3cae6e39a5eca189856ce0a53d5a672194e2a418e76934ade60549aa7cc6d46ee436bc7583cc SHA512 c01d85b974b58accff169bdb34292d79d84b9035374a92933a503622f66cd2b08f407122c16b8c358d418626449df33083ae554a7e7a334ed6f32d500a7d7084 DIST gf2x-1.2.tar.gz 706519 BLAKE2B 4aa45d10646b51e540be51d0fe3691083c48c666d34e67d50d8f53753c49af2bd9664483618eee5a1883106d1f58ddb28cd4eb02031f13eebe8278630de736f6 SHA512 efddad2b99fa103fa77caed4a62f4a763dbff67bc7cf4527bbbf33ca826829e4a4f94e97454ef1a6498bdc2cee8934ff43f9dabf41a4a4f256721527a1dffa30 +DIST gf2x-1.3.0.tar.gz 727717 BLAKE2B 65f6596a09087708e4ae940b067cb375476c1e7b25a28bf12e9318c752cb326516edeb9363d0f98a9b4173f5bcefd204aa62e1cb87b3f27ad9c30b661edc7451 SHA512 4991568032483e0ecb4552a698e5b7d09f80875e54584a0060a9473be1f87e4e8f714e657f08fec0b9fcf493d969408e5a9000f900623b3694aba1ecf6dc239e EBUILD gf2x-1.2.ebuild 1374 BLAKE2B 3f0c60bec75af99a1b50f25ac15e900c55a66e8c41b312f9715b054565a27a6cbe1d2d31a947826f857e9728c95a42f3698bfd54c61c935faf97dbc736946c99 SHA512 d7fb00c2e532f11060576ccd06744c35c35650d679038c0a8e475826b16822f083f9931feebaf09e73f609c1390c48c563c06529760185a522d4ee35aba7edd6 +EBUILD gf2x-1.3.0.ebuild 1532 BLAKE2B 1155d700ce66e3d3e5bb85f65fbd5e91c6bced1bee1ec765891ddb3adc559be5e2b3b6c8e9c2ad9ffcd3643f1165074cb48c1e1d696dbfbfe465f99242f8e774 SHA512 8fb18e8f8fdcd9389c6326d2fe7caaf6c7e0ba6265bcf2f917e8f1f7d8f5c1a7be6ee794b832e973a8ee0ba58af7c6d60a4752f3c785043c46b43d67ed1ac4ce MISC metadata.xml 754 BLAKE2B 53d2cdd4bf257213b6f431fd7692593d9577f0c146c2b40546846ef868a781f8ef40d82fc3c833edf7e0cb9c9805c67e1740af2ba205a2e50f767d3e7160303b SHA512 48a3afc2bef2fee5bce10f9d0f4580269bc0089855f2329cf74c3726ebf20ab05867e628dad5e05c57982433cee2a17782b30b16080a76ebc979373105e18803 diff --git a/dev-libs/gf2x/files/fno-common.patch b/dev-libs/gf2x/files/fno-common.patch new file mode 100644 index 000000000000..bcb4c255707d --- /dev/null +++ b/dev-libs/gf2x/files/fno-common.patch @@ -0,0 +1,37 @@ +From 5c8737c5c3170358024a4a969e1386cea15932f3 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Sun, 26 Apr 2020 09:56:34 -0400 +Subject: [PATCH 1/1] src/tunetoom.c: delete duplicate definition of rp. + +The "make tune-toom" command has started failing with gcc-10.x because +of its new default -fno-common behavior, + + * https://gcc.gnu.org/gcc-10/porting_to.html + * https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common + +This leads to an error involving the FILE pointer "rp" that is declared +in global scope in both src/tunetoom.c and src/tuning-common.c. In this +case, the declaration in src/tunetoom.c is simply redundant: that file +includes src/tuning-common.h which already declares "rp" as extern. + +Deleting the redeclaration in src/tunetoom.c makes the build succeed. +--- + src/tunetoom.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/src/tunetoom.c b/src/tunetoom.c +index 7553e0c..1140606 100644 +--- a/src/tunetoom.c ++++ b/src/tunetoom.c +@@ -111,8 +111,6 @@ const char * gf2x_utoom_select_string[] = { + [GF2X_SELECT_UNB_TC3U] = "TC3U", + }; + +-FILE *rp; +- + void tunetoom(long tablesz) + { + long high, n; +-- +2.24.1 + diff --git a/dev-libs/gf2x/gf2x-1.3.0.ebuild b/dev-libs/gf2x/gf2x-1.3.0.ebuild new file mode 100644 index 000000000000..4763099d4a33 --- /dev/null +++ b/dev-libs/gf2x/gf2x-1.3.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="C/C++ routines for fast arithmetic in GF(2)[x]" +HOMEPAGE="https://gitlab.inria.fr/thome/gf2x/ http://gforge.inria.fr/projects/gf2x/" +# The Gitlab release is missing the autotools files. +SRC_URI="https://gforge.inria.fr/frs/download.php/38243/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/3" # soname major version, defined in configure.ac +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="fft static-libs custom-tune" +IUSE_CPU_FLAGS=" pclmul sse2 sse3 sse4_1 ssse3" +IUSE+=" ${IUSE_CPU_FLAGS// / cpu_flags_x86_}" + +PATCHES=( "${FILESDIR}/fno-common.patch" ) + +src_prepare() { + default + # fix for cross-compiling, avoid ABI detection + sed -e 's/VERIFY_WORDSIZE(\[$ABI\].*/echo "skipping ABI check"/' \ + -e 's/AC_MSG_ERROR(\[already_t.*/echo "skipping ABI check"/' \ + -i configure.ac || die + eautoreconf +} + +src_configure() { + econf \ + $(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_pclmul pclmul) \ + $(use_enable fft fft-interface) \ + $(use_enable static-libs static) +} + +src_compile() { + emake + if use custom-tune; then + einfo "Starting tuning" + emake tune-lowlevel + emake tune-toom + use fft && emake tune-fft + fi +} + +src_install() { + default + if ! use static-libs; then + find "${ED}" -name '*.la' -delete || die + fi +} |