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/ocl-icd/
Date: Fri, 10 Apr 2020 23:27:49 +0000 (UTC)	[thread overview]
Message-ID: <1586561113.780818b4b055f8c41d253e71cd9641322776e7a4.marecki@gentoo> (raw)

commit:     780818b4b055f8c41d253e71cd9641322776e7a4
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 10 23:13:10 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Apr 10 23:25:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=780818b4

dev-libs/ocl-icd: use dev-util/opencl-headers instead of bundled ones

Builds just fine against these, which is not surprising given both sets
are official Khronos Group OpenCL 2.2 headers - the only difference
being the bundled ones are legacy and the separately packaged ones are
unified. Furthermore, without having to worry about file collisions in
/usr/include/CL, it will become possible for packages depending on
unified headers (e.g. dev-libs/intel-neo, which too uses a bundled copy
for now) to use dev-util/opencl-headers regardless of which ICD loader
provides the library. Last but not least, one bundling less to worry
about!

Note that this change makes USE=khronos-headers redundant, that said we
keep it in IUSE - at least for now anyway - so that ebuilds explicitly
requesting this USE flag needn't be modified.

No revbump because the first commit introducing -r3 has at the time of
me writing this not had been pushed to Gentoo servers yet.

Committed directly due to prolonged absence of the maintainer.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-libs/ocl-icd/ocl-icd-2.2.12-r3.ebuild | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/dev-libs/ocl-icd/ocl-icd-2.2.12-r3.ebuild b/dev-libs/ocl-icd/ocl-icd-2.2.12-r3.ebuild
index 783021a439e..980cac2e750 100644
--- a/dev-libs/ocl-icd/ocl-icd-2.2.12-r3.ebuild
+++ b/dev-libs/ocl-icd/ocl-icd-2.2.12-r3.ebuild
@@ -13,10 +13,16 @@ LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+# Does nothing now but by keeping it here we avoid having to have virtual/opencl
+# handle ebuilds both with and without this flag.
 IUSE="+khronos-headers"
 
 BDEPEND="${RUBY_DEPS}"
-RDEPEND="!app-eselect/eselect-opencl
+DEPEND="dev-util/opencl-headers"
+# nvidia-drivers block is hopefully temporary, until it has ceased
+# to depend on eselect-opencl
+RDEPEND="${DEPEND}
+	!app-eselect/eselect-opencl
 	!dev-libs/opencl-icd-loader
 	!x11-drivers/nvidia-drivers"
 
@@ -30,7 +36,9 @@ src_prepare() {
 }
 
 multilib_src_configure() {
-	ECONF_SOURCE="${S}" econf --enable-pthread-once
+	# dev-util/opencl-headers ARE official Khronos Group headers, what this option
+	# does is disable the use of the bundled ones
+	ECONF_SOURCE="${S}" econf --enable-pthread-once --disable-official-khronos-headers
 }
 
 multilib_src_install() {
@@ -38,10 +46,4 @@ multilib_src_install() {
 
 	# Drop .la files
 	find "${ED}" -name '*.la' -delete || die
-
-	# Install vendor headers
-	if use khronos-headers; then
-		insinto /usr/include
-		doins -r "${S}/khronos-headers/CL"
-	fi
 }


             reply	other threads:[~2020-04-10 23:27 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-10 23:27 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-26  4:46 [gentoo-commits] repo/gentoo:master commit in: dev-libs/ocl-icd/ Sam James
2022-07-24  1:04 Sam James
2022-06-21  8:39 Benda XU
2022-05-20 20:21 James Le Cuirot
2022-03-27  8:20 罗百科
2021-10-27  6:37 Agostino Sarubbo
2021-10-27  6:35 Agostino Sarubbo
2021-06-26  9:45 罗百科
2021-05-29 14:43 James Le Cuirot
2021-05-29 14:43 James Le Cuirot
2021-05-29 14:43 James Le Cuirot
2021-05-29 14:43 James Le Cuirot
2021-05-29 14:43 James Le Cuirot
2021-03-20  9:02 罗百科
2020-08-11 23:24 Matt Turner
2020-05-14 21:29 Thomas Deutschmann
2020-05-12 12:50 Mikle Kolyada
2020-04-20 12:23 Marek Szuba
2020-04-10 23:27 Marek Szuba
2020-04-09 21:15 Marek Szuba
2020-01-14 19:14 Alexey Shvetsov
2020-01-02  6:43 Matt Turner
2019-08-12 12:09 Guilherme Amadio
2019-05-17  7:57 Alexey Shvetsov
2018-11-03 14:36 Mikle Kolyada
2018-10-19 17:47 Matt Turner
2018-10-08 15:43 Matt Turner
2018-10-08 15:43 Matt Turner
2017-06-15  9:54 Agostino Sarubbo
2017-06-13 10:47 Agostino Sarubbo
2017-01-28 21:06 Patrick Lauer
2016-03-22  5:19 Patrick Lauer
2016-03-21 22:04 Patrice Clement
2016-02-18 15:23 Patrick Lauer

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=1586561113.780818b4b055f8c41d253e71cd9641322776e7a4.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