Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rocminfo/files/, dev-util/rocminfo/
Date: Tue, 20 Aug 2019 18:38:11
Message-Id: 1566326269.1a3655e916666b37a5567c6c2484d10fd8b7b842.candrews@gentoo
1 commit: 1a3655e916666b37a5567c6c2484d10fd8b7b842
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 20 18:37:49 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 20 18:37:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a3655e9
7
8 dev-util/rocminfo: 2.7.0 version bump
9
10 Package-Manager: Portage-2.3.72, Repoman-2.3.17
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 dev-util/rocminfo/Manifest | 1 +
14 .../rocminfo/files/rocminfo-2.7.0-sizeof.patch | 23 ++++++++++++++
15 dev-util/rocminfo/rocminfo-2.7.0.ebuild | 37 ++++++++++++++++++++++
16 3 files changed, 61 insertions(+)
17
18 diff --git a/dev-util/rocminfo/Manifest b/dev-util/rocminfo/Manifest
19 index 28fcd10b1e6..3f79979809f 100644
20 --- a/dev-util/rocminfo/Manifest
21 +++ b/dev-util/rocminfo/Manifest
22 @@ -1 +1,2 @@
23 DIST rocminfo-2.6.0.tar.gz 12293 BLAKE2B b08725b45f48e78841da9d6e57bb19a441a423e20f853d16024c620914059abf3cb2e61c12ae6fdfdb85eb3e984d488ae9975ab3fd2fcc529ecb576c6816fc92 SHA512 e2dae7e2e02b674b3ad959a3dffdcd8f550842edfd0eac5866259a6a12de1a5f935afbdcb37845fa189d0937c41186f0eb8be08e7b346ddef959d5dd7b62dca7
24 +DIST rocminfo-2.7.0.tar.gz 12671 BLAKE2B 6cb6e2fa458224654f4b672d117e2a6c71c7d5aeed8ac71cf7ecddb76d9209f25596521b31465a94fde1c91744fc9bf68e637f7ff4f67a000cbfbe4793c5fa4b SHA512 ffdaa3d11d85475c7600c6b25d8eb7f90cbda13b820f33c250a7ac9b90f92d4d5352d8baee765b4bd3b9c7389b5ab6d3b87df77bf62d6696ed8cd96bfc6be1a0
25
26 diff --git a/dev-util/rocminfo/files/rocminfo-2.7.0-sizeof.patch b/dev-util/rocminfo/files/rocminfo-2.7.0-sizeof.patch
27 new file mode 100644
28 index 00000000000..2d96bb22779
29 --- /dev/null
30 +++ b/dev-util/rocminfo/files/rocminfo-2.7.0-sizeof.patch
31 @@ -0,0 +1,23 @@
32 +From cf96f42165fe76b98f653f979b4c182279dcac64 Mon Sep 17 00:00:00 2001
33 +From: Wilfried Holzke <gentoo@××××××.net>
34 +Date: Fri, 16 Aug 2019 22:04:52 +0200
35 +Subject: [PATCH] Fixed sizeof(err_val) to return the number of characters in
36 + the array
37 +
38 +---
39 + rocminfo.cc | 2 +-
40 + 1 file changed, 1 insertion(+), 1 deletion(-)
41 +
42 +diff --git a/rocminfo.cc b/rocminfo.cc
43 +index 9fddcfb..ee20da8 100755
44 +--- a/rocminfo.cc
45 ++++ b/rocminfo.cc
46 +@@ -72,7 +72,7 @@
47 + char* err_str = NULL; \
48 + if (hsa_status_string(err, \
49 + (const char**)&err_str) != HSA_STATUS_SUCCESS) { \
50 +- snprintf(&(err_val[0]), sizeof(err_val[12]), "%#x", (uint32_t)err); \
51 ++ snprintf(&(err_val[0]), sizeof(err_val), "%#x", (uint32_t)err); \
52 + err_str = &(err_val[0]); \
53 + } \
54 + printf("%shsa api call failure at: %s:%d\n", \
55
56 diff --git a/dev-util/rocminfo/rocminfo-2.7.0.ebuild b/dev-util/rocminfo/rocminfo-2.7.0.ebuild
57 new file mode 100644
58 index 00000000000..6a46a0806b1
59 --- /dev/null
60 +++ b/dev-util/rocminfo/rocminfo-2.7.0.ebuild
61 @@ -0,0 +1,37 @@
62 +# Copyright 1999-2019 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=7
66 +
67 +inherit cmake-utils
68 +
69 +if [[ ${PV} == *9999 ]] ; then
70 + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/rocminfo/"
71 + inherit git-r3
72 +else
73 + SRC_URI="https://github.com/RadeonOpenCompute/rocminfo/archive/roc-${PV}.tar.gz -> ${P}.tar.gz"
74 + KEYWORDS="~amd64"
75 + S="${WORKDIR}/rocminfo-roc-${PV}"
76 +fi
77 +
78 +DESCRIPTION="ROCm Application for Reporting System Info"
79 +HOMEPAGE="https://github.com/RadeonOpenCompute/rocminfo"
80 +LICENSE="MIT"
81 +SLOT="0/$(ver_cut 1-2)"
82 +
83 +RDEPEND="dev-libs/rocr-runtime"
84 +DEPEND="${RDEPEND}"
85 +
86 +PATCHES=(
87 + "${FILESDIR}/${PN}-2.6.0-cmake-variables.patch"
88 + "${FILESDIR}/${P}-sizeof.patch"
89 +)
90 +
91 +src_configure() {
92 + local mycmakeargs=(
93 + -DROCM_DIR="${ESYSROOT}/usr"
94 + -DROCR_INC_DIR="${ESYSROOT}/usr/include"
95 + -DROCR_LIB_DIR="${EPREFIX}/usr/$(get_libdir)"
96 + )
97 + cmake-utils_src_configure
98 +}