Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 344666 Details for
Bug 464882
www-client/seamonkey-2.17 fails 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]
seamonkey-2.17.ebuild.patch
seamonkey-2.17.ebuild.patch (text/plain), 2.64 KB, created by
cmuelle8
on 2013-04-06 19:14:36 UTC
(
hide
)
Description:
seamonkey-2.17.ebuild.patch
Filename:
MIME Type:
Creator:
cmuelle8
Created:
2013-04-06 19:14:36 UTC
Size:
2.64 KB
patch
obsolete
>--- seamonkey-2.17.ebuild.orig 2013-04-06 14:12:56.000000000 +0200 >+++ seamonkey-2.17.ebuild 2013-04-06 15:32:17.000000000 +0200 >@@ -47,7 +47,7 @@ > > SLOT="0" > LICENSE="MPL-2.0 GPL-2 LGPL-2.1" >-IUSE="+chatzilla +crypt gstreamer +ipc +jit +roaming system-jpeg system-sqlite" >+IUSE="address-sanitizer +chatzilla +crypt gstreamer +ipc +jit +roaming system-jpeg system-sqlite" > > SRC_URI+="${SRC_URI} > ${MOZ_FTP_URI}/source/${MY_MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 >@@ -232,6 +232,48 @@ > mozconfig_use_enable jit methodjit > mozconfig_use_enable jit tracejit > >+ # 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) >+ if use amd64; then >+ sed -e '/javascript.options.methodjit/ s/true/false/' \ >+ -i "${S}"/mozilla/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 >+ > # Use an objdir to keep things organized. > echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonk" \ > >> "${S}"/.mozconfig >@@ -241,14 +283,6 @@ > > # Work around breakage in makeopts with --no-print-directory > MAKEOPTS="${MAKEOPTS/--no-print-directory/}" >- >- 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 464882
:
344664
| 344666