[packages/swayidle] upstream build fix for 32bit platforms; rel 2
atler
atler at pld-linux.org
Wed Jan 19 16:22:49 CET 2022
commit f4ce663fee6c7a687277e1fce6c4d05b620233d6
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Jan 19 16:22:11 2022 +0100
upstream build fix for 32bit platforms; rel 2
printf_size_t.patch | 22 ++++++++++++++++++++++
swayidle.spec | 4 +++-
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/swayidle.spec b/swayidle.spec
index b01a588..2a11413 100644
--- a/swayidle.spec
+++ b/swayidle.spec
@@ -1,11 +1,12 @@
Summary: Idle management daemon for Wayland
Name: swayidle
Version: 1.7.1
-Release: 1
+Release: 2
License: MIT
Group: Applications
Source0: https://github.com/swaywm/swayidle/releases/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 7032c54a0357d92173e7a823e09a9b8c
+Patch0: printf_size_t.patch
URL: https://github.com/swaywm/swayidle
BuildRequires: bash-completion
BuildRequires: fish-devel
@@ -56,6 +57,7 @@ ZSH completion for swayidle.
%prep
%setup -q
+%patch0 -p1
%build
%meson build
diff --git a/printf_size_t.patch b/printf_size_t.patch
new file mode 100644
index 0000000..13c7cc7
--- /dev/null
+++ b/printf_size_t.patch
@@ -0,0 +1,22 @@
+From e81d40fca7533f73319e76e42fa9694b21cc9e6e Mon Sep 17 00:00:00 2001
+From: Stacy Harper <contact at stacyharper.net>
+Date: Sat, 15 Jan 2022 17:39:47 +0100
+Subject: [PATCH] Fix printf using size_t lineno variable
+
+---
+ main.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/main.c b/main.c
+index 9ea3f0b3..b524e738 100644
+--- a/main.c
++++ b/main.c
+@@ -1004,7 +1004,7 @@ static int load_config(const char *config_path) {
+ parse_idlehint(p.we_wordc, p.we_wordv);
+ } else {
+ line[i] = 0;
+- swayidle_log(LOG_ERROR, "Unexpected keyword \"%s\" in line %lu", line, lineno);
++ swayidle_log(LOG_ERROR, "Unexpected keyword \"%s\" in line %zu", line, lineno);
+ free(line);
+ return -EINVAL;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/swayidle.git/commitdiff/f4ce663fee6c7a687277e1fce6c4d05b620233d6
More information about the pld-cvs-commit
mailing list