Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 315285 Details for
Bug 409815
sys-freebsd/boot0-9.0 fails to build with USE=zfs and either Clang or GCC 4.6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sample patch for boot0-9.0-ebuild
409815-gcc+clang.patch (text/plain), 1.03 KB, created by
Yuta SATOH
on 2012-06-14 12:01:07 UTC
(
hide
)
Description:
sample patch for boot0-9.0-ebuild
Filename:
MIME Type:
Creator:
Yuta SATOH
Created:
2012-06-14 12:01:07 UTC
Size:
1.03 KB
patch
obsolete
>--- boot0-9.0.ebuild.orig 2012-05-18 00:01:27.000000000 +0900 >+++ boot0-9.0.ebuild 2012-06-06 19:21:19.000000000 +0900 >@@ -18,10 +18,13 @@ > > RDEPEND="" > DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}* >- =sys-freebsd/freebsd-lib-${RV}*" >+ =sys-freebsd/freebsd-lib-${RV}* >+ || ( =sys-devel/gcc-4.5* >=sys-devel/clang-3.0 )" > > S="${WORKDIR}/sys/boot" > >+PATCHES=( "${FILESDIR}"/${P}-clang.patch ) >+ > boot0_use_enable() { > use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\"" > } >@@ -34,7 +37,7 @@ > } > > src_prepare() { >- sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \ >+ sed -e '/-mno-align-long-strings/d' \ > -i "${S}"/i386/boot2/Makefile \ > -i "${S}"/i386/gptboot/Makefile \ > -i "${S}"/i386/gptzfsboot/Makefile \ >@@ -44,6 +47,16 @@ > src_compile() { > strip-flags > append-flags "-fno-strict-aliasing" >+ >+ if [ -e /usr/bin/clang ] ; then >+ export CC=clang >+ else >+ GCC=`ls -1 /usr/bin/gcc-4.5* | tail -n 1` >+ if [ -e ${GCC} ] ; then >+ export CC=${GCC} >+ fi >+ fi >+ > NOFLAGSTRIP="yes" freebsd_src_compile > } >
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 409815
:
306809
|
313301
|
315285
|
315343
|
330476
|
330478
|
330530
|
330604
|
355870