[packages/swayimg] fix build on 32-bit archs; rel 2
atler
atler at pld-linux.org
Fri Jun 19 01:39:43 CEST 2026
commit 8c008cc416db7aa61888149f597dfe0b83eb05db
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jun 19 01:38:29 2026 +0200
fix build on 32-bit archs; rel 2
don't assume specific type for size_t
see https://github.com/artemsen/swayimg/issues/517
swayimg.spec | 4 +++-
types.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/swayimg.spec b/swayimg.spec
index 47efd4f..7bc0b50 100644
--- a/swayimg.spec
+++ b/swayimg.spec
@@ -1,11 +1,12 @@
Summary: Image viewer for Wayland
Name: swayimg
Version: 5.3
-Release: 1
+Release: 2
License: MIT
Group: Applications
Source0: https://github.com/artemsen/swayimg/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 0cc279a07fc1c91ee0dc5f3d4d572ea5
+Patch0: types.patch
URL: https://github.com/artemsen/swayimg
BuildRequires: OpenEXR-devel >= 3.4
BuildRequires: bash-completion-devel
@@ -51,6 +52,7 @@ display servers.
%prep
%setup -q
+%patch -P0 -p1
%build
%meson \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..8a1d586
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- swayimg-5.3/src/formats/xbm.cpp.orig 2026-06-16 12:09:37.000000000 +0200
++++ swayimg-5.3/src/formats/xbm.cpp 2026-06-19 01:35:21.095322264 +0200
+@@ -22,7 +22,7 @@
+ size_t height = 0;
+ std::stringstream ss(
+ std::string(reinterpret_cast<const char*>(data.data),
+- std::min(data.size, 512UL)));
++ std::min(data.size, (size_t) 512)));
+ std::string line;
+ while ((width == 0 || height == 0) && std::getline(ss, line)) {
+ if (width == 0) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/swayimg.git/commitdiff/8c008cc416db7aa61888149f597dfe0b83eb05db
More information about the pld-cvs-commit
mailing list