Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 352596 Details for
Bug 475294
Please add multilib support to libcxxrt and libcxx.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add pkg_setup(), sample patch for libcxx-9999.ebuild
libcxx-9999-add-pkg_setup.ebuild.patch (text/plain), 1.30 KB, created by
Yuta SATOH
on 2013-07-04 11:03:51 UTC
(
hide
)
Description:
add pkg_setup(), sample patch for libcxx-9999.ebuild
Filename:
MIME Type:
Creator:
Yuta SATOH
Created:
2013-07-04 11:03:51 UTC
Size:
1.30 KB
patch
obsolete
>diff --git a/libcxx-9999.ebuild b/libcxx-9999.ebuild >index abffa7b..090f462 100644 >--- a/libcxx-9999.ebuild >+++ b/libcxx-9999.ebuild >@@ -28,13 +28,38 @@ fi > IUSE="elibc_glibc +libcxxrt static-libs test" > > RDEPEND="libcxxrt? ( >=sys-libs/libcxxrt-0.0_p20130530[static-libs?,${MULTILIB_USEDEP}] ) >- !libcxxrt? ( sys-devel/gcc[cxx] )" >+ !libcxxrt? ( >=sys-devel/gcc-4.7.0[cxx] )" > DEPEND="${RDEPEND} > test? ( sys-devel/clang ) >+ || ( sys-devel/clang >=sys-devel/gcc-4.7.0 ) > app-arch/xz-utils" > > DOCS=( CREDITS.TXT ) > >+pkg_setup() { >+ if ! use libcxxrt && [[ $(tc-getCC) != *gcc* ]] ; then >+ eerror "Please set gcc, g++ to CC, CXX." >+ eerror >+ die >+ fi >+ if [[ $(gcc-version) < 4.7 ]] && [[ $(tc-getCXX) != *clang++* ]] ; then >+ if use libcxxrt && has_version sys-devel/clang ; then >+ ewarn "Because version of gcc is old, force set CC=clang, CXX=clang++." >+ ewarn >+ ewarn "If you want to compile it using gcc, please install gcc-4.7 or later." >+ ewarn "Don't forget to switch to latest gcc using gcc-config." >+ >+ export CC=clang >+ export CXX=clang++ >+ else >+ eerror "Please use gcc-config to switch to gcc-4.7 or later version." >+ eerror "This package requires gcc-4.7 or later version." >+ eerror >+ die >+ fi >+ fi >+} >+ > src_prepare() { > cp -f "${FILESDIR}/Makefile" lib/ || die > multilib_copy_sources
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 475294
:
352308
|
352314
|
352316
|
352318
|
352320
|
352386
|
352508
|
352514
|
352516
|
352588
|
352590
|
352596