[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 6c205769c95f5cf3a79be6c7c9f1513bcf6faf7b Author: Georgy Yakovlev gentoo org> AuthorDate: Mon Apr 3 17:14:17 2023 + Commit: Georgy Yakovlev gentoo org> CommitDate: Mon Apr 3 17:15:21 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c205769 sys-apps/opal-utils: enable py3.11 Closes: https://bugs.gentoo.org/897258 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-7.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-7.0.ebuild b/sys-apps/opal-utils/opal-utils-7.0.ebuild index 5864578f225c..231e4fdcf567 100644 --- a/sys-apps/opal-utils/opal-utils-7.0.ebuild +++ b/sys-apps/opal-utils/opal-utils-7.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) inherit linux-info python-single-r1 systemd toolchain-funcs
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 48cd1cdb11e276b155da253f4d56d5f0d79ada3c Author: Georgy Yakovlev gentoo org> AuthorDate: Fri Nov 11 11:57:51 2022 + Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Nov 11 11:57:51 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48cd1cdb sys-apps/opal-utils: drop 6.8 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest | 1 - sys-apps/opal-utils/opal-utils-6.8.ebuild | 93 --- 2 files changed, 94 deletions(-) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 72dec2bddbcc..9e82638e0a77 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,2 +1 @@ -DIST opal-utils-6.8.tar.gz 5321377 BLAKE2B 3be812618dcbd3d877576e1dec0b6a74ad9091b59760bd8f1f67ba9a8efbce79cba4130464dcb6f2b8e61dedca3a1a60103f36d04fcd234b5a4c577c6e07635b SHA512 a799112c14abdcdb37e1a4c63e48e12bb7a67b6c90476d4e60597f06fd6050a58ffd25859cf6bb12c393522e4b4771ce3aa25a1277bac35855d599e9eb357814 DIST opal-utils-7.0.tar.gz 5418069 BLAKE2B 86ad4c1a3000753b0bd48f0cf50e9a91eeff8c2a420a6339e4359a5ce6a35954120d7fe7caff64def83bb06e96c602d099fb1fc8e5b580adb67c48a09fb9d7a8 SHA512 72198f0d1bb0d09cb74fe4656421a73ec1a604ec6fa0965bd82e56819a2d41a1a6588f8a8cc7eb507d73ef401f8557901a5305c844fbfc9f27534c7b2e2e9db3 diff --git a/sys-apps/opal-utils/opal-utils-6.8.ebuild b/sys-apps/opal-utils/opal-utils-6.8.ebuild deleted file mode 100644 index 458c60157ef3.. --- a/sys-apps/opal-utils/opal-utils-6.8.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 2019-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..10} ) - -inherit linux-info python-single-r1 systemd toolchain-funcs - -DESCRIPTION="OPAL firmware utilities" -HOMEPAGE="https://github.com/open-power/skiboot; -SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 GPL-2+" -SLOT="0" -KEYWORDS="ppc64" -IUSE="doc" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DEPEND="" -RDEPEND="${DEPEND} ${PYTHON_DEPS}" - -BDEPEND="doc? ( $(python_gen_cond_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/recommonmark[${PYTHON_USEDEP}]') -)" - -CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" -ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" -ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" -ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" - -S="${WORKDIR}/skiboot-${PV}" - -PATCHES=( - "${FILESDIR}/flags.patch" -) - -pkg_setup() { - linux-info_pkg_setup - python-single-r1_pkg_setup -} - -src_configure() { - tc-export CC LD - export OPAL_PRD_VERSION="${PV}" - export GARD_VERSION="${PV}" - export PFLASH_VERSION="${PV}" - export XSCOM_VERSION="${PV}" - export FFSPART_VERSION="${PV}" -} - -src_compile() { - emake V=1 -C external/opal-prd - emake V=1 -C external/gard - emake V=1 -C external/pflash - emake V=1 -C external/xscom-utils - emake V=1 -C external/ffspart - - use doc && emake V=1 -C doc html -} - -src_install() { - emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install - dosbin external/ffspart/ffspart - - python_domodule external/pci-scripts/ppc.py - python_doscript external/pci-scripts/phberr.py - - newinitd "${FILESDIR}"/opal-prd.initd opal-prd - newconfd "${FILESDIR}"/opal-prd.confd opal-prd - - systemd_dounit external/opal-prd/opal-prd.service - - if use doc; then - rm -r doc/_build/html/_sources || die - local HTML_DOCS=( doc/_build/html/. ) - fi - einstalldocs -} - -src_test() { - emake V=1 -C external/opal-prd test - emake V=1 -C external/gard check - # this test is fragile and fails because of filename path - rm external/pflash/test/tests/01-info || die - emake V=1 -C external/pflash check - emake V=1 -C external/ffspart check -}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 700e1705f291d47c4eeb7bb812ef6592c2561261 Author: Georgy Yakovlev gentoo org> AuthorDate: Fri Nov 11 11:57:12 2022 + Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Nov 11 11:57:21 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=700e1705 sys-apps/opal-utils: stabilize 7.0 for ppc64 Closes: https://bugs.gentoo.org/878963 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-7.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-7.0.ebuild b/sys-apps/opal-utils/opal-utils-7.0.ebuild index c0dc400c7312..d59878c0de31 100644 --- a/sys-apps/opal-utils/opal-utils-7.0.ebuild +++ b/sys-apps/opal-utils/opal-utils-7.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="Apache-2.0 GPL-2+" SLOT="0" -KEYWORDS="~ppc64" +KEYWORDS="ppc64" IUSE="doc" REQUIRED_USE="${PYTHON_REQUIRED_USE}"
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: b80da88e70669297ff9374738d7d5c7a89a6ae0f Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Jan 13 21:28:29 2022 + Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Jan 13 21:28:29 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b80da88e sys-apps/opal-utils: add 7.0 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest | 1 + sys-apps/opal-utils/opal-utils-7.0.ebuild | 95 +++ 2 files changed, 96 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index e789980f23a7..72dec2bddbcc 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1 +1,2 @@ DIST opal-utils-6.8.tar.gz 5321377 BLAKE2B 3be812618dcbd3d877576e1dec0b6a74ad9091b59760bd8f1f67ba9a8efbce79cba4130464dcb6f2b8e61dedca3a1a60103f36d04fcd234b5a4c577c6e07635b SHA512 a799112c14abdcdb37e1a4c63e48e12bb7a67b6c90476d4e60597f06fd6050a58ffd25859cf6bb12c393522e4b4771ce3aa25a1277bac35855d599e9eb357814 +DIST opal-utils-7.0.tar.gz 5418069 BLAKE2B 86ad4c1a3000753b0bd48f0cf50e9a91eeff8c2a420a6339e4359a5ce6a35954120d7fe7caff64def83bb06e96c602d099fb1fc8e5b580adb67c48a09fb9d7a8 SHA512 72198f0d1bb0d09cb74fe4656421a73ec1a604ec6fa0965bd82e56819a2d41a1a6588f8a8cc7eb507d73ef401f8557901a5305c844fbfc9f27534c7b2e2e9db3 diff --git a/sys-apps/opal-utils/opal-utils-7.0.ebuild b/sys-apps/opal-utils/opal-utils-7.0.ebuild new file mode 100644 index ..c0dc400c7312 --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-7.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{7..10} ) + +inherit linux-info python-single-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="" +RDEPEND="${DEPEND} ${PYTHON_DEPS}" + +BDEPEND="doc? ( $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}]') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +PATCHES=( + "${FILESDIR}/flags.patch" +) + +pkg_setup() { + linux-info_pkg_setup + python-single-r1_pkg_setup +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" + export FFSPART_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + emake V=1 -C external/ffspart + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + dosbin external/ffspart/ffspart + + python_domodule external/pci-scripts/ppc.py + python_doscript external/pci-scripts/phberr.py + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +} + +src_test() { + emake V=1 -C external/opal-prd test + emake V=1 -C external/gard check + + # 2 test are fragile and fails because of filename path + rm -v external/pflash/test/tests/01-info || die + rm -v external/pflash/test/tests/06-miscprint || die + emake V=1 -C external/pflash check + emake V=1 -C external/ffspart check +}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: f8131e08ec9dd3cce01b3976de2be04b8926357b Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Nov 9 04:46:50 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Nov 9 04:46:50 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8131e08 sys-apps/opal-utils: drop 6.7 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest | 1 - sys-apps/opal-utils/opal-utils-6.7.ebuild | 94 --- 2 files changed, 95 deletions(-) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 94472e0f1aa..e789980f23a 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,2 +1 @@ -DIST opal-utils-6.7.tar.gz 5320182 BLAKE2B e2fa86a7d5d96afda8f8266875687fb3c2e61ca2932ea5585921b2e5cffe30cb3554d85d078448cda032cbc0438d188ea40b5aad6e7f4c923e77fa4e42e6f364 SHA512 1626d64554c608cd823dc27b58f35206cf6d011afde124746e06fd5f1e8c714c199d9f2b60417415daf01cfbc46208d08d49eef29538a515b539a551b8c5e5c3 DIST opal-utils-6.8.tar.gz 5321377 BLAKE2B 3be812618dcbd3d877576e1dec0b6a74ad9091b59760bd8f1f67ba9a8efbce79cba4130464dcb6f2b8e61dedca3a1a60103f36d04fcd234b5a4c577c6e07635b SHA512 a799112c14abdcdb37e1a4c63e48e12bb7a67b6c90476d4e60597f06fd6050a58ffd25859cf6bb12c393522e4b4771ce3aa25a1277bac35855d599e9eb357814 diff --git a/sys-apps/opal-utils/opal-utils-6.7.ebuild b/sys-apps/opal-utils/opal-utils-6.7.ebuild deleted file mode 100644 index fdaa7271922..000 --- a/sys-apps/opal-utils/opal-utils-6.7.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 2019-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9} ) - -inherit linux-info python-any-r1 systemd toolchain-funcs - -DESCRIPTION="OPAL firmware utilities" -HOMEPAGE="https://github.com/open-power/skiboot; -SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 GPL-2+" -SLOT="0" -KEYWORDS="ppc64" -IUSE="doc" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="doc? ( - $(python_gen_any_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/recommonmark[${PYTHON_USEDEP}] - ') -)" - -CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" -ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" -ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" -ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" - -S="${WORKDIR}/skiboot-${PV}" - -PATCHES=( - "${FILESDIR}/flags.patch" -) - -python_check_deps() { - has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -pkg_setup() { - linux-info_pkg_setup - use doc && python-any-r1_pkg_setup -} - -src_configure() { - tc-export CC LD - export OPAL_PRD_VERSION="${PV}" - export GARD_VERSION="${PV}" - export PFLASH_VERSION="${PV}" - export XSCOM_VERSION="${PV}" - export FFSPART_VERSION="${PV}" -} - -src_compile() { - emake V=1 -C external/opal-prd - emake V=1 -C external/gard - emake V=1 -C external/pflash - emake V=1 -C external/xscom-utils - emake V=1 -C external/ffspart - - use doc && emake V=1 -C doc html -} - -src_install() { - emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install - dosbin external/ffspart/ffspart - - newinitd "${FILESDIR}"/opal-prd.initd opal-prd - newconfd "${FILESDIR}"/opal-prd.confd opal-prd - - systemd_dounit external/opal-prd/opal-prd.service - - if use doc; then - rm -r doc/_build/html/_sources || die - local HTML_DOCS=( doc/_build/html/. ) - fi - einstalldocs -} - -src_test() { - emake V=1 -C external/opal-prd test - emake V=1 -C external/gard check - # this test is fragile and fails because of filename path - rm external/pflash/test/tests/01-info || die - emake V=1 -C external/pflash check - emake V=1 -C external/ffspart check -}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 84ea416179c82002618df6a692dc675ab5486d5c Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Nov 9 04:46:25 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Nov 9 04:46:25 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84ea4161 sys-apps/opal-utils: stabilize 6.8 for ppc64 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-6.8.ebuild b/sys-apps/opal-utils/opal-utils-6.8.ebuild index 734b96b7903..458c60157ef 100644 --- a/sys-apps/opal-utils/opal-utils-6.8.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.8.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="Apache-2.0 GPL-2+" SLOT="0" -KEYWORDS="~ppc64" +KEYWORDS="ppc64" IUSE="doc" REQUIRED_USE="${PYTHON_REQUIRED_USE}"
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 45599c724ddf94bcf31fbb4dbd65bfa68215a275 Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Nov 9 04:44:31 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Nov 9 04:44:31 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45599c72 sys-apps/opal-utils: enable py3.10 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-6.8.ebuild b/sys-apps/opal-utils/opal-utils-6.8.ebuild index ccb349721b3..734b96b7903 100644 --- a/sys-apps/opal-utils/opal-utils-6.8.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.8.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{7..10} ) inherit linux-info python-single-r1 systemd toolchain-funcs
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 82e47f4d61119e126e4c7061662084a9369e8602 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun May 30 01:07:15 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun May 30 01:07:33 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82e47f4d sys-apps/opal-utils: add 6.8, drop 6.7-r2 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest| 1 + sys-apps/opal-utils/{opal-utils-6.7-r2.ebuild => opal-utils-6.8.ebuild} | 0 2 files changed, 1 insertion(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 640047cadc1..94472e0f1aa 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1 +1,2 @@ DIST opal-utils-6.7.tar.gz 5320182 BLAKE2B e2fa86a7d5d96afda8f8266875687fb3c2e61ca2932ea5585921b2e5cffe30cb3554d85d078448cda032cbc0438d188ea40b5aad6e7f4c923e77fa4e42e6f364 SHA512 1626d64554c608cd823dc27b58f35206cf6d011afde124746e06fd5f1e8c714c199d9f2b60417415daf01cfbc46208d08d49eef29538a515b539a551b8c5e5c3 +DIST opal-utils-6.8.tar.gz 5321377 BLAKE2B 3be812618dcbd3d877576e1dec0b6a74ad9091b59760bd8f1f67ba9a8efbce79cba4130464dcb6f2b8e61dedca3a1a60103f36d04fcd234b5a4c577c6e07635b SHA512 a799112c14abdcdb37e1a4c63e48e12bb7a67b6c90476d4e60597f06fd6050a58ffd25859cf6bb12c393522e4b4771ce3aa25a1277bac35855d599e9eb357814 diff --git a/sys-apps/opal-utils/opal-utils-6.7-r2.ebuild b/sys-apps/opal-utils/opal-utils-6.8.ebuild similarity index 100% rename from sys-apps/opal-utils/opal-utils-6.7-r2.ebuild rename to sys-apps/opal-utils/opal-utils-6.8.ebuild
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 0b83df09452331c5fb73311b5ab51d103fcdae0d Author: Georgy Yakovlev gentoo org> AuthorDate: Sat May 29 23:36:32 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sat May 29 23:39:36 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b83df09 sys-apps/opal-utils: call python-single-r1_pkg_setup Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.7-r2.ebuild | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sys-apps/opal-utils/opal-utils-6.7-r2.ebuild b/sys-apps/opal-utils/opal-utils-6.7-r2.ebuild index 4df7961ced0..ccb349721b3 100644 --- a/sys-apps/opal-utils/opal-utils-6.7-r2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.7-r2.ebuild @@ -37,15 +37,9 @@ PATCHES=( "${FILESDIR}/flags.patch" ) -python_check_deps() { - use doc || return 0 - has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - pkg_setup() { linux-info_pkg_setup - python-any-r1_pkg_setup + python-single-r1_pkg_setup } src_configure() {
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 62044185ef1c655b99c16826b46083f42a25861a Author: Georgy Yakovlev gentoo org> AuthorDate: Sat May 29 19:52:10 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sat May 29 19:53:43 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62044185 sys-apps/opal-utils: revbump again, fix python deps Signed-off-by: Georgy Yakovlev gentoo.org> .../{opal-utils-6.7-r1.ebuild => opal-utils-6.7-r2.ebuild} | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys-apps/opal-utils/opal-utils-6.7-r1.ebuild b/sys-apps/opal-utils/opal-utils-6.7-r2.ebuild similarity index 91% rename from sys-apps/opal-utils/opal-utils-6.7-r1.ebuild rename to sys-apps/opal-utils/opal-utils-6.7-r2.ebuild index 21d40bc40a1..4df7961ced0 100644 --- a/sys-apps/opal-utils/opal-utils-6.7-r1.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.7-r2.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{7,8,9} ) -inherit linux-info python-any-r1 systemd toolchain-funcs +inherit linux-info python-single-r1 systemd toolchain-funcs DESCRIPTION="OPAL firmware utilities" HOMEPAGE="https://github.com/open-power/skiboot; @@ -16,14 +16,14 @@ SLOT="0" KEYWORDS="~ppc64" IUSE="doc" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + DEPEND="" RDEPEND="${DEPEND} ${PYTHON_DEPS}" -BDEPEND="doc? ( - $(python_gen_any_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/recommonmark[${PYTHON_USEDEP}] - ') +BDEPEND="doc? ( $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}]') )" CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS"
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: f7a170606510e4af899c439cce537a29307aed2b Author: Georgy Yakovlev gentoo org> AuthorDate: Sat May 29 18:28:16 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sat May 29 18:28:31 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7a17060 sys-apps/opal-utils: revbump, install phberr.py script useful to decode EEH from dmesg Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.7-r1.ebuild | 99 1 file changed, 99 insertions(+) diff --git a/sys-apps/opal-utils/opal-utils-6.7-r1.ebuild b/sys-apps/opal-utils/opal-utils-6.7-r1.ebuild new file mode 100644 index 000..21d40bc40a1 --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.7-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND} ${PYTHON_DEPS}" + +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +PATCHES=( + "${FILESDIR}/flags.patch" +) + +python_check_deps() { + use doc || return 0 + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + python-any-r1_pkg_setup +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" + export FFSPART_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + emake V=1 -C external/ffspart + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + dosbin external/ffspart/ffspart + + python_domodule external/pci-scripts/ppc.py + python_doscript external/pci-scripts/phberr.py + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +} + +src_test() { + emake V=1 -C external/opal-prd test + emake V=1 -C external/gard check + # this test is fragile and fails because of filename path + rm external/pflash/test/tests/01-info || die + emake V=1 -C external/pflash check + emake V=1 -C external/ffspart check +}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 9a726f208ba5e13b3559311cf491123f5ce1a265 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Apr 18 00:20:08 2021 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Apr 18 00:30:47 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a726f20 sys-apps/opal-utils: add python3_9 support Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.7.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-apps/opal-utils/opal-utils-6.7.ebuild b/sys-apps/opal-utils/opal-utils-6.7.ebuild index 62ba3a2a07e..fdaa7271922 100644 --- a/sys-apps/opal-utils/opal-utils-6.7.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.7.ebuild @@ -1,9 +1,9 @@ -# Copyright 2019-2020 Gentoo Authors +# Copyright 2019-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_COMPAT=( python3_{7,8,9} ) inherit linux-info python-any-r1 systemd toolchain-funcs
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 68249172a96a5c02745450f2dba9c270462eacc3 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Dec 25 12:09:03 2020 + Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Dec 25 12:17:47 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68249172 sys-apps/opal-utils: drop old Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich gentoo.org> sys-apps/opal-utils/Manifest| 1 - sys-apps/opal-utils/opal-utils-6.6.2.ebuild | 103 2 files changed, 104 deletions(-) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 4ace2757d56..640047cadc1 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,2 +1 @@ -DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27 DIST opal-utils-6.7.tar.gz 5320182 BLAKE2B e2fa86a7d5d96afda8f8266875687fb3c2e61ca2932ea5585921b2e5cffe30cb3554d85d078448cda032cbc0438d188ea40b5aad6e7f4c923e77fa4e42e6f364 SHA512 1626d64554c608cd823dc27b58f35206cf6d011afde124746e06fd5f1e8c714c199d9f2b60417415daf01cfbc46208d08d49eef29538a515b539a551b8c5e5c3 diff --git a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild deleted file mode 100644 index c683ec843d8..000 --- a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2019-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8} ) - -inherit linux-info python-any-r1 systemd toolchain-funcs - -DESCRIPTION="OPAL firmware utilities" -HOMEPAGE="https://github.com/open-power/skiboot; -SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 GPL-2+" -SLOT="0" -KEYWORDS="ppc64" -IUSE="doc" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="doc? ( - $(python_gen_any_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/recommonmark[${PYTHON_USEDEP}] - ') -)" - -CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" -ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" -ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" -ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" - -S="${WORKDIR}/skiboot-${PV}" - -PATCHES=( "${FILESDIR}/flags.patch" ) - -python_check_deps() { - has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -pkg_setup() { - linux-info_pkg_setup - use doc && python-any-r1_pkg_setup -} - -src_configure() { - tc-export CC LD - export OPAL_PRD_VERSION="${PV}" - export GARD_VERSION="${PV}" - export PFLASH_VERSION="${PV}" - export XSCOM_VERSION="${PV}" - export FFSPART_VERSION="${PV}" -} - -src_compile() { - emake V=1 -C external/opal-prd - emake V=1 -C external/gard - emake V=1 -C external/pflash - emake V=1 -C external/xscom-utils - emake V=1 -C external/ffspart - - use doc && emake V=1 -C doc html -} - -src_install() { - emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install - dosbin external/ffspart/ffspart - - newinitd "${FILESDIR}"/opal-prd.initd opal-prd - newconfd "${FILESDIR}"/opal-prd.confd opal-prd - - systemd_dounit external/opal-prd/opal-prd.service - - if use doc; then - rm -r doc/_build/html/_sources || die - local HTML_DOCS=( doc/_build/html/. ) - fi - einstalldocs -} - -src_test() { - emake V=1 -C external/opal-prd test - emake V=1 -C external/gard check - # this test is fragile and fails because of filename path - rm external/pflash/test/tests/01-info || die - emake V=1 -C external/pflash check - emake V=1 -C external/ffspart check -} - -pkg_postinst() { - if systemd_is_booted || has_version sys-apps/systemd; then - echo - ewarn "With systemd opal-prd.service will fail to start" - ewarn "with 'mmap failed: Operation not permitted' error" - ewarn "if /dev filesystem is mounted with 'noexec' option" - ewarn "see https://github.com/open-power/skiboot/issues/258; - echo - fi -}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 3f70ac06cfd0d0896b9828cd807ba33d4678a5db Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Dec 18 10:20:44 2020 + Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Dec 18 10:25:20 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f70ac06 sys-apps/opal-utils: stable 6.7 for ppc64 stable wrt bug #759664 Package-Manager: Portage-3.0.12, Repoman-3.0.2 RepoMan-Options: --include-arches="ppc64" Signed-off-by: Sergei Trofimovich gentoo.org> sys-apps/opal-utils/opal-utils-6.7.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-6.7.ebuild b/sys-apps/opal-utils/opal-utils-6.7.ebuild index 52c2ae8fced..45a1a17db0b 100644 --- a/sys-apps/opal-utils/opal-utils-6.7.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.7.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="Apache-2.0 GPL-2+" SLOT="0" -KEYWORDS="~ppc64" +KEYWORDS="ppc64" IUSE="doc" DEPEND=""
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 86b2fab91daafa83a93fdbc9fcc41192a1c1c396 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Dec 18 09:46:34 2020 + Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Dec 18 09:52:38 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86b2fab9 sys-apps/opal-utils: drop old Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich gentoo.org> sys-apps/opal-utils/Manifest| 1 - sys-apps/opal-utils/opal-utils-6.5.2.ebuild | 91 - 2 files changed, 92 deletions(-) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 09689a416f4..4ace2757d56 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,3 +1,2 @@ -DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27 DIST opal-utils-6.7.tar.gz 5320182 BLAKE2B e2fa86a7d5d96afda8f8266875687fb3c2e61ca2932ea5585921b2e5cffe30cb3554d85d078448cda032cbc0438d188ea40b5aad6e7f4c923e77fa4e42e6f364 SHA512 1626d64554c608cd823dc27b58f35206cf6d011afde124746e06fd5f1e8c714c199d9f2b60417415daf01cfbc46208d08d49eef29538a515b539a551b8c5e5c3 diff --git a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild deleted file mode 100644 index 805fc46be85..000 --- a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 2019-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7} ) - -inherit linux-info python-any-r1 systemd toolchain-funcs - -DESCRIPTION="OPAL firmware utilities" -HOMEPAGE="https://github.com/open-power/skiboot; -SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="ppc64" -IUSE="doc" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="doc? ( - $(python_gen_any_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/recommonmark[${PYTHON_USEDEP}] - ') -)" - -CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" -ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" -ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" -ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" - -S="${WORKDIR}/skiboot-${PV}" - -PATCHES=( "${FILESDIR}/flags.patch" ) - -python_check_deps() { - has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -pkg_setup() { - linux-info_pkg_setup - use doc && python-any-r1_pkg_setup -} - -src_configure() { - tc-export CC LD - export OPAL_PRD_VERSION="${PV}" - export GARD_VERSION="${PV}" - export PFLASH_VERSION="${PV}" - export XSCOM_VERSION="${PV}" -} - -src_compile() { - emake V=1 -C external/opal-prd - emake V=1 -C external/gard - emake V=1 -C external/pflash - emake V=1 -C external/xscom-utils - - use doc && emake V=1 -C doc html -} - -src_install() { - emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install - - newinitd "${FILESDIR}"/opal-prd.initd opal-prd - newconfd "${FILESDIR}"/opal-prd.confd opal-prd - - systemd_dounit external/opal-prd/opal-prd.service - - if use doc; then - rm -r doc/_build/html/_sources || die - local HTML_DOCS=( doc/_build/html/. ) - fi - einstalldocs -} - -pkg_postinst() { - if systemd_is_booted || has_version sys-apps/systemd; then - echo - ewarn "With systemd opal-prd.service will fail to start" - ewarn "with 'mmap failed: Operation not permitted' error" - ewarn "if /dev filesystem is mounted with 'noexec' option" - ewarn "see https://github.com/open-power/skiboot/issues/258; - echo - fi -}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/, sys-apps/opal-utils/files/
commit: 151a75dd0917279e72f74d55bb6409eed095b2e0 Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Nov 3 04:39:36 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Nov 3 04:39:36 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=151a75dd sys-apps/opal-utils: cleanup Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest| 1 - sys-apps/opal-utils/files/devtmpfs-noexec.patch | 87 sys-apps/opal-utils/opal-utils-6.6.3-r1.ebuild | 95 -- sys-apps/opal-utils/opal-utils-6.6.3.ebuild | 103 4 files changed, 286 deletions(-) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 1bdf1480a80..09689a416f4 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,4 +1,3 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27 -DIST opal-utils-6.6.3.tar.gz 2121842 BLAKE2B 06ecd73dea54cd8455da32fdd88163c283554e49b380c371705fdba4fef169a1e3022ed4845f33594c0188e11e60f49af1ee0d5062a2e483f0b874e62a567245 SHA512 94af7a389e05627b26a3f79ebdeb55a6bf9e99f530667724c3112df25bc113c9520944a1d8e3847fe7210efa9eed0b8facab95f1f16757ff92038aa7812ce79e DIST opal-utils-6.7.tar.gz 5320182 BLAKE2B e2fa86a7d5d96afda8f8266875687fb3c2e61ca2932ea5585921b2e5cffe30cb3554d85d078448cda032cbc0438d188ea40b5aad6e7f4c923e77fa4e42e6f364 SHA512 1626d64554c608cd823dc27b58f35206cf6d011afde124746e06fd5f1e8c714c199d9f2b60417415daf01cfbc46208d08d49eef29538a515b539a551b8c5e5c3 diff --git a/sys-apps/opal-utils/files/devtmpfs-noexec.patch b/sys-apps/opal-utils/files/devtmpfs-noexec.patch deleted file mode 100644 index 45e97308a1f..000 --- a/sys-apps/opal-utils/files/devtmpfs-noexec.patch +++ /dev/null @@ -1,87 +0,0 @@ -From 47005e8d4c9aeda5826c17c4a013cfbda1a3f2de Mon Sep 17 00:00:00 2001 -From: Georgy Yakovlev -Date: Mon, 12 Oct 2020 14:29:17 -0700 -Subject: [PATCH] opal-prd: handle devtmpfs mounted with noexec - -On systems using recent versions of systemd /dev (devtmpfs) is mounted with -noexec option. Such mount prevents mapping HBRT image code region as RWX -from /dev. This commit, as suggested in github PR linked below, attempts to -work around the situation by copying HBRT image to anon mmaped memory -region and sets mprotect rwx on it, allowing opal-prd to sucessfully -execute the code region. - -Having memory region set as RWX is not ideal for security, but fixing that -is a separate and hard to solve problem. Original code also mmaped region -as RWX, so this PR does not make things worse at least. - -Closes: https://github.com/open-power/skiboot/issues/258 -Signed-off-by: Georgy Yakovlev -Reviewed-by: Vasant Hegde -[oliver: whitespace fix, add a comment, reflow commit message] -Signed-off-by: Oliver O'Halloran - external/opal-prd/opal-prd.c | 36 ++-- - 1 file changed, 34 insertions(+), 2 deletions(-) - -diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c -index d74d80398d..12269e8ebb 100644 a/external/opal-prd/opal-prd.c -+++ b/external/opal-prd/opal-prd.c -@@ -973,7 +973,9 @@ static int map_hbrt_file(struct opal_prd_ctx *ctx, const char *name) - static int map_hbrt_physmem(struct opal_prd_ctx *ctx, const char *name) - { - struct prd_range *range; -+ int rc; - void *buf; -+ void *ro_buf; - - range = find_range(name, 0); - if (!range) { -@@ -981,15 +983,45 @@ static int map_hbrt_physmem(struct opal_prd_ctx *ctx, const char *name) - return -1; - } - -- buf = mmap(NULL, range->size, PROT_READ | PROT_WRITE | PROT_EXEC, -+ ro_buf = mmap(NULL, range->size, PROT_READ, - MAP_PRIVATE, ctx->fd, range->physaddr); -- if (buf == MAP_FAILED) { -+ if (ro_buf == MAP_FAILED) { - pr_log(LOG_ERR, "IMAGE: mmap(range:%s, " - "phys:0x%016lx, size:0x%016lx) failed: %m", - name, range->physaddr, range->size); - return -1; - } - -+ buf = mmap(NULL, range->size, PROT_READ | PROT_WRITE, -+ MAP_SHARED | MAP_ANONYMOUS, -1 , 0); -+ if (buf == MAP_FAILED) { -+ pr_log(LOG_ERR, "IMAGE: anon mmap(size:0x%016lx) failed: %m", -+
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 5e014024aae0046bc6a9e8e3532797d168c16ba8 Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Nov 3 04:36:05 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Nov 3 04:36:24 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e014024 sys-apps/opal-utils: bump to 6.7 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest | 1 + sys-apps/opal-utils/opal-utils-6.7.ebuild | 94 +++ 2 files changed, 95 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 62678019a01..1bdf1480a80 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,3 +1,4 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27 DIST opal-utils-6.6.3.tar.gz 2121842 BLAKE2B 06ecd73dea54cd8455da32fdd88163c283554e49b380c371705fdba4fef169a1e3022ed4845f33594c0188e11e60f49af1ee0d5062a2e483f0b874e62a567245 SHA512 94af7a389e05627b26a3f79ebdeb55a6bf9e99f530667724c3112df25bc113c9520944a1d8e3847fe7210efa9eed0b8facab95f1f16757ff92038aa7812ce79e +DIST opal-utils-6.7.tar.gz 5320182 BLAKE2B e2fa86a7d5d96afda8f8266875687fb3c2e61ca2932ea5585921b2e5cffe30cb3554d85d078448cda032cbc0438d188ea40b5aad6e7f4c923e77fa4e42e6f364 SHA512 1626d64554c608cd823dc27b58f35206cf6d011afde124746e06fd5f1e8c714c199d9f2b60417415daf01cfbc46208d08d49eef29538a515b539a551b8c5e5c3 diff --git a/sys-apps/opal-utils/opal-utils-6.7.ebuild b/sys-apps/opal-utils/opal-utils-6.7.ebuild new file mode 100644 index 000..52c2ae8fced --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.7.ebuild @@ -0,0 +1,94 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +PATCHES=( + "${FILESDIR}/flags.patch" +) + +python_check_deps() { + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + use doc && python-any-r1_pkg_setup +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" + export FFSPART_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + emake V=1 -C external/ffspart + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + dosbin external/ffspart/ffspart + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +} + +src_test() { + emake V=1 -C external/opal-prd test + emake V=1 -C external/gard check + # this test is fragile and fails because of filename path + rm
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/files/, sys-apps/opal-utils/
commit: 6da9c430a836ad94eea3baf732ccb16ab50adc04 Author: Georgy Yakovlev gentoo org> AuthorDate: Wed Oct 21 12:09:04 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Wed Oct 21 12:10:00 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6da9c430 sys-apps/opal-utils: add noexec devtmpfs patch for opal-prd Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/files/devtmpfs-noexec.patch | 87 ++ sys-apps/opal-utils/opal-utils-6.6.3-r1.ebuild | 95 + 2 files changed, 182 insertions(+) diff --git a/sys-apps/opal-utils/files/devtmpfs-noexec.patch b/sys-apps/opal-utils/files/devtmpfs-noexec.patch new file mode 100644 index 000..45e97308a1f --- /dev/null +++ b/sys-apps/opal-utils/files/devtmpfs-noexec.patch @@ -0,0 +1,87 @@ +From 47005e8d4c9aeda5826c17c4a013cfbda1a3f2de Mon Sep 17 00:00:00 2001 +From: Georgy Yakovlev +Date: Mon, 12 Oct 2020 14:29:17 -0700 +Subject: [PATCH] opal-prd: handle devtmpfs mounted with noexec + +On systems using recent versions of systemd /dev (devtmpfs) is mounted with +noexec option. Such mount prevents mapping HBRT image code region as RWX +from /dev. This commit, as suggested in github PR linked below, attempts to +work around the situation by copying HBRT image to anon mmaped memory +region and sets mprotect rwx on it, allowing opal-prd to sucessfully +execute the code region. + +Having memory region set as RWX is not ideal for security, but fixing that +is a separate and hard to solve problem. Original code also mmaped region +as RWX, so this PR does not make things worse at least. + +Closes: https://github.com/open-power/skiboot/issues/258 +Signed-off-by: Georgy Yakovlev +Reviewed-by: Vasant Hegde +[oliver: whitespace fix, add a comment, reflow commit message] +Signed-off-by: Oliver O'Halloran +--- + external/opal-prd/opal-prd.c | 36 ++-- + 1 file changed, 34 insertions(+), 2 deletions(-) + +diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c +index d74d80398d..12269e8ebb 100644 +--- a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c +@@ -973,7 +973,9 @@ static int map_hbrt_file(struct opal_prd_ctx *ctx, const char *name) + static int map_hbrt_physmem(struct opal_prd_ctx *ctx, const char *name) + { + struct prd_range *range; ++ int rc; + void *buf; ++ void *ro_buf; + + range = find_range(name, 0); + if (!range) { +@@ -981,15 +983,45 @@ static int map_hbrt_physmem(struct opal_prd_ctx *ctx, const char *name) + return -1; + } + +- buf = mmap(NULL, range->size, PROT_READ | PROT_WRITE | PROT_EXEC, ++ ro_buf = mmap(NULL, range->size, PROT_READ, + MAP_PRIVATE, ctx->fd, range->physaddr); +- if (buf == MAP_FAILED) { ++ if (ro_buf == MAP_FAILED) { + pr_log(LOG_ERR, "IMAGE: mmap(range:%s, " + "phys:0x%016lx, size:0x%016lx) failed: %m", + name, range->physaddr, range->size); + return -1; + } + ++ buf = mmap(NULL, range->size, PROT_READ | PROT_WRITE, ++ MAP_SHARED | MAP_ANONYMOUS, -1 , 0); ++ if (buf == MAP_FAILED) { ++ pr_log(LOG_ERR, "IMAGE: anon mmap(size:0x%016lx) failed: %m", ++ range->size); ++ return -1; ++ } ++ ++ memcpy(buf, ro_buf, range->size); ++ ++ rc = munmap(ro_buf, range->size); ++ if (rc < 0) { ++ pr_log(LOG_ERR, "IMAGE: munmap(" ++ "phys:0x%016lx, size:0x%016lx) failed: %m", ++ range->physaddr, range->size); ++ return -1; ++ } ++ ++ /* ++ * FIXME: We shouldn't be mapping the memory as RWX, but HBRT appears to ++ * require the ability to write into the image at runtime. ++ */ ++ rc = mprotect(buf, range->size, PROT_READ | PROT_WRITE | PROT_EXEC); ++ if (rc < 0) { ++ pr_log(LOG_ERR, "IMAGE: mprotect(phys:%p, " ++ "size:0x%016lx, rwx) failed: %m", ++ buf, range->size); ++ return -1; ++ } ++ + ctx->code_addr = buf; + ctx->code_size = range->size; + return 0; diff --git a/sys-apps/opal-utils/opal-utils-6.6.3-r1.ebuild b/sys-apps/opal-utils/opal-utils-6.6.3-r1.ebuild new file mode 100644 index 000..5dca4f59dc1 --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.6.3-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot;
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 89bc0ef126407bbc0e28f3f453d7882b97a71700 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Oct 4 20:14:05 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Oct 4 20:15:05 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89bc0ef1 sys-apps/opal-utils: add postinst message about /dev and opal-prd Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.5.2.ebuild | 11 +++ sys-apps/opal-utils/opal-utils-6.6.2.ebuild | 11 +++ sys-apps/opal-utils/opal-utils-6.6.3.ebuild | 11 +++ 3 files changed, 33 insertions(+) diff --git a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild index 9479de387f7..805fc46be85 100644 --- a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild @@ -78,3 +78,14 @@ src_install() { fi einstalldocs } + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + echo + ewarn "With systemd opal-prd.service will fail to start" + ewarn "with 'mmap failed: Operation not permitted' error" + ewarn "if /dev filesystem is mounted with 'noexec' option" + ewarn "see https://github.com/open-power/skiboot/issues/258; + echo + fi +} diff --git a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild index 22d57ef7a34..c683ec843d8 100644 --- a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild @@ -90,3 +90,14 @@ src_test() { emake V=1 -C external/pflash check emake V=1 -C external/ffspart check } + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + echo + ewarn "With systemd opal-prd.service will fail to start" + ewarn "with 'mmap failed: Operation not permitted' error" + ewarn "if /dev filesystem is mounted with 'noexec' option" + ewarn "see https://github.com/open-power/skiboot/issues/258; + echo + fi +} diff --git a/sys-apps/opal-utils/opal-utils-6.6.3.ebuild b/sys-apps/opal-utils/opal-utils-6.6.3.ebuild index 823783f6fa3..b7976592cb2 100644 --- a/sys-apps/opal-utils/opal-utils-6.6.3.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.6.3.ebuild @@ -90,3 +90,14 @@ src_test() { emake V=1 -C external/pflash check emake V=1 -C external/ffspart check } + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + echo + ewarn "With systemd opal-prd.service will fail to start" + ewarn "with 'mmap failed: Operation not permitted' error" + ewarn "if /dev filesystem is mounted with 'noexec' option" + ewarn "see https://github.com/open-power/skiboot/issues/258; + echo + fi +}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/, sys-apps/opal-utils/files/
commit: 4b97045030783a1d91f050b2f4df2f66cdbdccf4 Author: Georgy Yakovlev gentoo org> AuthorDate: Mon Sep 28 01:44:15 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Mon Sep 28 01:54:09 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b970450 sys-apps/opal-utils: replace sed with patch Also filter out -Werror in opal-prd Makefile Closes: https://bugs.gentoo.org/744634 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/files/flags.patch | 35 + sys-apps/opal-utils/opal-utils-6.5.2.ebuild | 7 ++ sys-apps/opal-utils/opal-utils-6.6.2.ebuild | 8 ++- sys-apps/opal-utils/opal-utils-6.6.3.ebuild | 8 ++- 4 files changed, 41 insertions(+), 17 deletions(-) diff --git a/sys-apps/opal-utils/files/flags.patch b/sys-apps/opal-utils/files/flags.patch new file mode 100644 index 000..5aa045ed1ca --- /dev/null +++ b/sys-apps/opal-utils/files/flags.patch @@ -0,0 +1,35 @@ +From 828c1c28c314c62cf90b9b989f92af7ea96c100d Mon Sep 17 00:00:00 2001 +From: Georgy Yakovlev +Date: Sun, 27 Sep 2020 18:48:38 -0700 +Subject: [PATCH] respect user flags + +--- + external/ffspart/rules.mk | 2 +- + external/opal-prd/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/external/ffspart/rules.mk b/external/ffspart/rules.mk +index 40972c6..09a025f 100644 +--- a/external/ffspart/rules.mk b/external/ffspart/rules.mk +@@ -30,5 +30,5 @@ $(LIBFLASH_OBJS): libflash-%.o : libflash/%.c + $(Q_CC)$(CC) $(CFLAGS) -c $< -o $@ + + $(EXE): $(OBJS) +- $(Q_CC)$(CC) $(CFLAGS) $^ -lrt -o $@ ++ $(Q_CC)$(CC) $(CFLAGS) $^ -lrt $(LDFLAGS) -o $@ + +diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile +index fb9402f..52f10d9 100644 +--- a/external/opal-prd/Makefile b/external/opal-prd/Makefile +@@ -1,5 +1,5 @@ + # SPDX-License-Identifier: Apache-2.0 +-CFLAGS += -m64 -Werror -Wall -g2 -ggdb ++CFLAGS += -m64 -Wall + LDFLAGS += -m64 + ASFLAGS = -m64 + CPPFLAGS += -I. -I../../include -I../../ +-- +2.28.0 + diff --git a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild index 9e12d9fc8b8..9479de387f7 100644 --- a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild @@ -32,6 +32,8 @@ ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" S="${WORKDIR}/skiboot-${PV}" +PATCHES=( "${FILESDIR}/flags.patch" ) + python_check_deps() { has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && has_version "dev-python/sphinx[${PYTHON_USEDEP}]" @@ -42,11 +44,6 @@ pkg_setup() { use doc && python-any-r1_pkg_setup } -src_prepare() { - default - sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die -} - src_configure() { tc-export CC LD export OPAL_PRD_VERSION="${PV}" diff --git a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild index 867857095da..22d57ef7a34 100644 --- a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild @@ -32,6 +32,8 @@ ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" S="${WORKDIR}/skiboot-${PV}" +PATCHES=( "${FILESDIR}/flags.patch" ) + python_check_deps() { has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && has_version "dev-python/sphinx[${PYTHON_USEDEP}]" @@ -42,12 +44,6 @@ pkg_setup() { use doc && python-any-r1_pkg_setup } -src_prepare() { - default - sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die - sed -i 's/-lrt -o/-lrt $(LDFLAGS) -o/' external/ffspart/rules.mk || die -} - src_configure() { tc-export CC LD export OPAL_PRD_VERSION="${PV}" diff --git a/sys-apps/opal-utils/opal-utils-6.6.3.ebuild b/sys-apps/opal-utils/opal-utils-6.6.3.ebuild index 6f824f28e38..823783f6fa3 100644 --- a/sys-apps/opal-utils/opal-utils-6.6.3.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.6.3.ebuild @@ -32,6 +32,8 @@ ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" S="${WORKDIR}/skiboot-${PV}" +PATCHES=( "${FILESDIR}/flags.patch" ) + python_check_deps() { has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && has_version "dev-python/sphinx[${PYTHON_USEDEP}]" @@ -42,12 +44,6 @@ pkg_setup() { use doc && python-any-r1_pkg_setup } -src_prepare() { - default - sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die - sed -i 's/-lrt -o/-lrt $(LDFLAGS) -o/' external/ffspart/rules.mk || die -} - src_configure() { tc-export CC LD export OPAL_PRD_VERSION="${PV}"
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 4ae9b079390586596e43455c7f4d80e3c59ef3b5 Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Sep 10 00:26:33 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Sep 10 00:26:51 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ae9b079 sys-apps/opal-utils: bump to 6.6.3 Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest| 1 + sys-apps/opal-utils/opal-utils-6.6.3.ebuild | 96 + 2 files changed, 97 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index e331a5e8fca..62678019a01 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,2 +1,3 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27 +DIST opal-utils-6.6.3.tar.gz 2121842 BLAKE2B 06ecd73dea54cd8455da32fdd88163c283554e49b380c371705fdba4fef169a1e3022ed4845f33594c0188e11e60f49af1ee0d5062a2e483f0b874e62a567245 SHA512 94af7a389e05627b26a3f79ebdeb55a6bf9e99f530667724c3112df25bc113c9520944a1d8e3847fe7210efa9eed0b8facab95f1f16757ff92038aa7812ce79e diff --git a/sys-apps/opal-utils/opal-utils-6.6.3.ebuild b/sys-apps/opal-utils/opal-utils-6.6.3.ebuild new file mode 100644 index 000..6f824f28e38 --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.6.3.ebuild @@ -0,0 +1,96 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +python_check_deps() { + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + use doc && python-any-r1_pkg_setup +} + +src_prepare() { + default + sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die + sed -i 's/-lrt -o/-lrt $(LDFLAGS) -o/' external/ffspart/rules.mk || die +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" + export FFSPART_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + emake V=1 -C external/ffspart + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + dosbin external/ffspart/ffspart + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +} + +src_test() { + emake V=1 -C external/opal-prd test + emake V=1 -C external/gard check + # this test is fragile and fails because of filename path + rm external/pflash/test/tests/01-info || die + emake V=1 -C external/pflash check + emake V=1 -C external/ffspart check +}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 2bb88e3a082e78efcf4c78ef3985b936ee3c737f Author: Georgy Yakovlev gentoo org> AuthorDate: Sat Sep 5 07:19:10 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sat Sep 5 07:48:48 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bb88e3a sys-apps/opal-utils: fix whitespace Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.6.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild index d2ed07f940f..867857095da 100644 --- a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild @@ -89,7 +89,7 @@ src_install() { src_test() { emake V=1 -C external/opal-prd test emake V=1 -C external/gard check - # this test is fragile and fails because of filename path + # this test is fragile and fails because of filename path rm external/pflash/test/tests/01-info || die emake V=1 -C external/pflash check emake V=1 -C external/ffspart check
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 790b04edca7328d84698bce72a348b6d7e03dd17 Author: Georgy Yakovlev gentoo org> AuthorDate: Wed Sep 2 20:12:18 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Wed Sep 2 20:13:21 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=790b04ed sys-apps/opal-utils: drop old Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest| 2 - sys-apps/opal-utils/opal-utils-6.6.1.ebuild | 96 - sys-apps/opal-utils/opal-utils-6.6.ebuild | 96 - 3 files changed, 194 deletions(-) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 8caa2c57555..e331a5e8fca 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,4 +1,2 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 -DIST opal-utils-6.6.1.tar.gz 2121660 BLAKE2B 29ee388e75d86cba346d48834840bde22e6c38404b1dc3544fe7a2c64d584fed95aff8755bcadfba7f3753a764a120d31daa2d8f32e4a4298b65babc44a08193 SHA512 b460de30aa76b1c2bc66b636b995e32abc8554b3a7d8ac5b71401d7f07d999d5b4ca4328a6bbaa9c7c82c237b0e6be5557c9d13f4bbba5c7f625888aaf9cb65e DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27 -DIST opal-utils-6.6.tar.gz 2119590 BLAKE2B 3c2b0b77fdaa22f075afe1d7205865b76e45e865c8799372ab61dbd272015ecb1343a32c185d6bd5fb323723a2c5aded1fead2ae0fb34ae6e97e17f5e15af6a6 SHA512 23ae61266253a5382f4d873492e89523cc26a32dfb43438e5becece88f5af4f0bc4ec756208603653f430b3382c42980a8c92dc0c1ba3e2b13831ade1eb14a27 diff --git a/sys-apps/opal-utils/opal-utils-6.6.1.ebuild b/sys-apps/opal-utils/opal-utils-6.6.1.ebuild deleted file mode 100644 index d447870f81e..000 --- a/sys-apps/opal-utils/opal-utils-6.6.1.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 2019-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8} ) - -inherit linux-info python-any-r1 systemd toolchain-funcs - -DESCRIPTION="OPAL firmware utilities" -HOMEPAGE="https://github.com/open-power/skiboot; -SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 GPL-2+" -SLOT="0" -KEYWORDS="~ppc64" -IUSE="doc" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="doc? ( - $(python_gen_any_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/recommonmark[${PYTHON_USEDEP}] - ') -)" - -CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" -ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" -ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" -ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" - -S="${WORKDIR}/skiboot-${PV}" - -python_check_deps() { - has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -pkg_setup() { - linux-info_pkg_setup - use doc && python-any-r1_pkg_setup -} - -src_prepare() { - default - sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die - sed -i 's/-lrt -o/-lrt $(LDFLAGS) -o/' external/ffspart/rules.mk || die -} - -src_configure() { - tc-export CC LD - export OPAL_PRD_VERSION="${PV}" - export GARD_VERSION="${PV}" - export PFLASH_VERSION="${PV}" - export XSCOM_VERSION="${PV}" - export FFSPART_VERSION="${PV}" -} - -src_compile() { - emake V=1 -C external/opal-prd - emake V=1 -C external/gard - emake V=1 -C external/pflash - emake V=1 -C external/xscom-utils - emake V=1 -C external/ffspart - - use doc && emake V=1 -C doc html -} - -src_install() { - emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install - dosbin external/ffspart/ffspart - - newinitd "${FILESDIR}"/opal-prd.initd opal-prd - newconfd "${FILESDIR}"/opal-prd.confd opal-prd - - systemd_dounit external/opal-prd/opal-prd.service - - if use doc; then - rm -r doc/_build/html/_sources || die - local HTML_DOCS=(
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 0dcac91fc0efb66a6b55c591562da7bb02851b4d Author: Georgy Yakovlev gentoo org> AuthorDate: Wed Sep 2 20:10:57 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Wed Sep 2 20:13:20 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dcac91f sys-apps/opal-utils: 6.6.2 ppc64 stable, bug #739962 Closes: https://bugs.gentoo.org/739962 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.6.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild index dc2a1f85fa2..d2ed07f940f 100644 --- a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="Apache-2.0 GPL-2+" SLOT="0" -KEYWORDS="~ppc64" +KEYWORDS="ppc64" IUSE="doc" DEPEND=""
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: e38b10ed38c099aae41ecf0074835c1f3ee80818 Author: Georgy Yakovlev gentoo org> AuthorDate: Fri Jul 3 20:34:23 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Jul 3 20:34:23 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e38b10ed sys-apps/opal-utils: bump to 6.6.2 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest| 1 + sys-apps/opal-utils/opal-utils-6.6.2.ebuild | 96 + 2 files changed, 97 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index ead11c802b8..8caa2c57555 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,3 +1,4 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 DIST opal-utils-6.6.1.tar.gz 2121660 BLAKE2B 29ee388e75d86cba346d48834840bde22e6c38404b1dc3544fe7a2c64d584fed95aff8755bcadfba7f3753a764a120d31daa2d8f32e4a4298b65babc44a08193 SHA512 b460de30aa76b1c2bc66b636b995e32abc8554b3a7d8ac5b71401d7f07d999d5b4ca4328a6bbaa9c7c82c237b0e6be5557c9d13f4bbba5c7f625888aaf9cb65e +DIST opal-utils-6.6.2.tar.gz 2121790 BLAKE2B 3f1ec80baa112ba0d01fcb9a64b45592da03addd067484ef237204fd712359c04796353f47a32ac943e0e135a580c3c5ad7a5843ee4d5259cde3cbaf1bbefcc4 SHA512 a864e4120ffac4065b89d5da7c959ac20643be42e83f4186a778355f3ea0b36cbd1e02c91b1460b6fa6550fceec9034cce096b89f840b4051d65c7f0ab70dc27 DIST opal-utils-6.6.tar.gz 2119590 BLAKE2B 3c2b0b77fdaa22f075afe1d7205865b76e45e865c8799372ab61dbd272015ecb1343a32c185d6bd5fb323723a2c5aded1fead2ae0fb34ae6e97e17f5e15af6a6 SHA512 23ae61266253a5382f4d873492e89523cc26a32dfb43438e5becece88f5af4f0bc4ec756208603653f430b3382c42980a8c92dc0c1ba3e2b13831ade1eb14a27 diff --git a/sys-apps/opal-utils/opal-utils-6.6.2.ebuild b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild new file mode 100644 index 000..dc2a1f85fa2 --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.6.2.ebuild @@ -0,0 +1,96 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +python_check_deps() { + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + use doc && python-any-r1_pkg_setup +} + +src_prepare() { + default + sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die + sed -i 's/-lrt -o/-lrt $(LDFLAGS) -o/' external/ffspart/rules.mk || die +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" + export FFSPART_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + emake V=1 -C external/ffspart + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + dosbin external/ffspart/ffspart + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +} + +src_test() { + emake V=1
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 7f90107b66772af175338f46ee7852564d28c762 Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Jun 9 20:43:10 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Jun 9 20:43:40 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f90107b sys-apps/opal-utils: update metadata.xml, add ppc@ project Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/metadata.xml | 4 1 file changed, 4 insertions(+) diff --git a/sys-apps/opal-utils/metadata.xml b/sys-apps/opal-utils/metadata.xml index 308277edf69..c57559ef707 100644 --- a/sys-apps/opal-utils/metadata.xml +++ b/sys-apps/opal-utils/metadata.xml @@ -5,6 +5,10 @@ gyakov...@gentoo.org Georgy Yakovlev + + p...@gentoo.org + Gentoo Linux PowerPC Development + This package contains utility programs for OpenPower systems: 'opal-prd' provides a daemon to load and run the OpenPower firmware's Processor Recovery Diagnostics binary.
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 5facaf1701025e7a2622ae242a4a96af2866b620 Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Jun 9 20:40:54 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Jun 9 20:43:39 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5facaf17 sys-apps/opal-utils: bump to 6.6.1 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest| 1 + sys-apps/opal-utils/opal-utils-6.6.1.ebuild | 96 + 2 files changed, 97 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index c0fad88b048..ead11c802b8 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,2 +1,3 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 +DIST opal-utils-6.6.1.tar.gz 2121660 BLAKE2B 29ee388e75d86cba346d48834840bde22e6c38404b1dc3544fe7a2c64d584fed95aff8755bcadfba7f3753a764a120d31daa2d8f32e4a4298b65babc44a08193 SHA512 b460de30aa76b1c2bc66b636b995e32abc8554b3a7d8ac5b71401d7f07d999d5b4ca4328a6bbaa9c7c82c237b0e6be5557c9d13f4bbba5c7f625888aaf9cb65e DIST opal-utils-6.6.tar.gz 2119590 BLAKE2B 3c2b0b77fdaa22f075afe1d7205865b76e45e865c8799372ab61dbd272015ecb1343a32c185d6bd5fb323723a2c5aded1fead2ae0fb34ae6e97e17f5e15af6a6 SHA512 23ae61266253a5382f4d873492e89523cc26a32dfb43438e5becece88f5af4f0bc4ec756208603653f430b3382c42980a8c92dc0c1ba3e2b13831ade1eb14a27 diff --git a/sys-apps/opal-utils/opal-utils-6.6.1.ebuild b/sys-apps/opal-utils/opal-utils-6.6.1.ebuild new file mode 100644 index 000..d447870f81e --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.6.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +python_check_deps() { + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + use doc && python-any-r1_pkg_setup +} + +src_prepare() { + default + sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die + sed -i 's/-lrt -o/-lrt $(LDFLAGS) -o/' external/ffspart/rules.mk || die +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" + export FFSPART_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + emake V=1 -C external/ffspart + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + dosbin external/ffspart/ffspart + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +} + +src_test() { + emake V=1 -C external/opal-prd test + emake V=1 -C external/gard check + # this test is fragile and fails because of unstable output + rm external/pflash/test/tests/01-info || die + emake V=1 -C external/pflash check + emake V=1 -C external/ffspart check +}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 3e4a4b4c95e3ec0a066231f47a2bb55f21ca11ce Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Apr 23 08:57:20 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Apr 23 09:03:01 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e4a4b4c sys-apps/opal-utils: drop old Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest | 1 - sys-apps/opal-utils/opal-utils-6.5.ebuild | 83 --- 2 files changed, 84 deletions(-) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index db9659e49a7..c0fad88b048 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,3 +1,2 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 -DIST opal-utils-6.5.tar.gz 2080841 BLAKE2B cd8bda3b7f3bcbc620f922a6baa69f452a95c60a96eb9adf67d781dc5d1a75fc43cba7aa3ed82105de7a04041cfb61f43e909794702564819cda6f11afd23815 SHA512 f756307403ec49f24e5dbc06dbe8fe52898da27f2a0fa761164b1d85efd33dae8a8f96de3859eb7b11f85f43a790c9c213f9ebf0c7f4a859b590dcfb35e38571 DIST opal-utils-6.6.tar.gz 2119590 BLAKE2B 3c2b0b77fdaa22f075afe1d7205865b76e45e865c8799372ab61dbd272015ecb1343a32c185d6bd5fb323723a2c5aded1fead2ae0fb34ae6e97e17f5e15af6a6 SHA512 23ae61266253a5382f4d873492e89523cc26a32dfb43438e5becece88f5af4f0bc4ec756208603653f430b3382c42980a8c92dc0c1ba3e2b13831ade1eb14a27 diff --git a/sys-apps/opal-utils/opal-utils-6.5.ebuild b/sys-apps/opal-utils/opal-utils-6.5.ebuild deleted file mode 100644 index 12cc0995a25..000 --- a/sys-apps/opal-utils/opal-utils-6.5.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 2019-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7} ) - -inherit linux-info python-any-r1 systemd toolchain-funcs - -DESCRIPTION="OPAL firmware utilities" -HOMEPAGE="https://github.com/open-power/skiboot; -SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~ppc64" -IUSE="doc" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="doc? ( - $(python_gen_any_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/recommonmark[${PYTHON_USEDEP}] - ') -)" - -CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" -ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" -ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" -ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" - -S="${WORKDIR}/skiboot-${PV}" - -python_check_deps() { - has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -pkg_setup() { - linux-info_pkg_setup - use doc && python-any-r1_pkg_setup -} - -src_prepare() { - default - sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die -} - -src_configure() { - tc-export CC LD - export OPAL_PRD_VERSION="${PV}" - export GARD_VERSION="${PV}" - export PFLASH_VERSION="${PV}" - export XSCOM_VERSION="${PV}" -} - -src_compile() { - emake V=1 -C external/opal-prd - emake V=1 -C external/gard - emake V=1 -C external/pflash - emake V=1 -C external/xscom-utils - - use doc && emake V=1 -C doc html -} - -src_install() { - emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install - emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install - - newinitd "${FILESDIR}"/opal-prd.initd opal-prd - newconfd "${FILESDIR}"/opal-prd.confd opal-prd - - systemd_dounit external/opal-prd/opal-prd.service - - if use doc; then - rm -r doc/_build/html/_sources || die - local HTML_DOCS=( doc/_build/html/. ) - fi - einstalldocs -}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 647ed7d100b67a59d764549e73697df8d85a1137 Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Apr 23 08:55:53 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Apr 23 09:03:00 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=647ed7d1 sys-apps/opal-utils: 6.5.2 stable Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.5.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild index 12cc0995a25..9e12d9fc8b8 100644 --- a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~ppc64" +KEYWORDS="ppc64" IUSE="doc" DEPEND=""
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 47f5117874308918d5eda3dc305de04838638419 Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Apr 23 08:44:48 2020 + Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Apr 23 09:02:59 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47f51178 sys-apps/opal-utils: bump to 6.6 now with tests and ffspart binary Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest | 1 + sys-apps/opal-utils/opal-utils-6.6.ebuild | 96 +++ 2 files changed, 97 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 1e6b9b49bae..db9659e49a7 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1,2 +1,3 @@ DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 DIST opal-utils-6.5.tar.gz 2080841 BLAKE2B cd8bda3b7f3bcbc620f922a6baa69f452a95c60a96eb9adf67d781dc5d1a75fc43cba7aa3ed82105de7a04041cfb61f43e909794702564819cda6f11afd23815 SHA512 f756307403ec49f24e5dbc06dbe8fe52898da27f2a0fa761164b1d85efd33dae8a8f96de3859eb7b11f85f43a790c9c213f9ebf0c7f4a859b590dcfb35e38571 +DIST opal-utils-6.6.tar.gz 2119590 BLAKE2B 3c2b0b77fdaa22f075afe1d7205865b76e45e865c8799372ab61dbd272015ecb1343a32c185d6bd5fb323723a2c5aded1fead2ae0fb34ae6e97e17f5e15af6a6 SHA512 23ae61266253a5382f4d873492e89523cc26a32dfb43438e5becece88f5af4f0bc4ec756208603653f430b3382c42980a8c92dc0c1ba3e2b13831ade1eb14a27 diff --git a/sys-apps/opal-utils/opal-utils-6.6.ebuild b/sys-apps/opal-utils/opal-utils-6.6.ebuild new file mode 100644 index 000..d447870f81e --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.6.ebuild @@ -0,0 +1,96 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +python_check_deps() { + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + use doc && python-any-r1_pkg_setup +} + +src_prepare() { + default + sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die + sed -i 's/-lrt -o/-lrt $(LDFLAGS) -o/' external/ffspart/rules.mk || die +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" + export FFSPART_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + emake V=1 -C external/ffspart + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + dosbin external/ffspart/ffspart + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +} + +src_test() { + emake V=1 -C external/opal-prd test + emake V=1 -C external/gard check + # this test is fragile and fails because of unstable output + rm external/pflash/test/tests/01-info || die + emake V=1 -C external/pflash check + emake V=1 -C external/ffspart check +}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 750a956098b281965ba407487f72bbf51e3ef8a7 Author: Michał Górny gentoo org> AuthorDate: Mon Feb 10 13:05:56 2020 + Commit: Michał Górny gentoo org> CommitDate: Mon Feb 10 13:26:32 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=750a9560 sys-apps/opal-utils: Remove py2 where possible Signed-off-by: Michał Górny gentoo.org> sys-apps/opal-utils/opal-utils-6.5.2.ebuild | 2 +- sys-apps/opal-utils/opal-utils-6.5.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild index a5c514c95a7..12cc0995a25 100644 --- a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7} ) inherit linux-info python-any-r1 systemd toolchain-funcs diff --git a/sys-apps/opal-utils/opal-utils-6.5.ebuild b/sys-apps/opal-utils/opal-utils-6.5.ebuild index a5c514c95a7..12cc0995a25 100644 --- a/sys-apps/opal-utils/opal-utils-6.5.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.5.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7} ) inherit linux-info python-any-r1 systemd toolchain-funcs
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 5227e1c67d91e982f89f46096d07a6b4b53eea28 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Dec 22 06:20:20 2019 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Dec 22 06:20:56 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5227e1c6 sys-apps/opal-utils: bump to 6.5.2 Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest| 1 + sys-apps/opal-utils/opal-utils-6.5.2.ebuild | 83 + 2 files changed, 84 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest index 76e3988e3ba..1e6b9b49bae 100644 --- a/sys-apps/opal-utils/Manifest +++ b/sys-apps/opal-utils/Manifest @@ -1 +1,2 @@ +DIST opal-utils-6.5.2.tar.gz 2082426 BLAKE2B 20256f13f95da73bcccae670627c9786229e756183fad33ff45ecf2d91f1039c73a0f881b3ac794abad35d51b7bef0b780bd0f8260818c84a262ce7bb0c45b2e SHA512 765e568ad60f5cd7df8868eb3faea841d37c75cb14f33ab30f9419550ea146aeec0d02d622752af1e09a36e744f93be3a56fe6cbc8ac91a94effba9754a24091 DIST opal-utils-6.5.tar.gz 2080841 BLAKE2B cd8bda3b7f3bcbc620f922a6baa69f452a95c60a96eb9adf67d781dc5d1a75fc43cba7aa3ed82105de7a04041cfb61f43e909794702564819cda6f11afd23815 SHA512 f756307403ec49f24e5dbc06dbe8fe52898da27f2a0fa761164b1d85efd33dae8a8f96de3859eb7b11f85f43a790c9c213f9ebf0c7f4a859b590dcfb35e38571 diff --git a/sys-apps/opal-utils/opal-utils-6.5.2.ebuild b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild new file mode 100644 index 000..bbde6d6db52 --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.5.2.ebuild @@ -0,0 +1,83 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +python_check_deps() { + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + use doc && python-any-r1_pkg_setup +} + +src_prepare() { + default + sed -i '/^CFLAGS +=/ s/-g2 -ggdb//' external/opal-prd/Makefile || die +} + +src_configure() { + tc-export CC LD + export OPAL_PRD_VERSION="${PV}" + export GARD_VERSION="${PV}" + export PFLASH_VERSION="${PV}" + export XSCOM_VERSION="${PV}" +} + +src_compile() { + emake V=1 -C external/opal-prd + emake V=1 -C external/gard + emake V=1 -C external/pflash + emake V=1 -C external/xscom-utils + + use doc && emake V=1 -C doc html +} + +src_install() { + emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install + emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install + + newinitd "${FILESDIR}"/opal-prd.initd opal-prd + newconfd "${FILESDIR}"/opal-prd.confd opal-prd + + systemd_dounit external/opal-prd/opal-prd.service + + if use doc; then + rm -r doc/_build/html/_sources || die + local HTML_DOCS=( doc/_build/html/. ) + fi + einstalldocs +}
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/
commit: 595517f908ebdd143e0d37fb07fc4e6fdd6c89f8 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Aug 25 01:49:32 2019 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Aug 25 01:49:32 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=595517f9 sys-apps/opal-utils: don't install doc sources Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/opal-utils-6.5.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/opal-utils/opal-utils-6.5.ebuild b/sys-apps/opal-utils/opal-utils-6.5.ebuild index a4dc62fddce..bbde6d6db52 100644 --- a/sys-apps/opal-utils/opal-utils-6.5.ebuild +++ b/sys-apps/opal-utils/opal-utils-6.5.ebuild @@ -76,7 +76,7 @@ src_install() { systemd_dounit external/opal-prd/opal-prd.service if use doc; then - + rm -r doc/_build/html/_sources || die local HTML_DOCS=( doc/_build/html/. ) fi einstalldocs
[gentoo-commits] repo/gentoo:master commit in: sys-apps/opal-utils/, sys-apps/opal-utils/files/
commit: 9527a87a8646caba8eb53859f8cf20fc8675b436 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Aug 25 00:44:18 2019 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Aug 25 01:34:26 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9527a87a sys-apps/opal-utils: new package, open-power firmware utils Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/opal-utils/Manifest | 1 + sys-apps/opal-utils/files/opal-prd.confd | 4 ++ sys-apps/opal-utils/files/opal-prd.initd | 20 sys-apps/opal-utils/metadata.xml | 22 sys-apps/opal-utils/opal-utils-6.5.ebuild | 83 +++ 5 files changed, 130 insertions(+) diff --git a/sys-apps/opal-utils/Manifest b/sys-apps/opal-utils/Manifest new file mode 100644 index 000..76e3988e3ba --- /dev/null +++ b/sys-apps/opal-utils/Manifest @@ -0,0 +1 @@ +DIST opal-utils-6.5.tar.gz 2080841 BLAKE2B cd8bda3b7f3bcbc620f922a6baa69f452a95c60a96eb9adf67d781dc5d1a75fc43cba7aa3ed82105de7a04041cfb61f43e909794702564819cda6f11afd23815 SHA512 f756307403ec49f24e5dbc06dbe8fe52898da27f2a0fa761164b1d85efd33dae8a8f96de3859eb7b11f85f43a790c9c213f9ebf0c7f4a859b590dcfb35e38571 diff --git a/sys-apps/opal-utils/files/opal-prd.confd b/sys-apps/opal-utils/files/opal-prd.confd new file mode 100644 index 000..a61415ef934 --- /dev/null +++ b/sys-apps/opal-utils/files/opal-prd.confd @@ -0,0 +1,4 @@ +# /etc/conf.d/opal-prd: config file for /etc/init.d/opal-prd +# see OPAL-PRD(8) + +#OPAL_PRD_OPTS="" diff --git a/sys-apps/opal-utils/files/opal-prd.initd b/sys-apps/opal-utils/files/opal-prd.initd new file mode 100644 index 000..935d39f6f94 --- /dev/null +++ b/sys-apps/opal-utils/files/opal-prd.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="OPAL PRD daemon" +description="Processor RunTime Diagnostics daemon" +command=/usr/sbin/opal-prd +command_args="${OPAL_PRD_OPTS}" +command_background="true" +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need dev-mount sysfs + use logger + keyword -containers + +} + +required_dirs="/sys/firmware/devicetree/base/ibm,opal/diagnostics" +required_files="/dev/opal-prd" diff --git a/sys-apps/opal-utils/metadata.xml b/sys-apps/opal-utils/metadata.xml new file mode 100644 index 000..308277edf69 --- /dev/null +++ b/sys-apps/opal-utils/metadata.xml @@ -0,0 +1,22 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + gyakov...@gentoo.org + Georgy Yakovlev + + + This package contains utility programs for OpenPower systems: + 'opal-prd' provides a daemon to load and run the OpenPower firmware's Processor Recovery Diagnostics binary. + It's responsible for run time maintenance of OpenPower Systems hardware. + + 'gard' utility can read, parse and clear hardware gard partitions on OpenPower platforms. + + 'getscom' and 'putscom' utilities provide an interface to query or modify the registers of the different chipsets of an OpenPower system. + + 'pflash' is a tool to access the flash modules on such systems and update the OpenPower firmware. + + + open-power/skiboot + + diff --git a/sys-apps/opal-utils/opal-utils-6.5.ebuild b/sys-apps/opal-utils/opal-utils-6.5.ebuild new file mode 100644 index 000..a4dc62fddce --- /dev/null +++ b/sys-apps/opal-utils/opal-utils-6.5.ebuild @@ -0,0 +1,83 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="OPAL firmware utilities" +HOMEPAGE="https://github.com/open-power/skiboot; +SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~ppc64" +IUSE="doc" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + ') +)" + +CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS" +ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard" +ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon" +ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils" + +S="${WORKDIR}/skiboot-${PV}" + +python_check_deps() { + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +pkg_setup() { + linux-info_pkg_setup + use doc && python-any-r1_pkg_setup +} +