[packages/grim] upstream fix build failure on 32bit archs; rel 2

atler atler at pld-linux.org
Thu Feb 10 10:08:14 CET 2022


commit fca17dc1f367f7d67457addec786cbc7163e69d0
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Feb 10 10:07:32 2022 +0100

    upstream fix build failure on 32bit archs; rel 2

 grim.spec           |  4 +++-
 printf_format.patch | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/grim.spec b/grim.spec
index 00306e1..6bb386d 100644
--- a/grim.spec
+++ b/grim.spec
@@ -1,11 +1,12 @@
 Summary:	Grab images from a Wayland compositor
 Name:		grim
 Version:	1.4.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Applications
 Source0:	https://github.com/emersion/grim/releases/download/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	003f029dd7b6ce5c994ed19ce46b82a3
+Patch0:		printf_format.patch
 URL:		https://wayland.emersion.fr/grim
 BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
@@ -24,6 +25,7 @@ Grab images from a Wayland compositor.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %meson build
diff --git a/printf_format.patch b/printf_format.patch
new file mode 100644
index 0000000..fe4aab0
--- /dev/null
+++ b/printf_format.patch
@@ -0,0 +1,22 @@
+From 89e02e663fabc534b7e7039514f60a8c5d70070d Mon Sep 17 00:00:00 2001
+From: Simon Ser <contact at emersion.fr>
+Date: Wed, 9 Feb 2022 01:24:11 +0100
+Subject: [PATCH] write_jpg: fix printf format specifier
+
+---
+ write_jpg.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/write_jpg.c b/write_jpg.c
+index 4476f5f..0cb57d3 100644
+--- a/write_jpg.c
++++ b/write_jpg.c
+@@ -54,7 +54,7 @@ int write_to_jpeg_stream(pixman_image_t *image, FILE *stream, int quality) {
+ 	size_t written = fwrite(data, 1, len, stream);
+ 	if (written < len) {
+ 		free(data);
+-		fprintf(stderr, "Failed to write jpg; only %zu of %zu bytes written\n",
++		fprintf(stderr, "Failed to write jpg; only %zu of %lu bytes written\n",
+ 			written, len);
+ 		return -1;
+ 	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grim.git/commitdiff/fca17dc1f367f7d67457addec786cbc7163e69d0



More information about the pld-cvs-commit mailing list