summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2012-02-05 16:39:02 +0000
committerMichael Januszewski <spock@gentoo.org>2012-02-05 16:39:02 +0000
commit9593730bf8eebf65e6a93445a7d0930b88f6598c (patch)
tree80eeb308543ec1757f6371ec4eb0daa7285fcba3 /dev-util/nvidia-cuda-sdk
parentVersion bumped. (diff)
downloadgentoo-2-9593730bf8eebf65e6a93445a7d0930b88f6598c.tar.gz
gentoo-2-9593730bf8eebf65e6a93445a7d0930b88f6598c.tar.bz2
gentoo-2-9593730bf8eebf65e6a93445a7d0930b88f6598c.zip
Add a check for gcc-4.5+ (bug #401407).
(Portage version: 2.1.10.45/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/nvidia-cuda-sdk')
-rw-r--r--dev-util/nvidia-cuda-sdk/ChangeLog6
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild11
2 files changed, 15 insertions, 2 deletions
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index 5e3e185e20d2..ace56d6f92a9 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-util/nvidia-cuda-sdk
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.29 2012/02/05 06:27:23 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.30 2012/02/05 16:39:02 spock Exp $
+
+ 05 Feb 2012; Michał Januszewski <spock@gentoo.org>
+ nvidia-cuda-sdk-4.1.ebuild:
+ Add a check for gcc-4.5+ (bug #401407).
05 Feb 2012; Mike Frysinger <vapier@gentoo.org>
nvidia-cuda-sdk-2.02.0807.1535.ebuild,
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild
index 90aafe65f777..6720501827ee 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild,v 1.2 2012/02/05 05:48:44 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild,v 1.3 2012/02/05 16:39:02 spock Exp $
EAPI=2
@@ -28,6 +28,15 @@ S="${WORKDIR}"
RESTRICT="binchecks"
+pkg_setup() {
+ if use cuda || use opencl && [ $(gcc-major-version) -lt 4 -o $(gcc-minor-version) -lt 5 ]; then
+ eerror "This package requires >=sys-devel/gcc-4.5 to build sucessfully."
+ eerror "Please use gcc-config to switch to a compatible GCC version."
+ die ">=sys-devel/gcc-4.4 required"
+ fi
+ echo $(gcc-major-version) $(gcc-minor-version)
+}
+
src_compile() {
if ! use examples; then
return