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 841E11382C5 for ; Mon, 4 Jan 2021 01:25:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9AEEAE092E; Mon, 4 Jan 2021 01:25:42 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 76A2FE092E for ; Mon, 4 Jan 2021 01:25:42 +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 8645E3410D0 for ; Mon, 4 Jan 2021 01:25:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 28E093FB for ; Mon, 4 Jan 2021 01:25:38 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1609723536.1f20db400637e0b9b5c0a147ccfdef132df226b4.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile/files/, x11-apps/radeon-profile/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-apps/radeon-profile/files/radeon-profile-20200824-segfault.patch x11-apps/radeon-profile/radeon-profile-20200824-r1.ebuild X-VCS-Directories: x11-apps/radeon-profile/files/ x11-apps/radeon-profile/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 1f20db400637e0b9b5c0a147ccfdef132df226b4 X-VCS-Branch: master Date: Mon, 4 Jan 2021 01:25:38 +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: 462d2068-b54d-47f6-8ef3-1024623ab09c X-Archives-Hash: 94a68930d7374ea14d88d551d9ecc7cf commit: 1f20db400637e0b9b5c0a147ccfdef132df226b4 Author: Lars Wendler gentoo org> AuthorDate: Mon Jan 4 01:25:30 2021 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Jan 4 01:25:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f20db40 x11-apps/radeon-profile: Revbump to fix segfault Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Lars Wendler gentoo.org> .../files/radeon-profile-20200824-segfault.patch | 33 +++++++++++ .../radeon-profile-20200824-r1.ebuild | 65 ++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/x11-apps/radeon-profile/files/radeon-profile-20200824-segfault.patch b/x11-apps/radeon-profile/files/radeon-profile-20200824-segfault.patch new file mode 100644 index 00000000000..141dd46d8f7 --- /dev/null +++ b/x11-apps/radeon-profile/files/radeon-profile-20200824-segfault.patch @@ -0,0 +1,33 @@ +From a98da7fd620a9b102a74affe16c0c0daccb97fc4 Mon Sep 17 00:00:00 2001 +From: Haakon Drews +Date: Mon, 4 Jan 2021 02:21:17 +0100 +Subject: [PATCH] Fix segfault when running as regular user + +Bug: https://github.com/marazmista/radeon-profile/issues/244 +Signed-off-by: Lars Wendler +--- + radeon-profile/gpu.cpp | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/radeon-profile/gpu.cpp b/radeon-profile/gpu.cpp +index ccd99d3..f5e32a3 100644 +--- a/radeon-profile/gpu.cpp ++++ b/radeon-profile/gpu.cpp +@@ -69,7 +69,13 @@ void gpu::detectCards() { + + int pciIdx = ueventContents.indexOf(QRegExp("PCI_SLOT_NAME.+")); + if (pciIdx != -1) +- gsi.name = globalStuff::grabSystemInfo("lspci -s " + ueventContents[pciIdx].split('=')[1])[0].split(':')[2].trimmed(); ++ { ++ auto input = globalStuff::grabSystemInfo("lspci -s " + ueventContents[pciIdx].split('=')[1]); ++ if(input.size() < 3) ++ gsi.name = "UNKNOWN"; ++ else ++ gsi.name = input[0].split(':')[2].trimmed(); ++ } + + gpuList.append(gsi); + +-- +2.30.0 + diff --git a/x11-apps/radeon-profile/radeon-profile-20200824-r1.ebuild b/x11-apps/radeon-profile/radeon-profile-20200824-r1.ebuild new file mode 100644 index 00000000000..1024baeddcb --- /dev/null +++ b/x11-apps/radeon-profile/radeon-profile-20200824-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit qmake-utils + +DESCRIPTION="Read current clocks of ATi/AMD Radeon cards" +HOMEPAGE="https://github.com/marazmista/radeon-profile" +if [[ "${PV}" == 99999999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/marazmista/radeon-profile.git" +else + SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi +LICENSE="GPL-2" +SLOT="0" + +IUSE="" + +S="${WORKDIR}/${P}/${PN}" + +RDEPEND=" + !