Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
Date: Fri, 25 Dec 2020 12:18:00
Message-Id: 1608898667.68249172a96a5c02745450f2dba9c270462eacc3.slyfox@gentoo
1 commit: 68249172a96a5c02745450f2dba9c270462eacc3
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 12:09:03 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 12:17:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68249172
7
8 sys-apps/opal-utils: drop old
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-apps/opal-utils/Manifest | 1 -
14 sys-apps/opal-utils/opal-utils-6.6.2.ebuild | 103 ----------------------------
15 2 files changed, 104 deletions(-)
16
17 diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest
18 index 4ace2757d56..640047cadc1 100644
19 --- a/sys-apps/opal-utils/Manifest
20 +++ b/sys-apps/opal-utils/Manifest
21 @@ -1,2 +1 @@
22 -DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27
23 DIST opal-utils-6.7.tar.gz 5320182 BLAKE2B e2fa86a7d5d96afda8f8266875687fb3c2e61ca2932ea5585921b2e5cffe30cb3554d85d078448cda032cbc0438d188ea40b5aad6e7f4c923e77fa4e42e6f364 SHA512 1626d64554c608cd823dc27b58f35206cf6d011afde124746e06fd5f1e8c714c199d9f2b60417415daf01cfbc46208d08d49eef29538a515b539a551b8c5e5c3
24
25 diff --git a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild
26 deleted file mode 100644
27 index c683ec843d8..00000000000
28 --- a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild
29 +++ /dev/null
30 @@ -1,103 +0,0 @@
31 -# Copyright 2019-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -PYTHON_COMPAT=( python3_{6,7,8} )
37 -
38 -inherit linux-info python-any-r1 systemd toolchain-funcs
39 -
40 -DESCRIPTION="OPAL firmware utilities"
41 -HOMEPAGE="https://github.com/open-power/skiboot"
42 -SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 -
44 -LICENSE="Apache-2.0 GPL-2+"
45 -SLOT="0"
46 -KEYWORDS="ppc64"
47 -IUSE="doc"
48 -
49 -DEPEND=""
50 -RDEPEND="${DEPEND}"
51 -BDEPEND="doc? (
52 - $(python_gen_any_dep '
53 - dev-python/sphinx[${PYTHON_USEDEP}]
54 - dev-python/recommonmark[${PYTHON_USEDEP}]
55 - ')
56 -)"
57 -
58 -CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS"
59 -ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard"
60 -ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon"
61 -ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils"
62 -
63 -S="${WORKDIR}/skiboot-${PV}"
64 -
65 -PATCHES=( "${FILESDIR}/flags.patch" )
66 -
67 -python_check_deps() {
68 - has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" &&
69 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
70 -}
71 -
72 -pkg_setup() {
73 - linux-info_pkg_setup
74 - use doc && python-any-r1_pkg_setup
75 -}
76 -
77 -src_configure() {
78 - tc-export CC LD
79 - export OPAL_PRD_VERSION="${PV}"
80 - export GARD_VERSION="${PV}"
81 - export PFLASH_VERSION="${PV}"
82 - export XSCOM_VERSION="${PV}"
83 - export FFSPART_VERSION="${PV}"
84 -}
85 -
86 -src_compile() {
87 - emake V=1 -C external/opal-prd
88 - emake V=1 -C external/gard
89 - emake V=1 -C external/pflash
90 - emake V=1 -C external/xscom-utils
91 - emake V=1 -C external/ffspart
92 -
93 - use doc && emake V=1 -C doc html
94 -}
95 -
96 -src_install() {
97 - emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install
98 - emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install
99 - emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install
100 - emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install
101 - dosbin external/ffspart/ffspart
102 -
103 - newinitd "${FILESDIR}"/opal-prd.initd opal-prd
104 - newconfd "${FILESDIR}"/opal-prd.confd opal-prd
105 -
106 - systemd_dounit external/opal-prd/opal-prd.service
107 -
108 - if use doc; then
109 - rm -r doc/_build/html/_sources || die
110 - local HTML_DOCS=( doc/_build/html/. )
111 - fi
112 - einstalldocs
113 -}
114 -
115 -src_test() {
116 - emake V=1 -C external/opal-prd test
117 - emake V=1 -C external/gard check
118 - # this test is fragile and fails because of filename path
119 - rm external/pflash/test/tests/01-info || die
120 - emake V=1 -C external/pflash check
121 - emake V=1 -C external/ffspart check
122 -}
123 -
124 -pkg_postinst() {
125 - if systemd_is_booted || has_version sys-apps/systemd; then
126 - echo
127 - ewarn "With systemd opal-prd.service will fail to start"
128 - ewarn "with 'mmap failed: Operation not permitted' error"
129 - ewarn "if /dev filesystem is mounted with 'noexec' option"
130 - ewarn "see https://github.com/open-power/skiboot/issues/258"
131 - echo
132 - fi
133 -}