Warning, /graphics/krita/3rdparty/ext_ffmpeg/0001-Disable-ebp_available-on-android.patch is written in an unsupported language. File is not indexed.

0001 From 2a71fe6ea8de5e412bd45d942cc1634b65ec4f78 Mon Sep 17 00:00:00 2001
0002 From: Dmitry Kazakov <dimula73@gmail.com>
0003 Date: Tue, 30 May 2023 21:52:58 +0300
0004 Subject: [PATCH] Disable ebp_available on android
0005 
0006 ---
0007  meson.build | 22 ++++++++++++++--------
0008  1 file changed, 14 insertions(+), 8 deletions(-)
0009 
0010 diff --git a/meson.build b/meson.build
0011 index b3f1877346..9942b2d120 100644
0012 --- a/meson.build
0013 +++ b/meson.build
0014 @@ -1922,13 +1922,19 @@ if conf.get('x86') == 1
0015      endif
0016    endif
0017  
0018 -  ebp_available = cc.run('''
0019 -  int main() {
0020 -    volatile int i=0;
0021 -    __asm__ volatile ("xorl %%ebp, %%ebp" ::: "%ebp");
0022 -    return i;
0023 -  }
0024 -  ''', name: 'if_ebp_available_this_should_crash')
0025 +  ebp_available = false
0026 +
0027 +  if host_machine.system() != 'android'
0028 +    ebp_available_test = cc.run('''
0029 +    int main() {
0030 +      volatile int i=0;
0031 +      __asm__ volatile ("xorl %%ebp, %%ebp" ::: "%ebp");
0032 +      return i;
0033 +    }
0034 +    ''', name: 'if_ebp_available_this_should_crash')
0035 +
0036 +    ebp_available = ebp_available_test.compiled() and ebp_available_test.returncode() != 0
0037 +  endif
0038  
0039    # FFmpeg upstream doesn't know that EBP is always unavailable
0040    # under Clang if stack realignment is used. This is probably
0041 @@ -1938,7 +1944,7 @@ if conf.get('x86') == 1
0042    # See:
0043    # - https://github.com/android/ndk/issues/693
0044    # - https://bugs.llvm.org/show_bug.cgi?id=37542
0045 -  conf.set10('ebp_available', conf.get('aligned_stack') == 1 and ebp_available.compiled() and ebp_available.returncode() != 0)
0046 +  conf.set10('ebp_available', conf.get('aligned_stack') == 1 and ebp_available)
0047  
0048    asm_inline_checks += [
0049      ['""::"b"(0)', 'ebx_available_1'],
0050 -- 
0051 2.25.1
0052