From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D078F138359 for ; Sun, 30 Aug 2020 13:11:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02A37E0891; Sun, 30 Aug 2020 13:11:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E2370E0891 for ; Sun, 30 Aug 2020 13:11:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 08E35335DA5 for ; Sun, 30 Aug 2020 13:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72636335 for ; Sun, 30 Aug 2020 13:11:46 +0000 (UTC) From: "Mart Raudsepp" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mart Raudsepp" Message-ID: <1598793089.7e190c9a2200ebe2115be1c3044be955bdcefc3b.leio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysprof/, dev-util/sysprof/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/sysprof/files/3.36.0-fix-32bit-tests-build.patch dev-util/sysprof/sysprof-3.36.0.ebuild X-VCS-Directories: dev-util/sysprof/files/ dev-util/sysprof/ X-VCS-Committer: leio X-VCS-Committer-Name: Mart Raudsepp X-VCS-Revision: 7e190c9a2200ebe2115be1c3044be955bdcefc3b X-VCS-Branch: master Date: Sun, 30 Aug 2020 13:11:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0fa77ebd-48fd-4fe0-98fa-3950b6111d95 X-Archives-Hash: 11ae614d945a402ba2bd0be8440af49c commit: 7e190c9a2200ebe2115be1c3044be955bdcefc3b Author: Mart Raudsepp gentoo org> AuthorDate: Sun Aug 30 13:11:16 2020 +0000 Commit: Mart Raudsepp gentoo org> CommitDate: Sun Aug 30 13:11:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e190c9a dev-util/sysprof: fix tests compilation on 32bit architectures Closes: https://bugs.gentoo.org/739626 Package-Manager: Portage-2.3.103, Repoman-2.3.20 Signed-off-by: Mart Raudsepp gentoo.org> .../files/3.36.0-fix-32bit-tests-build.patch | 29 ++++++++++++++++++++++ dev-util/sysprof/sysprof-3.36.0.ebuild | 4 +++ 2 files changed, 33 insertions(+) diff --git a/dev-util/sysprof/files/3.36.0-fix-32bit-tests-build.patch b/dev-util/sysprof/files/3.36.0-fix-32bit-tests-build.patch new file mode 100644 index 00000000000..a9d4ab58ef9 --- /dev/null +++ b/dev-util/sysprof/files/3.36.0-fix-32bit-tests-build.patch @@ -0,0 +1,29 @@ +From 5dea152c7728f5a37370ad8a229115833e36b4f6 Mon Sep 17 00:00:00 2001 +From: Rasmus Thomsen +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.20.1 + diff --git a/dev-util/sysprof/sysprof-3.36.0.ebuild b/dev-util/sysprof/sysprof-3.36.0.ebuild index f177e8ac828..4d74c726696 100644 --- a/dev-util/sysprof/sysprof-3.36.0.ebuild +++ b/dev-util/sysprof/sysprof-3.36.0.ebuild @@ -34,6 +34,10 @@ BDEPEND=" virtual/pkgconfig " +PATCHES=( + "${FILESDIR}"/${PV}-fix-32bit-tests-build.patch +) + src_prepare() { xdg_src_prepare # These are installed by dev-util/sysprof-capture