mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/libcxxrt: Required gcc-6+ for tests
Closes: https://bugs.gentoo.org/635528
This commit is contained in:
@@ -25,7 +25,7 @@ if [ "${PV%9999}" = "${PV}" ] ; then
|
||||
else
|
||||
KEYWORDS=""
|
||||
fi
|
||||
IUSE="+libunwind +static-libs"
|
||||
IUSE="+libunwind +static-libs test"
|
||||
|
||||
RDEPEND="libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
|
||||
sys-libs/llvm-libunwind[static-libs?,${MULTILIB_USEDEP}] ) )"
|
||||
@@ -34,6 +34,22 @@ DEPEND="${RDEPEND}
|
||||
|
||||
DOCS=( AUTHORS COPYRIGHT README )
|
||||
|
||||
gcc_check() {
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]] && use test; then
|
||||
eerror "At least gcc-6 is required to run tests. Please switch to a newer"
|
||||
eerror "compiler before proceeding."
|
||||
die "gcc-6 required for tests"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
gcc_check
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
gcc_check
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cp "${FILESDIR}/Makefile" src/ || die
|
||||
cp "${FILESDIR}/Makefile.test" test/Makefile || die
|
||||
|
||||
@@ -34,6 +34,22 @@ DEPEND="${RDEPEND}
|
||||
|
||||
DOCS=( AUTHORS COPYRIGHT README )
|
||||
|
||||
gcc_check() {
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]] && use test; then
|
||||
eerror "At least gcc-6 is required to run tests. Please switch to a newer"
|
||||
eerror "compiler before proceeding."
|
||||
die "gcc-6 required for tests"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
gcc_check
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
gcc_check
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cp "${FILESDIR}/Makefile" src/ || die
|
||||
cp "${FILESDIR}/Makefile.test" test/Makefile || die
|
||||
|
||||
Reference in New Issue
Block a user