summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-11-19 06:11:07 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-11-19 06:11:07 +0000
commit3e841a84d87ec0e869584f8a06b251a004e96c63 (patch)
tree6f503b29690d49f779d8debc88a75c4f8999def1 /dev-cpp
parentBump to 0.10.30. No major changes. (diff)
downloadgentoo-2-3e841a84d87ec0e869584f8a06b251a004e96c63.tar.gz
gentoo-2-3e841a84d87ec0e869584f8a06b251a004e96c63.tar.bz2
gentoo-2-3e841a84d87ec0e869584f8a06b251a004e96c63.zip
Fixed random parallel failures. Respect compilers. Removed forced pentium4 for x86 users. Minor other fixes. Thanks Kevin Pyle for his work (bug #331011)
(Portage version: 2.1.9.24/cvs/Linux x86_64)
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/tbb/ChangeLog8
-rw-r--r--dev-cpp/tbb/tbb-3.0.056.ebuild80
-rw-r--r--dev-cpp/tbb/tbb-3.0.104.ebuild31
3 files changed, 30 insertions, 89 deletions
diff --git a/dev-cpp/tbb/ChangeLog b/dev-cpp/tbb/ChangeLog
index 3b2f6c6eb61c..42f7d0ef08b0 100644
--- a/dev-cpp/tbb/ChangeLog
+++ b/dev-cpp/tbb/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-cpp/tbb
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/ChangeLog,v 1.8 2010/11/05 19:51:31 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/ChangeLog,v 1.9 2010/11/19 06:11:07 bicatali Exp $
+
+ 19 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org> -tbb-3.0.056.ebuild,
+ tbb-3.0.104.ebuild:
+ Fixed random parallel failures. Respect compilers. Removed forced pentium4
+ for x86 users. Minor other fixes. Thanks Kevin Pyle for his work (bug
+ #331011)
*tbb-3.0.104 (05 Nov 2010)
diff --git a/dev-cpp/tbb/tbb-3.0.056.ebuild b/dev-cpp/tbb/tbb-3.0.056.ebuild
deleted file mode 100644
index ea4df3b27434..000000000000
--- a/dev-cpp/tbb/tbb-3.0.056.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/tbb-3.0.056.ebuild,v 1.1 2010/08/04 22:23:35 bicatali Exp $
-
-EAPI=3
-inherit eutils versionator toolchain-funcs
-# url number
-MYU="78/157"
-# release update
-MYR="%20update%20"2
-
-PV1="$(get_version_component_range 1)"
-PV2="$(get_version_component_range 2)"
-PV3="$(get_version_component_range 3)"
-MYP="${PN}${PV1}${PV2}_${PV3}oss"
-
-DESCRIPTION="High level abstract threading library"
-HOMEPAGE="http://www.threadingbuildingblocks.org/"
-SRC_URI="http://www.threadingbuildingblocks.org/uploads/${MYU}/${PV1}.${PV2}${MYR}/${MYP}_src.tgz"
-LICENSE="GPL-2-with-exceptions"
-
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug doc examples"
-
-DEPEND="!<=dev-cpp/tbb-2.1.016"
-RDEPEND="${DEPEND}"
-S="${WORKDIR}/${MYP}"
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-tests.patch
- sed -i \
- -e "s/-O2/${CXXFLAGS}/g" \
- build/*.inc || die
-}
-
-src_compile() {
- if [[ $(tc-getCXX) == *g++ ]]; then
- myconf="compiler=gcc"
- elif [[ $(tc-getCXX) == *ic*c ]]; then
- myconf="compiler=icc"
- fi
- # from the Makefile, split debug
- cd src
- emake ${myconf} tbb_release tbbmalloc_release || die "emake failed"
- if use debug || use examples; then
- emake ${myconf} tbb_debug tbbmalloc_debug || die "emake debug failed"
- fi
-}
-
-src_test() {
- cd src
- emake -j1 ${myconf} test_release || die "emake test failed"
- if use debug || use examples; then
- emake ${myconf} test_debug tbbmalloc_test_debug || die "emake test debug failed"
- fi
-
-}
-
-src_install(){
- for l in $(find build -name lib\*.so.\*); do
- dolib.so ${l} || die
- local bl=$(basename ${l})
- dosym ${bl} /usr/$(get_libdir)/${bl%.*}
- done
- insinto /usr
- doins -r include || die
-
- dodoc README CHANGES doc/Release_Notes.txt
- if use doc ; then
- insinto /usr/share/doc/${PF}
- doins -r doc/html || die
- fi
- if use examples ; then
- insinto /usr/share/doc/${PF}/examples/build
- doins build/*.inc || die
- insinto /usr/share/doc/${PF}/examples
- doins -r examples || die
- fi
-}
diff --git a/dev-cpp/tbb/tbb-3.0.104.ebuild b/dev-cpp/tbb/tbb-3.0.104.ebuild
index 2f7e1ed529e0..1344084be835 100644
--- a/dev-cpp/tbb/tbb-3.0.104.ebuild
+++ b/dev-cpp/tbb/tbb-3.0.104.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-cpp/tbb/tbb-3.0.104.ebuild,v 1.1 2010/11/05 19:51:31 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/tbb-3.0.104.ebuild,v 1.2 2010/11/19 06:11:07 bicatali Exp $
EAPI=3
inherit eutils versionator toolchain-funcs
@@ -29,9 +29,25 @@ S="${WORKDIR}/${MYP}"
src_prepare() {
epatch "${FILESDIR}"/${P}-tests.patch
+ # use fully qualified compilers. do not force pentium4 for x86 users
+ local CC="$(tc-getCC)"
sed -i \
-e "s/-O2/${CXXFLAGS}/g" \
+ -e 's/^\(CPLUS = \)g++ $/\1'"$(tc-getCXX)/" \
+ -e 's/^\(CONLY = \)gcc$/\1'"${CC}/" \
+ -e 's/\(shell \)gcc\( --version\)/\1'"${CC}"'\2/' \
+ -e '/CPLUS_FLAGS +=/s/-march=pentium4//' \
build/*.inc || die
+ # - Strip the $(shell ... >$(NUL) 2>$(NUL)) wrapping, leaving just the
+ # actual command.
+ # - Force generation of version_string.tmp immediately after the directory
+ # is created. This avoids a race when the user builds tbb and tbbmalloc
+ # concurrently. The choice of Makefile.tbb (instead of
+ # Makefile.tbbmalloc) is arbitrary.
+ sed -i \
+ -e 's/^\t\$(shell \(.*\) >\$(NUL) 2>\$(NUL))\s*/\t\1/' \
+ -e 's!^\t@echo Created \$(work_dir)_\(debug\|release\).*$!&\n\t$(MAKE) -C "$(work_dir)_\1" -r -f $(tbb_root)/build/Makefile.tbb cfg=\1 tbb_root=$(tbb_root) version_string.tmp!' \
+ src/Makefile || die
}
src_compile() {
@@ -40,20 +56,19 @@ src_compile() {
elif [[ $(tc-getCXX) == *ic*c ]]; then
myconf="compiler=icc"
fi
- # from the Makefile, split debug
- cd src
- emake ${myconf} tbb_release tbbmalloc_release || die "emake failed"
+ local ccconf="${myconf}"
if use debug || use examples; then
- emake ${myconf} tbb_debug tbbmalloc_debug || die "emake debug failed"
+ ccconf="${ccconf} tbb_debug tbbmalloc_debug"
fi
+ emake -C src ${ccconf} tbb_release tbbmalloc_release || die "emake failed"
}
src_test() {
- cd src
- emake -j1 ${myconf} test_release || die "emake test failed"
+ local ccconf="${myconf}"
if use debug || use examples; then
- emake -j1 ${myconf} test_debug tbbmalloc_test_debug || die "emake test debug failed"
+ ${ccconf}="${myconf} test_debug tbbmalloc_test_debug"
fi
+ emake -C src ${ccconf} test_release || die "emake test failed"
}
src_install(){