public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/zimg] rawhide: Fixes zimg: FTBFS in Fedora rawhide/f45
Date: Sat, 22 Aug 2026 19:02:46 GMT	[thread overview]
Message-ID: <178742536647.1.10723879370744873514.rpms-zimg-9e83f41da3a9@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/zimg
            Branch : rawhide
            Commit : 9e83f41da3a94fbd5c71784a31d2c1a5aa83b587
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-01T23:27:17-03:00
            Stats  : +17/-22 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/zimg/c/9e83f41da3a94fbd5c71784a31d2c1a5aa83b587?branch=rawhide

            Log:
            Fixes zimg: FTBFS in Fedora rawhide/f45

Both patches 0 and 1 were rebased from master on top of 3.0.6.
They should be removed during the next zimg update.

Resolves: rhbz#2485557
Resolves: rhbz#2505389

Colorspace conversion segfaults on CPUs that support AVX, but not AVX2

Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>

---
diff --git a/0e56801f98db3e363c974fca794fa06022d40ee4.patch b/0e56801f98db3e363c974fca794fa06022d40ee4.patch
index 674f3ba..3489e12 100644
--- a/0e56801f98db3e363c974fca794fa06022d40ee4.patch
+++ b/0e56801f98db3e363c974fca794fa06022d40ee4.patch
@@ -1,23 +1,12 @@
-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
+diff -up a/src/zimg/colorspace/x86/operation_impl_x86.cpp b/src/zimg/colorspace/x86/operation_impl_x86.cpp
 --- 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)) {
+@@ -19,7 +19,7 @@ std::unique_ptr<Operation> create_matrix
  		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)
+ #endif
+-		if (!ret && caps.avx && !cpu_has_slow_avx(caps))
++		if (!ret && caps.avx2 && !cpu_has_slow_avx(caps))
+ 			ret = create_matrix_operation_avx(m);
+ 		if (!ret && caps.sse)
+ 			ret = create_matrix_operation_sse(m);

diff --git a/zimg.spec b/zimg.spec
index 5a35824..274317b 100644
--- a/zimg.spec
+++ b/zimg.spec
@@ -6,8 +6,10 @@ License:        WTFPL
 URL:            https://github.com/sekrit-twc/zimg
 
 Source0:        %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz
-Patch0:         https://github.com/sekrit-twc/zimg/commit/b013c7b006e6bee05b7964162f3a00402168e77f.patch
-Patch1:         https://github.com/sekrit-twc/zimg/commit/0e56801f98db3e363c974fca794fa06022d40ee4.patch
+
+# Rebased from master on top of 3.0.6, should be removed in the next update
+Patch0:         b013c7b006e6bee05b7964162f3a00402168e77f.patch
+Patch1:         0e56801f98db3e363c974fca794fa06022d40ee4.patch
 
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -57,9 +59,13 @@ rm -fr %{buildroot}%{_docdir}/%{name}
 %{_libdir}/lib%{name}.so.2.0.0
 %{_libdir}/lib%{name}.so.2
 
+%check
+./testapp cpuinfo
+
 %files devel
 %{_bindir}/testapp
-%{_includedir}/*
+%{_includedir}/zimg.h
+%{_includedir}/zimg++.hpp
 %{_libdir}/lib%{name}.so
 %{_libdir}/pkgconfig/%{name}.pc
 

                 reply	other threads:[~2026-08-22 19:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178742536647.1.10723879370744873514.rpms-zimg-9e83f41da3a9@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox