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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 957C5158090 for ; Sun, 15 May 2022 10:49:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9456E08EF; Sun, 15 May 2022 10:49:25 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9ED0CE08EF for ; Sun, 15 May 2022 10:49:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BD892341CF5 for ; Sun, 15 May 2022 10:49:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75662466 for ; Sun, 15 May 2022 10:49:22 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1652611740.0bce81a59fb6f829b6d0bba9988dc6c6e20c815f.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/ppc64-diag/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/ppc64-diag/Manifest sys-apps/ppc64-diag/ppc64-diag-2.7.8.ebuild X-VCS-Directories: sys-apps/ppc64-diag/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 0bce81a59fb6f829b6d0bba9988dc6c6e20c815f X-VCS-Branch: master Date: Sun, 15 May 2022 10:49:22 +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: 51a21f8f-9465-43d6-8a13-b786ce8c100d X-Archives-Hash: 2e69e5cf9bd170ad55068a728f16c190 commit: 0bce81a59fb6f829b6d0bba9988dc6c6e20c815f Author: Georgy Yakovlev gentoo org> AuthorDate: Sun May 15 10:28:53 2022 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Sun May 15 10:49:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bce81a5 sys-apps/ppc64-diag: add 2.7.8 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/ppc64-diag/Manifest | 1 + sys-apps/ppc64-diag/ppc64-diag-2.7.8.ebuild | 73 +++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/sys-apps/ppc64-diag/Manifest b/sys-apps/ppc64-diag/Manifest index 3938ff251738..8b239cdba2e3 100644 --- a/sys-apps/ppc64-diag/Manifest +++ b/sys-apps/ppc64-diag/Manifest @@ -1 +1,2 @@ DIST ppc64-diag-2.7.7.tar.gz 423357 BLAKE2B b32def540811f383e401d352d17f2edce6a998a91a7b27bcab981e42469f44aaa505104ed2d2ced8a85485c0886525ff5128b36cdbad3a8eed90e8002877498c SHA512 42d94214345ab8deb7bd9ee8b145052fc2f733ba13d1567dbe6592fe9306670e3cd0ab6122e515464f7050753a992061c056e009673c7f8f6e554e9eaf75c550 +DIST ppc64-diag-2.7.8.tar.gz 424366 BLAKE2B e5e4791dffba4ede725051682019f0b75c2ee718fd33170912ccf228946fa56b4e63930a9b9c8d7e58ce27f0a18b03ea7c58ba259b781d4c40eed945e2d895a9 SHA512 1a8890624609f64eb412cabb690f30a67b7f714260de14acc195268ecbda79d6c5e7d80694dabb3ab148fc74a4df6b8e147750e869ab49f40d04742ef284398e diff --git a/sys-apps/ppc64-diag/ppc64-diag-2.7.8.ebuild b/sys-apps/ppc64-diag/ppc64-diag-2.7.8.ebuild new file mode 100644 index 000000000000..d8d62ef7d06e --- /dev/null +++ b/sys-apps/ppc64-diag/ppc64-diag-2.7.8.ebuild @@ -0,0 +1,73 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="Diagnostic tools for PowerLinux" +HOMEPAGE="https://github.com/power-ras/ppc64-diag" +SRC_URI="https://github.com/power-ras/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="rtas" + +DEPEND="virtual/libudev:= + rtas? ( + sys-libs/ncurses:0= + sys-libs/librtas + sys-libs/libservicelog + >=sys-libs/libvpd-2.2.9:= + ) +" + +RDEPEND="${DEPEND}" + +BDEPEND=" + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/fix-systemd-unit-path.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf $(use_with rtas librtas) + # handle ncurses[tinfo] + sed -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs ncurses):g" \ + -i Makefile || die +} + +src_install() { + default + newinitd "${FILESDIR}/opal_errd.initd" opal_errd + + if use rtas; then + newinitd "${FILESDIR}/rtas_errd.initd" rtas_errd + keepdir /var/log/ppc64-diag/diag_disk + else + # makefile installs it unconditionally + rm -rf "${ED}/lib/systemd/system/rtas_errd.service" || die + rm -rf "${ED}/usr/lib/systemd/system/rtas_errd.service" || die + fi + + keepdir /var/log/opal-elog + keepdir /var/log/dump +} + +src_test() { + # it assumes MKTEMP created dir in /tmp, add /var to the string. + # /varplatform.0x01 becomes platform.0x01, just as test expects + # so we sed a sed expression, don't judge me + sed -i 's%\/tmp/%\/var\/tmp\/%' opal_errd/tests/test-extract_opal_dump-000 || die + emake check +}