dev-libs/amdgpu-pro-opencl: display "caveat emptor" warning after first installation.
authorMarek Szuba <marecki@gentoo.org>
Fri, 30 Jun 2017 11:44:08 +0000 (13:43 +0159)
committerMarek Szuba <marecki@gentoo.org>
Fri, 30 Jun 2017 12:57:18 +0000 (14:56 +0159)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.10.429170.ebuild

index c75b64c1091f11b85bbeff5271df2c0c15315c84..6d8da00df4402867fe2ef513a16bebf7649f263c 100644 (file)
@@ -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"