mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
x11-terms/kitty: backport fix for non-x86/amd64/arm64
Only tested on amd64 by forcing CPPFLAGS=-DKITTY_NO_SIMD which fails like it would on any arches where simde is not used. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
12
x11-terms/kitty/files/kitty-0.33.0-no-simd.patch
Normal file
12
x11-terms/kitty/files/kitty-0.33.0-no-simd.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
Backport of fix for -DKITTY_NO_SIMD (aka for non-x86/amd64/arm64)
|
||||
https://github.com/kovidgoyal/kitty/issues/7225
|
||||
https://github.com/kovidgoyal/kitty/commit/393169f79daf60c038b3e11e657fa5f3ee41c24c
|
||||
--- a/kitty/simd-string-impl.h
|
||||
+++ b/kitty/simd-string-impl.h
|
||||
@@ -21,5 +21,5 @@
|
||||
bool FUNC(utf8_decode_to_esc)(UTF8Decoder *d UNUSED, const uint8_t *src UNUSED, size_t src_sz UNUSED) NOSIMD
|
||||
const uint8_t* FUNC(find_either_of_two_bytes)(const uint8_t *haystack UNUSED, const size_t sz UNUSED, const uint8_t a UNUSED, const uint8_t b UNUSED) NOSIMD
|
||||
-void FUNC(xor_data64)(const uint8_t key[64], uint8_t* data, const size_t data_sz);
|
||||
+void FUNC(xor_data64)(const uint8_t key[64] UNUSED, uint8_t* data UNUSED, const size_t data_sz UNUSED) NOSIMD
|
||||
#undef NOSIMD
|
||||
#else
|
||||
@@ -84,6 +84,10 @@ BDEPEND="
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/kitten" # written in Go
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-no-simd.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
|
||||
Reference in New Issue
Block a user