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/beignet/
Date: Fri, 30 Jun 2017 12:58:47 +0000 (UTC)	[thread overview]
Message-ID: <1498827439.0eafd4cd77602ccc5a1b0a487be6a2b47c402706.marecki@gentoo> (raw)

commit:     0eafd4cd77602ccc5a1b0a487be6a2b47c402706
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 30 12:51:24 2017 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Jun 30 12:57:19 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0eafd4cd

dev-libs/beignet: do not try enabling OpenCL 2.0 support on unsupported ABIs

Beignet CMake scripts handle this the right way so let's work with them instead
of against them. Now if USE=ocl20 it will get enabled for abi_x86_64 and
gracefully fall back to 1.2 for the others, whereas USE=-ocl20 still explicitly
disables it for all ABIs.

With many thanks to aballier.

Gentoo-Bug: 622964

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../beignet/{beignet-9999.ebuild => beignet-1.3.1-r1.ebuild}  | 11 ++++++-----
 dev-libs/beignet/beignet-9999.ebuild                          |  2 +-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/dev-libs/beignet/beignet-9999.ebuild b/dev-libs/beignet/beignet-1.3.1-r1.ebuild
similarity index 91%
copy from dev-libs/beignet/beignet-9999.ebuild
copy to dev-libs/beignet/beignet-1.3.1-r1.ebuild
index e842fbc1517..44c6896db12 100644
--- a/dev-libs/beignet/beignet-9999.ebuild
+++ b/dev-libs/beignet/beignet-1.3.1-r1.ebuild
@@ -26,8 +26,9 @@ else
 fi
 
 COMMON="media-libs/mesa
-	sys-devel/clang:=
-	sys-devel/llvm:=
+	sys-devel/clang:0=
+	>=sys-devel/llvm-3.6:0=
+	ocl20? ( >=sys-devel/llvm-3.9:0= )
 	>=x11-libs/libdrm-2.4.70[video_cards_intel]
 	x11-libs/libXext
 	x11-libs/libXfixes"
@@ -39,8 +40,8 @@ DEPEND="${COMMON}
 	virtual/pkgconfig"
 
 PATCHES=(
-	"${FILESDIR}"/${PN}-1.4.0_no-debian-multiarch.patch
-	"${FILESDIR}"/${PN}-1.3.1-oclicd_no_upstream_icdfile.patch
+	"${FILESDIR}"/no-debian-multiarch.patch
+	"${FILESDIR}"/${P}-oclicd_no_upstream_icdfile.patch
 	"${FILESDIR}"/${PN}-1.2.0_no-hardcoded-cflags.patch
 	"${FILESDIR}"/llvm-terminfo.patch
 )
@@ -80,7 +81,7 @@ multilib_src_configure() {
 	local mycmakeargs=(
 		-DCMAKE_INSTALL_PREFIX="${VENDOR_DIR}"
 		-DOCLICD_COMPAT=$(usex ocl-icd)
-		-DENABLE_OPENCL_20=$(usex ocl20)
+		$(usex ocl2 "" "-DENABLE_OPENCL_20=OFF")
 	)
 
 	cmake-utils_src_configure

diff --git a/dev-libs/beignet/beignet-9999.ebuild b/dev-libs/beignet/beignet-9999.ebuild
index e842fbc1517..9e1ae6ff87f 100644
--- a/dev-libs/beignet/beignet-9999.ebuild
+++ b/dev-libs/beignet/beignet-9999.ebuild
@@ -80,7 +80,7 @@ multilib_src_configure() {
 	local mycmakeargs=(
 		-DCMAKE_INSTALL_PREFIX="${VENDOR_DIR}"
 		-DOCLICD_COMPAT=$(usex ocl-icd)
-		-DENABLE_OPENCL_20=$(usex ocl20)
+		$(usex ocl2 "" "-DENABLE_OPENCL_20=OFF")
 	)
 
 	cmake-utils_src_configure


             reply	other threads:[~2017-06-30 12:58 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30 12:58 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-07-03 11:24 [gentoo-commits] repo/gentoo:master commit in: dev-libs/beignet/ Marek Szuba
2019-06-20 11:19 Marek Szuba
2019-06-20 11:19 Marek Szuba
2019-06-20  9:33 Mikle Kolyada
2019-06-05 23:13 Marek Szuba
2019-05-24 14:35 Marek Szuba
2019-05-24 14:20 Marek Szuba
2018-09-27  9:49 Marek Szuba
2018-08-31 13:08 Marek Szuba
2018-08-08 10:21 Guilherme Amadio
2018-04-11 16:19 Michał Górny
2018-03-20 10:01 Agostino Sarubbo
2018-03-17  9:29 Marek Szuba
2018-03-13 10:29 Marek Szuba
2017-12-10 10:17 Pacho Ramos
2017-12-01 11:45 Marek Szuba
2017-11-06 11:54 Marek Szuba
2017-08-17 17:06 Michał Górny
2017-06-30 13:19 Marek Szuba
2017-06-30 13:09 Alexis Ballier
2017-06-14  8:19 Marek Szuba
2017-06-14  7:49 Agostino Sarubbo
2017-04-20 11:24 Marek Szuba
2017-04-20 10:33 Marek Szuba
2017-03-20 12:44 Marek Szuba
2017-03-19 11:32 Justin Lecher
2017-02-19 17:46 Marek Szuba
2016-11-10 14:28 Marek Szuba
2016-10-07  7:25 Marek Szuba
2016-09-19 12:00 Marek Szuba
2016-09-19 10:40 Marek Szuba
2016-09-19 10:40 Marek Szuba
2016-09-02  8:52 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=1498827439.0eafd4cd77602ccc5a1b0a487be6a2b47c402706.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