public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Simone Caronni <negativo17@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openjph] rawhide: Update to 0.31.0
Date: Sun, 09 Aug 2026 16:57:16 GMT	[thread overview]
Message-ID: <178629463610.1.11357839438110502236.rpms-openjph-c0b26cf3eb1b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/openjph
Branch : rawhide
Commit : c0b26cf3eb1be7a13e09936e1dccec7b9decacf8
Author : Simone Caronni <negativo17@gmail.com>
Date   : 2026-08-09T18:57:00+02:00
Stats  : +36/-5 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/openjph/c/c0b26cf3eb1be7a13e09936e1dccec7b9decacf8?branch=rawhide

Log:
Update to 0.31.0

---
diff --git a/0001-Use-SSE1-intrinsics-in-sse_mem_clear.patch b/0001-Use-SSE1-intrinsics-in-sse_mem_clear.patch
new file mode 100644
index 0000000..0c63da0
--- /dev/null
+++ b/0001-Use-SSE1-intrinsics-in-sse_mem_clear.patch
@@ -0,0 +1,28 @@
+From: Simone Caronni <negativo17@gmail.com>
+Date: Sun, 9 Aug 2026 00:00:00 +0200
+Subject: [PATCH] Use SSE1 intrinsics in sse_mem_clear
+
+ojph_codestream_sse.cpp is compiled with -msse only, but sse_mem_clear()
+uses the SSE2 integer intrinsics _mm_setzero_si128()/_mm_storeu_si128().
+On targets where SSE2 is not part of the baseline (i686, e.g. the mingw32
+build) this fails with "inlining failed in call to always_inline ...:
+target specific option mismatch".
+
+Restore the float based SSE1 implementation used up to 0.29.0.
+
+--- a/src/core/codestream/ojph_codestream_sse.cpp
++++ b/src/core/codestream/ojph_codestream_sse.cpp
+@@ -47,9 +47,10 @@ namespace ojph {
+     //////////////////////////////////////////////////////////////////////////
+     void sse_mem_clear(void* addr, size_t count)
+     {
+-      __m128i zero = _mm_setzero_si128();
+-      for (size_t i = 0; i < count; i += 16, addr = (char*)addr + 16)
+-        _mm_storeu_si128((__m128i*)addr, zero);
++      float* p = (float*)addr;
++      __m128 zero = _mm_setzero_ps();
++      for (size_t i = 0; i < count; i += 16, p += 4)
++        _mm_storeu_ps(p, zero);
+     }
+   }
+ }

diff --git a/openjph.spec b/openjph.spec
index 5ada699..2a6e827 100644
--- a/openjph.spec
+++ b/openjph.spec
@@ -2,13 +2,16 @@
 %bcond mingw 1
 
 Name:           openjph
-Version:        0.29.0
+Version:        0.31.0
 Release:        %autorelease
 Summary:        Open-source implementation of JPEG2000 Part-15 (or JPH or HTJ2K)
 License:        BSD-2-Clause
 URL:            https://openjph.org/
 Source:         https://github.com/aous72/%{real_name}/archive/refs/tags/%{version}/%{real_name}-%{version}.tar.gz
 
+# SSE2 intrinsics used in a file compiled with -msse only, breaks on i686/mingw builds
+Patch:          0001-Use-SSE1-intrinsics-in-sse_mem_clear.patch
+
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig(libtiff-4)
@@ -117,7 +120,7 @@ BuildArch:     noarch
 
 %files -n lib%{name}
 %license LICENSE
-%{_libdir}/lib%{name}.so.0.29
+%{_libdir}/lib%{name}.so.0.31
 %{_libdir}/lib%{name}.so.%{version}
 
 %files -n lib%{name}-devel
@@ -129,7 +132,7 @@ BuildArch:     noarch
 %if %{with mingw}
 %files -n mingw32-lib%{name}
 %license LICENSE
-%{mingw32_bindir}/lib%{name}-0.29.dll
+%{mingw32_bindir}/lib%{name}-0.31.dll
 %{mingw32_libdir}/lib%{name}.dll.a
 %{mingw32_libdir}/cmake/%{name}
 %{mingw32_libdir}/pkgconfig/%{name}.pc
@@ -141,7 +144,7 @@ BuildArch:     noarch
 
 %files -n mingw64-lib%{name}
 %license LICENSE
-%{mingw64_bindir}/lib%{name}-0.29.dll
+%{mingw64_bindir}/lib%{name}-0.31.dll
 %{mingw64_libdir}/lib%{name}.dll.a
 %{mingw64_libdir}/cmake/%{name}
 %{mingw64_libdir}/pkgconfig/%{name}.pc

diff --git a/sources b/sources
index 828178c..1b3f044 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (OpenJPH-0.29.0.tar.gz) = 0b4576a006b89bc7196b8161df69fcf8b5604d6b76fa3e3b82c97d01b874dbb42f96d56bf809362d0291bccca57723a9fe78c632bec3159f5a3dcabf37920629
+SHA512 (OpenJPH-0.31.0.tar.gz) = 2dfafe3db360ac177014c4b65ea0b62ea14ccf61714d80dbaa0c01ab2dbc2153f6d26df3d7af5e6b74e298eb72670a7670fca626a37d2fe7e4c224a3256af35a

                 reply	other threads:[~2026-08-09 16:57 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=178629463610.1.11357839438110502236.rpms-openjph-c0b26cf3eb1b@fedoraproject.org \
    --to=negativo17@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