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/msedit] rawhide: Fix FTBFS on s390x
Date: Thu, 26 Nov 2026 06:45:39 GMT	[thread overview]
Message-ID: <179567553940.1.15455584821341949246.rpms-msedit-aa62657e5e4c@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-26  6:45 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=179567553940.1.15455584821341949246.rpms-msedit-aa62657e5e4c@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