diff options
author | Michael Januszewski <spock@gentoo.org> | 2012-02-05 16:39:02 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2012-02-05 16:39:02 +0000 |
commit | 9593730bf8eebf65e6a93445a7d0930b88f6598c (patch) | |
tree | 80eeb308543ec1757f6371ec4eb0daa7285fcba3 /dev-util/nvidia-cuda-sdk | |
parent | Version bumped. (diff) | |
download | gentoo-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/ChangeLog | 6 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild | 11 |
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 |