Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 351352 Details for
Bug 462608
www-client/firefox-{19..24}.0 fail to build with clang and clang+lto
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
firefox-21.0.ebuild.patch
firefox-21.0.ebuild.patch (text/plain), 2.76 KB, created by
cmuelle8
on 2013-06-18 22:12:16 UTC
(
hide
)
Description:
firefox-21.0.ebuild.patch
Filename:
MIME Type:
Creator:
cmuelle8
Created:
2013-06-18 22:12:16 UTC
Size:
2.76 KB
patch
obsolete
>--- firefox-21.0.ebuild.orig 2013-06-19 00:05:05.000000000 +0200 >+++ firefox-21.0.ebuild 2013-06-17 04:22:52.000000000 +0200 >@@ -39,7 +39,7 @@ > KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" > SLOT="0" > LICENSE="MPL-2.0 GPL-2 LGPL-2.1" >-IUSE="bindist gstreamer +jit +minimal pgo pulseaudio selinux system-cairo system-jpeg system-sqlite" >+IUSE="address-sanitizer bindist gstreamer +jit +minimal pgo pulseaudio selinux system-cairo system-jpeg system-sqlite" > > # More URIs appended below... > SRC_URI="${SRC_URI} >@@ -238,6 +238,50 @@ > mozconfig_use_enable jit ion > mozconfig_use_enable system-cairo > >+ # compiler-dependent settings >+ if [[ $(tc-getCC) =~ clang ]]; then >+ mozconfig_annotate 'from ebuild, CC=clang detected' --enable-llvm-hacks >+ >+ # methodjit causes clang builds to segfault on x86_64 (see bug #462608) >+ # same for ion code.. >+ if use amd64; then >+ sed -e '/javascript.options.methodjit/ s/true/false/' \ >+ -e '/javascript.options.ion/ s/true/false/' \ >+ -i "${S}"/modules/libpref/src/init/all.js >+ fi >+ >+ # https://developer.mozilla.org/en-US/docs/Building_Firefox_with_Address_Sanitizer >+ if use address-sanitizer; then >+ echo "export MOZ_JEMALLOC=0" >> ${S}/.mozconfig >+ mozconfig_annotate '+address-sanitizer' --disable-crash-reporter >+ mozconfig_annotate '+address-sanitizer' --disable-elf-hack >+ mozconfig_annotate '+address-sanitizer' --disable-jemalloc >+ mozconfig_annotate '+address-sanitizer' --disable-replace-malloc >+ >+ echo "export MOZ_DEBUG_SYMBOLS=1" >> ${S}/.mozconfig >+ mozconfig_use_enable address-sanitizer debug-symbols >+ mozconfig_use_enable address-sanitizer >+ append-flags "-fsanitize=address" >+ append-flags "-Dxmalloc=myxmalloc" >+ fi >+ else >+ use address-sanitizer && die "Use flag address-sanitizer can only be \ >+ enabled if CC=clang is set. You're using a different compiler." >+ >+ if [[ $(gcc-major-version) -lt 4 ]]; then >+ append-cxxflags -fno-stack-protector >+ elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then >+ if use amd64 || use x86; then >+ append-flags -mno-avx >+ fi >+ fi >+ fi >+ >+ # support EXTRA_ECONF, maybe this should be in mozcoreconf-2.eclass .. >+ for eeopt in $EXTRA_ECONF; do >+ mozconfig_annotate 'from ebuild, passed using EXTRA_ECONF' $eeopt >+ done >+ > # Allow for a proper pgo build > if use pgo; then > echo "mk_add_options PROFILE_GEN_SCRIPT='\$(PYTHON) \$(OBJDIR)/_profile/pgo/profileserver.py'" >> "${S}"/.mozconfig >@@ -245,14 +289,6 @@ > > # Finalize and report settings > mozconfig_final >- >- if [[ $(gcc-major-version) -lt 4 ]]; then >- append-cxxflags -fno-stack-protector >- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then >- if use amd64 || use x86; then >- append-flags -mno-avx >- fi >- fi > } > > 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 462608
:
342858
|
342926
|
343108
|
343112
|
343798
|
343800
|
344010
|
344638
|
344640
|
351352
|
351766
|
351768
|
352652
|
352654
|
352656
|
352898
|
361618
|
361630
|
362036