public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/zimg] epel10: Fix AVX2 detection (#2485557)
@ 2026-06-10 13:36 Simone Caronni
  0 siblings, 0 replies; only message in thread
From: Simone Caronni @ 2026-06-10 13:36 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/zimg
Branch : epel10
Commit : 5b827253a62af354899bdba4e1bd093aad569ba8
Author : Simone Caronni <negativo17@gmail.com>
Date   : 2026-06-10T15:35:07+02:00
Stats  : +53/-33 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/zimg/c/5b827253a62af354899bdba4e1bd093aad569ba8?branch=epel10

Log:
Fix AVX2 detection (#2485557)

---
diff --git a/0e56801f98db3e363c974fca794fa06022d40ee4.patch b/0e56801f98db3e363c974fca794fa06022d40ee4.patch
new file mode 100644
index 0000000..674f3ba
--- /dev/null
+++ b/0e56801f98db3e363c974fca794fa06022d40ee4.patch
@@ -0,0 +1,23 @@
+From 0e56801f98db3e363c974fca794fa06022d40ee4 Mon Sep 17 00:00:00 2001
+From: sekrit-twc <noreply@example.com>
+Date: Sat, 26 Jul 2025 11:00:28 -0700
+Subject: [PATCH] colorspace: fix AVX2 check
+
+Fix #226
+---
+ src/zimg/colorspace/x86/operation_impl_x86.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/zimg/colorspace/x86/operation_impl_x86.cpp b/src/zimg/colorspace/x86/operation_impl_x86.cpp
+index f4ff8f6c..bb43dee2 100644
+--- a/src/zimg/colorspace/x86/operation_impl_x86.cpp
++++ b/src/zimg/colorspace/x86/operation_impl_x86.cpp
+@@ -16,7 +16,7 @@ std::unique_ptr<Operation> create_matrix_operation_x86(const Matrix3x3 &m, CPUCl
+ 	if (cpu_is_autodetect(cpu)) {
+ 		if (!ret && cpu == CPUClass::AUTO_64B && caps.avx512f)
+ 			ret = create_matrix_operation_avx512(m);
+-		if (!ret && caps.avx)
++		if (!ret && caps.avx2)
+ 			ret = create_matrix_operation_avx2(m);
+ 	} else {
+ 		if (!ret && cpu >= CPUClass::X86_AVX512)

diff --git a/218.patch b/218.patch
deleted file mode 100644
index 28ca5fc..0000000
--- a/218.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From b4de5f36a6b1e31b891492c466888371afb6ee9b Mon Sep 17 00:00:00 2001
-From: Yaakov Selkowitz <yselkowi@redhat.com>
-Date: Tue, 18 Mar 2025 17:11:00 -0400
-Subject: [PATCH] Fix build with GCC 15
-
-```
-src/testcommon/mmap.cpp: In member function 'void MemoryMappedFile::impl::map_file(const char*, int, int, int)':
-src/testcommon/mmap.cpp:273:62: error: 'PTRDIFF_MAX' was not declared in this scope
-  273 |                 if ((file_size = posix::get_file_size(fd)) > PTRDIFF_MAX)
-      |                                                              ^~~~~~~~~~~
-src/testcommon/mmap.cpp:22:1: note: 'PTRDIFF_MAX' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
-```
----
- src/testcommon/mmap.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/testcommon/mmap.cpp b/src/testcommon/mmap.cpp
-index b6ba7092..0310fa93 100644
---- a/src/testcommon/mmap.cpp
-+++ b/src/testcommon/mmap.cpp
-@@ -10,6 +10,7 @@
-   #include <Windows.h>
- #else
-   #include <cerrno>
-+  #include <cstdint>
- 
-   #include <fcntl.h>
-   #include <unistd.h>

diff --git a/b013c7b006e6bee05b7964162f3a00402168e77f.patch b/b013c7b006e6bee05b7964162f3a00402168e77f.patch
new file mode 100644
index 0000000..be40ed8
--- /dev/null
+++ b/b013c7b006e6bee05b7964162f3a00402168e77f.patch
@@ -0,0 +1,28 @@
+From b013c7b006e6bee05b7964162f3a00402168e77f Mon Sep 17 00:00:00 2001
+From: Yaakov Selkowitz <yselkowi@redhat.com>
+Date: Tue, 18 Mar 2025 17:11:00 -0400
+Subject: [PATCH] Fix build with GCC 15
+
+```
+src/testcommon/mmap.cpp: In member function 'void MemoryMappedFile::impl::map_file(const char*, int, int, int)':
+src/testcommon/mmap.cpp:273:62: error: 'PTRDIFF_MAX' was not declared in this scope
+  273 |                 if ((file_size = posix::get_file_size(fd)) > PTRDIFF_MAX)
+      |                                                              ^~~~~~~~~~~
+src/testcommon/mmap.cpp:22:1: note: 'PTRDIFF_MAX' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
+```
+---
+ src/testcommon/mmap.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/testcommon/mmap.cpp b/src/testcommon/mmap.cpp
+index b6ba7092..0310fa93 100644
+--- a/src/testcommon/mmap.cpp
++++ b/src/testcommon/mmap.cpp
+@@ -10,6 +10,7 @@
+   #include <Windows.h>
+ #else
+   #include <cerrno>
++  #include <cstdint>
+ 
+   #include <fcntl.h>
+   #include <unistd.h>

diff --git a/zimg.spec b/zimg.spec
index 27bcb3f..5a35824 100644
--- a/zimg.spec
+++ b/zimg.spec
@@ -6,9 +6,8 @@ License:        WTFPL
 URL:            https://github.com/sekrit-twc/zimg
 
 Source0:        %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz
-
-# Fix build with GCC 15
-Patch0:         https://github.com/sekrit-twc/zimg/pull/218.patch
+Patch0:         https://github.com/sekrit-twc/zimg/commit/b013c7b006e6bee05b7964162f3a00402168e77f.patch
+Patch1:         https://github.com/sekrit-twc/zimg/commit/0e56801f98db3e363c974fca794fa06022d40ee4.patch
 
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -52,8 +51,6 @@ find %{buildroot} -name '*.la' -delete
 # Pick up docs in the files section
 rm -fr %{buildroot}%{_docdir}/%{name}
 
-%ldconfig_scriptlets
-
 %files
 %license COPYING
 %doc README.md ChangeLog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-10 13:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10 13:36 [rpms/zimg] epel10: Fix AVX2 detection (#2485557) Simone Caronni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox