* [gentoo-commits] repo/gentoo:master commit in: virtual/opencl/, virtual/opencl/files/
@ 2020-04-10 13:31 Marek Szuba
0 siblings, 0 replies; only message in thread
From: Marek Szuba @ 2020-04-10 13:31 UTC (permalink / raw
To: gentoo-commits
commit: a821e4e7964589d5f9cfbe8e36b5e46450ae2ca4
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 10 13:22:24 2020 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Apr 10 13:22:24 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a821e4e7
virtual/opencl: do not install README.gentoo
Having the list of available OpenCL runtimes stored in README.gentoo,
which was suggested during reviews of opencl-3 on gentoo-dev,
unfortunately violates the policy demanding virtuals not to install any
files. Revert to the original approach of using elog in pkg_postinst
directly.
Closes: https://bugs.gentoo.org/716924
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
virtual/opencl/files/README.gentoo | 18 ------------------
virtual/opencl/opencl-3-r1.ebuild | 36 ++++++++++++++++++++++++++++++++++++
virtual/opencl/opencl-3.ebuild | 24 ------------------------
3 files changed, 36 insertions(+), 42 deletions(-)
diff --git a/virtual/opencl/files/README.gentoo b/virtual/opencl/files/README.gentoo
deleted file mode 100644
index aa2dc0ef519..00000000000
--- a/virtual/opencl/files/README.gentoo
+++ /dev/null
@@ -1,18 +0,0 @@
-In order to take advantage of OpenCL you will need a runtime for your hardware.
-Currently included in Gentoo are:
-
- * open:
- - dev-libs/intel-neo - integrated Intel GPUs from Broadwell onwards. 64-bit only;
- - dev-libs/rocm-opencl-runtime - AMD GPUs supported by the amdgpu kernel driver.
- Image support still requires a proprietary extension [1]. 64-bit only;
- - media-libs/mesa[opencl] - some older AMD GPUs; see [2]. 32-bit support;
-
- * proprietary:
- - dev-libs/amdgpu-pro-opencl - AMD Polaris GPUs. 32-bit support;
- - dev-util/intel-ocl-sdk - Intel CPUs (*not* GPUs). 64-bit only;
- - x11-drivers/nvidia-drivers[uvm] - Nvidia GPUs; specific package versions
- required for older devices [3]. 32-bit support.
-
- [1] dev-libs/hsa-ext-rocr
- [2] https://dri.freedesktop.org/wiki/GalliumCompute/
- [3] https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/
diff --git a/virtual/opencl/opencl-3-r1.ebuild b/virtual/opencl/opencl-3-r1.ebuild
new file mode 100644
index 00000000000..3a288d12942
--- /dev/null
+++ b/virtual/opencl/opencl-3-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-build
+
+DESCRIPTION="Virtual for OpenCL API"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="|| ( dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
+ dev-libs/opencl-icd-loader[${MULTILIB_USEDEP}] )"
+
+pkg_postinst() {
+ elog
+ elog "In order to take advantage of OpenCL you will need a runtime for your hardware."
+ elog "Currently included in Gentoo are:"
+ elog
+ elog " * open:"
+ elog " - dev-libs/intel-neo - integrated Intel GPUs from Broadwell onwards. 64-bit only;"
+ elog " - dev-libs/rocm-opencl-runtime - AMD GPUs supported by the amdgpu kernel driver."
+ elog " Image support still requires a proprietary extension [1]. 64-bit only;"
+ elog " - media-libs/mesa[opencl] - some older AMD GPUs; see [2]. 32-bit support;"
+ elog
+ elog " * proprietary:"
+ elog " - dev-libs/amdgpu-pro-opencl - AMD Polaris GPUs. 32-bit support;"
+ elog " - dev-util/intel-ocl-sdk - Intel CPUs (*not* GPUs). 64-bit only;"
+ elog " - x11-drivers/nvidia-drivers[uvm] - Nvidia GPUs; specific package versions"
+ elog " required for older devices [3]. 32-bit support."
+ elog
+ elog " [1] dev-libs/hsa-ext-rocr"
+ elog " [2] https://dri.freedesktop.org/wiki/GalliumCompute/"
+ elog " [3] https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/"
+ elog
+}
diff --git a/virtual/opencl/opencl-3.ebuild b/virtual/opencl/opencl-3.ebuild
deleted file mode 100644
index baa33caadb7..00000000000
--- a/virtual/opencl/opencl-3.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build readme.gentoo-r1
-
-DESCRIPTION="Virtual for OpenCL API"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="|| ( dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
- dev-libs/opencl-icd-loader[${MULTILIB_USEDEP}] )"
-
-# so that src_install() doesn't fail on missing directory
-S="${WORKDIR}"
-
-src_install() {
- readme.gentoo_create_doc
-}
-
-pkg_postinst() {
- readme.gentoo_print_elog
-}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-10 13:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-10 13:31 [gentoo-commits] repo/gentoo:master commit in: virtual/opencl/, virtual/opencl/files/ Marek Szuba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox