public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/amdgpu-pro-opencl/
Date: Thu, 27 Sep 2018 09:49:55 +0000 (UTC)	[thread overview]
Message-ID: <1538041768.97e510e65b2aded95672ac055830d47603690b2f.marecki@gentoo> (raw)

commit:     97e510e65b2aded95672ac055830d47603690b2f
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 27 09:49:28 2018 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Sep 27 09:49:28 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97e510e6

dev-libs/amdgpu-pro-opencl: automate invoking "eselect opencl"

Instead of telling the user in pkg_postinst() to run it, just run it
there outselves - with --use-old to honour possible earlier choices.

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 .../amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild  | 12 ++++++------
 .../amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild  | 11 +++++------
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
index fd883261984..b9f388b4b18 100644
--- a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
+++ b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
@@ -18,8 +18,11 @@ KEYWORDS="~amd64"
 
 RESTRICT="mirror fetch strip"
 
-DEPEND="dev-util/patchelf"
-RDEPEND="dev-libs/ocl-icd"
+COMMON="app-eselect/eselect-opencl
+	dev-libs/ocl-icd"
+DEPEND="${COMMON}
+	dev-util/patchelf"
+RDEPEND="${COMMON}"
 
 QA_PREBUILT="/opt/${SUPER_PN}/lib*/*"
 
@@ -74,8 +77,5 @@ pkg_postinst() {
 		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"
-	elog ""
+	"${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
 }

diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
index 241e495069a..03574c8b01e 100644
--- a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
+++ b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
@@ -18,8 +18,10 @@ KEYWORDS="~amd64"
 
 RESTRICT="mirror fetch strip"
 
-DEPEND=""
-RDEPEND="dev-libs/ocl-icd"
+COMMON="app-eselect/eselect-opencl
+	dev-libs/ocl-icd"
+DEPEND="${COMMON}"
+RDEPEND="${COMMON}"
 
 QA_PREBUILT="/opt/${SUPER_PN}/lib*/*"
 
@@ -59,8 +61,5 @@ pkg_postinst() {
 		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"
-	elog ""
+	"${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
 }


             reply	other threads:[~2018-09-27  9:50 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-27  9:49 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-21  8:24 [gentoo-commits] repo/gentoo:master commit in: dev-libs/amdgpu-pro-opencl/ Joonas Niilola
2020-11-11 11:25 Joonas Niilola
2020-04-08 14:57 Marek Szuba
2019-10-07 10:19 Marek Szuba
2019-09-30 12:49 Marek Szuba
2019-09-23 17:16 Michał Górny
2019-08-20 15:14 Marek Szuba
2019-08-20 15:14 Marek Szuba
2019-08-10 21:10 Marek Szuba
2019-08-10 15:46 Marek Szuba
2019-06-18 18:24 Thomas Deutschmann
2019-05-30 22:17 Marek Szuba
2019-05-29 10:31 Marek Szuba
2019-05-25 21:12 Marek Szuba
2019-05-25 12:03 Marek Szuba
2019-01-15  9:52 Marek Szuba
2018-11-09  8:45 Marek Szuba
2018-08-31 13:44 Marek Szuba
2018-07-09 14:04 Marek Szuba
2018-07-09 14:04 Marek Szuba
2018-06-26 19:47 Marek Szuba
2018-06-20 10:10 Marek Szuba
2018-05-25 10:04 Marek Szuba
2018-05-25 10:04 Marek Szuba
2017-12-16 10:03 Marek Szuba
2017-12-16  9:44 Marek Szuba
2017-12-11  0:55 Ulrich Müller
2017-11-21 11:00 Marek Szuba
2017-11-20 15:32 Marek Szuba
2017-11-19 21:03 Marek Szuba
2017-10-13 22:26 Marek Szuba
2017-08-06 16:38 Marek Szuba
2017-08-06 16:38 Marek Szuba
2017-08-02 19:46 Marek Szuba
2017-06-30 12:58 Marek Szuba
2017-06-27 10:58 Marek Szuba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1538041768.97e510e65b2aded95672ac055830d47603690b2f.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox