commit:     d3887e9f15fade5c6dbbd79a11bb5a54a3e18c6a
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 24 06:53:06 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 24 06:57:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3887e9f

dev-libs/crc32c: fix for arm64 without crc32

On arm64, the build system decided if the current CPU supports crc32
instructions, but forcing the compiler to support it and then checking
if it compiles. By removing the forcing, we really check if the arch
supports it.

Bit thanks to Sam James <sam <AT> gentoo.org> for testing and finding the
issue in build system.

Closes: https://bugs.gentoo.org/818874
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-libs/crc32c/{crc32c-1.1.2.ebuild => crc32c-1.1.2-r1.ebuild} | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-libs/crc32c/crc32c-1.1.2.ebuild 
b/dev-libs/crc32c/crc32c-1.1.2-r1.ebuild
similarity index 91%
rename from dev-libs/crc32c/crc32c-1.1.2.ebuild
rename to dev-libs/crc32c/crc32c-1.1.2-r1.ebuild
index 6eee30bb278..e7e06e01ec2 100644
--- a/dev-libs/crc32c/crc32c-1.1.2.ebuild
+++ b/dev-libs/crc32c/crc32c-1.1.2-r1.ebuild
@@ -24,7 +24,9 @@ PATCHES=(
 DOCS=( README.md )
 
 src_prepare() {
-       sed -e '/-Werror/d' -i CMakeLists.txt || die
+       sed -e '/-Werror/d' \
+               -e '/-march=armv8/d' \
+               -i CMakeLists.txt || die
        cmake_src_prepare
 }
 

Reply via email to