public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/msedit] rawhide: Fix FTBFS on s390x
@ 2026-11-26 6:45 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-26 6:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/msedit
Branch : rawhide
Commit : aa62657e5e4cd0fcc1ee557bbe91e49c2ccf14f4
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-24T20:59:18-03:00
Stats : +42/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/msedit/c/aa62657e5e4cd0fcc1ee557bbe91e49c2ccf14f4?branch=rawhide
Log:
Fix FTBFS on s390x
---
diff --git a/edit-fix-oklab-endianness.diff b/edit-fix-oklab-endianness.diff
new file mode 100644
index 0000000..9f93c31
--- /dev/null
+++ b/edit-fix-oklab-endianness.diff
@@ -0,0 +1,41 @@
+--- a/crates/edit/src/oklab.rs
++++ b/crates/edit/src/oklab.rs
+@@ -22,12 +22,12 @@ impl StraightRgba {
+
+ #[inline]
+ pub const fn from_le(color: u32) -> Self {
+- StraightRgba(u32::from_le(color))
++ StraightRgba(color)
+ }
+
+ #[inline]
+ pub const fn from_be(color: u32) -> Self {
+- StraightRgba(u32::from_be(color))
++ StraightRgba(color.swap_bytes())
+ }
+
+ #[inline]
+@@ -37,12 +37,12 @@ impl StraightRgba {
+
+ #[inline]
+ pub const fn to_le(self) -> u32 {
+- self.0.to_le()
++ self.0
+ }
+
+ #[inline]
+ pub const fn to_be(self) -> u32 {
+- self.0.to_be()
++ self.0.swap_bytes()
+ }
+
+ #[inline]
+@@ -96,7 +96,7 @@ impl StraightRgba {
+
+ impl Debug for StraightRgba {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+- write!(f, "#{:08x}", self.0.to_be()) // Display as a hex color
++ write!(f, "#{:08x}", self.to_be()) // Display as a hex color
+ }
+ }
+
diff --git a/msedit.spec b/msedit.spec
index 45f4003..4cad785 100644
--- a/msedit.spec
+++ b/msedit.spec
@@ -26,6 +26,7 @@ License: MIT AND (MIT OR Apache-2.0)
URL: https://github.com/microsoft/edit
Source: %{url}/archive/v%{version}/edit-%{version}.tar.gz
Patch: edit-fix-metadata.diff
+Patch: edit-fix-oklab-endianness.diff
BuildRequires: cargo-rpm-macros >= 26
BuildRequires: desktop-file-utils
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-26 6:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 6:45 [rpms/msedit] rawhide: Fix FTBFS on s390x Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox