diff options
author | Michael Januszewski <spock@gentoo.org> | 2010-12-12 14:51:29 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2010-12-12 14:51:29 +0000 |
commit | fa1c63dbea780fa0e55059c8b00de90271ba03e5 (patch) | |
tree | bb9df679d20aa1db8f26cdaea0157c4ecc7d4b8e /dev-util/nvidia-cuda-sdk | |
parent | use gentoo mirrors (diff) | |
download | gentoo-2-fa1c63dbea780fa0e55059c8b00de90271ba03e5.tar.gz gentoo-2-fa1c63dbea780fa0e55059c8b00de90271ba03e5.tar.bz2 gentoo-2-fa1c63dbea780fa0e55059c8b00de90271ba03e5.zip |
Add a check for GCC 4.4, which is necessary to compile the examples (bug #347497).
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/nvidia-cuda-sdk')
-rw-r--r-- | dev-util/nvidia-cuda-sdk/ChangeLog | 7 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog index 0807a73abd6c..ad80ca919b01 100644 --- a/dev-util/nvidia-cuda-sdk/ChangeLog +++ b/dev-util/nvidia-cuda-sdk/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-util/nvidia-cuda-sdk # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.24 2010/12/01 22:00:38 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.25 2010/12/12 14:51:29 spock Exp $ + + 12 Dec 2010; Michał Januszewski <spock@gentoo.org> + nvidia-cuda-sdk-3.2.ebuild: + Add a check for GCC 4.4, which is necessary to compile the examples (bug + #347497). *nvidia-cuda-sdk-3.2 (01 Dec 2010) diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild index ad87cbccc268..aa9652144caa 100644 --- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild +++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 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-3.2.ebuild,v 1.1 2010/12/01 22:00:38 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.2.ebuild,v 1.2 2010/12/12 14:51:29 spock Exp $ EAPI=2 @@ -28,6 +28,14 @@ S="${WORKDIR}" RESTRICT="binchecks" +pkg_setup() { + if use cuda || use opencl && [ "$(gcc-major-version)" == "4" -a $(gcc-minor-version) -ge 5 ]; then + eerror "This package requires <=sys-devel/gcc-4.4 to build sucessfully." + eerror "Please use gcc-config to switch to a compatible GCC version." + die "<=sys-devel/gcc-4.4 required" + fi +} + src_unpack() { unpack_makeself } |