commit:     1632a48d8a36534752a0aa1f54d3a04638b1a514
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 30 11:44:08 2017 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Jun 30 12:57:18 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1632a48d

dev-libs/amdgpu-pro-opencl: display "caveat emptor" warning after first 
installation.

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../amdgpu-pro-opencl/amdgpu-pro-opencl-17.10.429170.ebuild    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.10.429170.ebuild 
b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.10.429170.ebuild
index c75b64c1091..6d8da00df44 100644
--- a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.10.429170.ebuild
+++ b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.10.429170.ebuild
@@ -60,6 +60,16 @@ src_install() {
 }
 
 pkg_postinst() {
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               ewarn "Please note that using proprietary OpenCL libraries 
together with the"
+               ewarn "Open Source amdgpu stack is not officially supported by 
AMD. Do not ask them"
+               ewarn "for support in case of problems with this package."
+               ewarn ""
+               ewarn "Furthermore, if you have the whole AMDGPU-Pro stack 
installed this package"
+               ewarn "will almost certainly conflict with it. This might 
change once AMDGPU-Pro"
+               ewarn "has become officially supported by Gentoo."
+       fi
+
        elog "AMD OpenCL driver relies on dev-libs/ocl-icd to work. To enable 
it, please run"
        elog ""
        elog "    eselect opencl set ocl-icd"

Reply via email to