[packages/svt-jpeg-xs] - actually apply no-asm patch and kill unused variable warning

qboosh qboosh at pld-linux.org
Tue Mar 25 19:03:54 CET 2025


commit ed67235e9c8ce3f4d6bedd6bf1bef957b95b2d3e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 25 18:44:50 2025 +0100

    - actually apply no-asm patch and kill unused variable warning

 svt-jpeg-xs-no-asm.patch | 15 ++++++++++++++-
 svt-jpeg-xs.spec         |  1 +
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/svt-jpeg-xs.spec b/svt-jpeg-xs.spec
index adc3861..519cd9b 100644
--- a/svt-jpeg-xs.spec
+++ b/svt-jpeg-xs.spec
@@ -42,6 +42,7 @@ Pliki nagłówkowe biblioteki SVT-JPEG-XS.
 
 %prep
 %setup -q -n SVT-JPEG-XS-%{version}
+%patch -P0 -p1
 
 %build
 install -d build
diff --git a/svt-jpeg-xs-no-asm.patch b/svt-jpeg-xs-no-asm.patch
index cd138ba..baced83 100644
--- a/svt-jpeg-xs-no-asm.patch
+++ b/svt-jpeg-xs-no-asm.patch
@@ -41,7 +41,20 @@
 +endif()
 --- SVT-JPEG-XS-0.9.0/Source/Lib/Common/Codec/common_dsp_rtcd.c.orig	2024-03-27 07:55:04.000000000 +0100
 +++ SVT-JPEG-XS-0.9.0/Source/Lib/Common/Codec/common_dsp_rtcd.c	2025-03-24 19:55:31.151387400 +0100
-@@ -111,5 +111,7 @@ void setup_common_rtcd_internal(CPU_FLAG
+@@ -98,10 +98,12 @@ CPU_FLAGS get_cpu_flags() {
+ #define SET_AVX2_AVX512(ptr, c, avx2, avx512)               SET_FUNCTIONS(ptr, c, 0, 0, 0, 0, 0, 0, 0, 0, avx2, avx512)
+ 
+ void setup_common_rtcd_internal(CPU_FLAGS flags) {
++#ifndef DISABLE_X86_64_ASM
+     /* Avoid check that pointer is set double, after first  setup. */
+     static uint8_t first_call_setup = 1;
+     uint8_t check_pointer_was_set = first_call_setup;
+     first_call_setup = 0;
++#endif
+ #ifdef ARCH_X86_64
+     /** Should be done during library initialization,
+       but for safe limiting CPU flags again. */
+@@ -111,5 +113,7 @@ void setup_common_rtcd_internal(CPU_FLAG
      (void)flags;
  #endif
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/svt-jpeg-xs.git/commitdiff/ed67235e9c8ce3f4d6bedd6bf1bef957b95b2d3e



More information about the pld-cvs-commit mailing list