public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Unicode-UTF8] rawhide: Update to 0.72
@ 2026-07-09 11:11 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-07-09 11:11 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/perl-Unicode-UTF8
            Branch : rawhide
            Commit : 25014e9b5f116c6ec1d1f0cecd89c7506030a422
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2026-07-09T11:59:37+01:00
            Stats  : +40/-3 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/perl-Unicode-UTF8/c/25014e9b5f116c6ec1d1f0cecd89c7506030a422?branch=rawhide

            Log:
            Update to 0.72

- New upstream release 0.72
  - read_utf8() now takes a single-pass fast path on PerlIO fast-gets layers,
    validating/copying/counting straight out of the layer buffer (up to ~11%%
    faster on multibyte-heavy input; see benchmarks/)
  - Fixed read_utf8() on non-buffered handles stranding the trailing incomplete
    sequence that was read to satisfy the requested length: the pending bytes
    are now pushed back with PerlIO_unread() so the following read sees them,
    matching decode_utf8() when drained to end of file
- Add patch to avoid trying to use 64-bit SSE2 on ix86 (GH#14)

---
diff --git a/Unicode-UTF8-0.72-SSE2.patch b/Unicode-UTF8-0.72-SSE2.patch
new file mode 100644
index 0000000..aca5025
--- /dev/null
+++ b/Unicode-UTF8-0.72-SSE2.patch
@@ -0,0 +1,18 @@
+Disable SSE2 support on ix86
+
+Whilst ix86 may have SSE2 support, the function _mm_cvtsi128_si64 is used,
+which is not available on 32-bit processors.
+
+https://github.com/chansen/p5-unicode-utf8/issues/14
+
+--- utf8_simd.h
++++ utf8_simd.h
+@@ -47,7 +47,7 @@
+ #if defined(__AVX2__)
+ #  define UTF8_SIMD_HAS_AVX2 1
+ #  include <immintrin.h>
+-#elif defined(__SSE2__) || defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 2))
++#elif (defined(__SSE2__) && defined(__x86_64__)) || defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 2))
+ #  define UTF8_SIMD_HAS_SSE2 1
+ #  include <emmintrin.h>
+ #elif defined(__aarch64__)

diff --git a/perl-Unicode-UTF8.spec b/perl-Unicode-UTF8.spec
index 1a95b25..c0647a8 100644
--- a/perl-Unicode-UTF8.spec
+++ b/perl-Unicode-UTF8.spec
@@ -7,11 +7,12 @@
 
 Summary:	Encoding and decoding of UTF-8 encoding form
 Name:		perl-Unicode-UTF8
-Version:	0.70
+Version:	0.72
 Release:	1%{?dist}
 License:	GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:		https://metacpan.org/release/Unicode-UTF8
 Source0:	https://cpan.metacpan.org/modules/by-module/Unicode/Unicode-UTF8-%{version}.tar.gz
+Patch0:		Unicode-UTF8-0.72-SSE2.patch
 # Module Build
 BuildRequires:	coreutils
 BuildRequires:	findutils
@@ -20,7 +21,9 @@ BuildRequires:	make
 BuildRequires:	perl-devel
 BuildRequires:	perl-generators
 BuildRequires:	perl-interpreter
-BuildRequires:	perl(Devel::AssertC99)
+BuildRequires:	perl(Config)
+BuildRequires:	perl(Devel::PPPort)
+BuildRequires:	perl(ExtUtils::CBuilder)
 BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.76
 # Module Runtime
 BuildRequires:	perl(Carp)
@@ -31,6 +34,7 @@ BuildRequires:	perl(XSLoader) >= 0.02
 # Test Suite
 BuildRequires:	perl(Encode) >= 1.9801
 BuildRequires:	perl(File::Spec)
+BuildRequires:	perl(File::Temp)
 BuildRequires:	perl(IO::File)
 BuildRequires:	perl(lib)
 BuildRequires:	perl(Scalar::Util)
@@ -61,6 +65,10 @@ specified by Unicode and ISO/IEC 10646:2011.
 %prep
 %setup -q -n Unicode-UTF8-%{version}
 
+# Fix FTBFS on ix86 with SSE2
+# https://github.com/chansen/p5-unicode-utf8/issues/14
+%patch -P0
+
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
 %{make_build}
@@ -81,6 +89,17 @@ make test
 %{_mandir}/man3/Unicode::UTF8.3*
 
 %changelog
+* Thu Jul  9 2026 Paul Howarth <paul@city-fan.org> - 0.72-1
+- Update to 0.72
+  - read_utf8() now takes a single-pass fast path on PerlIO fast-gets layers,
+    validating/copying/counting straight out of the layer buffer (up to ~11%%
+    faster on multibyte-heavy input; see benchmarks/)
+  - Fixed read_utf8() on non-buffered handles stranding the trailing incomplete
+    sequence that was read to satisfy the requested length: the pending bytes
+    are now pushed back with PerlIO_unread() so the following read sees them,
+    matching decode_utf8() when drained to end of file
+- Add patch to avoid trying to use 64-bit SSE2 on ix86 (GH#14)
+
 * Fri Mar 20 2026 Paul Howarth <paul@city-fan.org> - 0.70-1
 - Update to 0.70
   - Update the c-utf8 library code: improved GCC code generation, including

diff --git a/sources b/sources
index 24a688d..61204bf 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Unicode-UTF8-0.70.tar.gz) = b24c81cfe45d6728275d41f7a1ecd77abd3c2c0e5e021ef6a043928727141d57710eab5759ccdc1f2f7dfb394052c304aeff59b3e8e3866851695addec205574
+SHA512 (Unicode-UTF8-0.72.tar.gz) = 3ded76c7ee226a724a83fa3bd95e00953c57876284a6f650ec8403d19ca95b3e420711307b01a5596076d09549e00a94c0e3fe1292da05fa9dedf8d43a8008d9

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

only message in thread, other threads:[~2026-07-09 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-09 11:11 [rpms/perl-Unicode-UTF8] rawhide: Update to 0.72 Paul Howarth

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