mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-cpp/tbb: Update subslot
The so versions changed but subslot was not updated Closes: https://bugs.gentoo.org/965312 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
62
dev-cpp/tbb/tbb-2022.3.0-r1.ebuild
Normal file
62
dev-cpp/tbb/tbb-2022.3.0-r1.ebuild
Normal file
@@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake-multilib flag-o-matic
|
||||
|
||||
DESCRIPTION="High level abstract threading library"
|
||||
HOMEPAGE="https://github.com/uxlfoundation/oneTBB"
|
||||
SRC_URI="https://github.com/uxlfoundation/oneTBB/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/oneTBB-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
# https://github.com/oneapi-src/oneTBB/blob/master/CMakeLists.txt#L53
|
||||
# libtbb<SONAME>-libtbbmalloc<SONAME>-libtbbbind<SONAME>
|
||||
SLOT="0/12.17-2.17-3.17"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="!kernel_Darwin? ( sys-apps/hwloc:= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2021.9.0-ppc.patch
|
||||
"${FILESDIR}"/${PN}-2021.13.0-test-atomics.patch
|
||||
"${FILESDIR}"/${PN}-2022.0.0_do-not-fortify-source.patch
|
||||
"${FILESDIR}"/${PN}-2022.3.0-no-clobber-hardened.patch
|
||||
"${FILESDIR}"/${PN}-2022.3.0-cmake.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Has an #error to force compilation as C but links with C++ library, dies
|
||||
# with GLIBCXX_ASSERTIONS as a result.
|
||||
sed -i -e '/tbb_add_c_test(SUBDIR tbbmalloc NAME test_malloc_pure_c DEPENDENCIES TBB::tbbmalloc)/d' \
|
||||
test/CMakeLists.txt || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Workaround for bug #912210
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local mycmakeargs=(
|
||||
-DTBB_TEST=$(usex test)
|
||||
-DTBB_EXAMPLES=OFF # TODO: add this
|
||||
-DTBB_ENABLE_IPO=OFF
|
||||
-DTBB_STRICT=OFF
|
||||
)
|
||||
|
||||
cmake-multilib_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local CMAKE_SKIP_TESTS=()
|
||||
if use elibc_musl; then
|
||||
CMAKE_SKIP_TESTS=( conformance_resumable_tasks ) # Bug #864175
|
||||
fi
|
||||
cmake-multilib_src_test
|
||||
}
|
||||
Reference in New Issue
Block a user