[gnome-build-meta/abderrahim/3.37.2] sysprof: backport a patch to fix build on 32-bit platforms
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/3.37.2] sysprof: backport a patch to fix build on 32-bit platforms
- Date: Sat, 6 Jun 2020 09:26:16 +0000 (UTC)
commit d81df5c49b9b93599fe3692ac12c58993391891a
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Sat Jun 6 10:25:54 2020 +0100
sysprof: backport a patch to fix build on 32-bit platforms
elements/core/sysprof.bst | 3 +++
files/sysprof/32-bit-fix.patch | 29 +++++++++++++++++++++++++++++
2 files changed, 32 insertions(+)
---
diff --git a/elements/core/sysprof.bst b/elements/core/sysprof.bst
index dc220d7d..8463ad34 100644
--- a/elements/core/sysprof.bst
+++ b/elements/core/sysprof.bst
@@ -3,6 +3,9 @@ kind: meson
sources:
- kind: tar
url: gnome_downloads:sysprof/3.36/sysprof-3.36.0.tar.xz
+- kind: patch
+ path: files/sysprof/32-bit-fix.patch
+
build-depends:
- freedesktop-sdk.bst:components/git-minimal.bst
- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
diff --git a/files/sysprof/32-bit-fix.patch b/files/sysprof/32-bit-fix.patch
new file mode 100644
index 00000000..d7b51ef5
--- /dev/null
+++ b/files/sysprof/32-bit-fix.patch
@@ -0,0 +1,29 @@
+From 5dea152c7728f5a37370ad8a229115833e36b4f6 Mon Sep 17 00:00:00 2001
+From: Rasmus Thomsen <oss cogitri dev>
+Date: Sat, 7 Mar 2020 10:44:16 +0100
+Subject: [PATCH] tests: use G_GSIZE_FORMAT instead of G_GUINT64_FORMAT for
+ gsize
+
+This fixes the build on 32-bit platforms with -Werror-format
+
+fixes #32
+---
+ src/tests/allocs-by-size.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tests/allocs-by-size.c b/src/tests/allocs-by-size.c
+index 666113a..6260d4b 100644
+--- a/src/tests/allocs-by-size.c
++++ b/src/tests/allocs-by-size.c
+@@ -109,7 +109,7 @@ allocs_by_size (SysprofCaptureReader *reader)
+ {
+ const Item *item = &g_array_index (ar, Item, i);
+
+- g_print ("%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT"\n",
++ g_print ("%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT"\n",
+ item->size, item->cmp, item->count);
+ }
+ }
+--
+2.26.2
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]