Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2024 13:40:29 +0100
From:      Ashish SHUKLA <ashish@FreeBSD.org>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org
Subject:   Re: git: 2289f421c127 - main - textproc/ugrep: add a workaround for building on aarch64 platform
Message-ID:  <fbccd3670ae63517ce346c610a6bf98a@FreeBSD.org>
In-Reply-To: <cytq-kd9d-wny@FreeBSD.org>
References:  <202401241236.40OCaArK081838@gitrepo.freebsd.org> <cytq-kd9d-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2024-01-24 15:38, Jan Beich wrote:
> Ashish SHUKLA <ashish@FreeBSD.org> writes:
> 
>> --- /dev/null
>> +++ b/textproc/ugrep/files/patch-lzma_C_CpuArch.c
>> @@ -0,0 +1,15 @@
>> +--- lzma/C/CpuArch.c.orig	2024-01-24 11:26:34 UTC
>> ++++ lzma/C/CpuArch.c
>> +@@ -762,10 +762,11 @@ BoolInt CPU_IsSupported_AES (void) { return 
>> APPLE_CRYP
>> +
>> + #include <sys/auxv.h>
>> +
>> ++#ifdef __linux__
>> + #define USE_HWCAP
>> ++#endif
>> +
>> + #ifdef USE_HWCAP
>> +-
>> + #include <asm/hwcap.h>
>> +
>> +   #define MY_HWCAP_CHECK_FUNC_2(name1, name2) \
> 
> Better sync with archivers/7-zip/files/patch-C_CpuArch.c to support 
> SIMD
> on aarch64, mainly the following:
> 
> $ rg CPU_IsSupported_
> lzma/C/7zCrc.c
> 318:      if (CPU_IsSupported_CRC32())

Committed in 05d0f788eb[0]

References:
[0] 
https://cgit.FreeBSD.org/ports/commit/?id=05d0f788eb55620df08b9b82a610f20eca3c1b00

Thank you!
-- 
Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fbccd3670ae63517ce346c610a6bf98a>