Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621816 - www-client/firefox bundles dev-libs/jemalloc
Summary: www-client/firefox bundles dev-libs/jemalloc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-15 07:39 UTC by Coacher
Modified: 2017-07-07 13:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info firefox (info,7.90 KB, text/plain)
2017-06-15 15:53 UTC, Coacher
Details
build.log.gz (build.log.gz,250.83 KB, application/gzip)
2017-06-15 15:55 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2017-06-15 07:39:54 UTC
Hello.

Relevant part of firefox-52.2.0 build.log:

memory/jemalloc/src> configure: updating cache /var/tmp/portage/www-client/firefox-52.2.0/work/firefox-52.2.0esr/ff/memory/jemalloc/src/config.cache
memory/jemalloc/src> configure: creating ./config.status
memory/jemalloc/src> ===============================================================================
memory/jemalloc/src> jemalloc version   : 4.3.1-0-g0110fa8451af905affd77c3bea0d545fee2251b2
memory/jemalloc/src> library revision   : 2
memory/jemalloc/src>
memory/jemalloc/src> CONFIG             : --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --enable-stats --with-jemalloc-prefix=je_ --disable-valgrind ac_cv_func_memalign=yes ac_cv_func_valloc=yes AS=$(CC) 'CC=/usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99' 'CXX=/usr/bin/x86_64-pc-linux-gnu-g++ -std=gnu++11' 'CPP=/usr/bin/x86_64-pc-linux-gnu-gcc -E -std=gnu99' LD=x86_64-pc-linux-gnu-ld AR=ar RANLIB=ranlib STRIP=strip CPPFLAGS= 'EXTRA_CFLAGS=-Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-lifetime-dse -march=native -pipe -frecord-gcc-switches -Wimplicit-function-declaration -fno-strict-aliasing -fno-math-errno -pthread -pipe' 'LDFLAGS=-lpthread -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -Wl,-z,relro,-z,now -Wl,-z,noexecstack -Wl,-z,text' ac_cv_func_sbrk=false --enable-munmap --disable-cache-oblivious --cache-file=/var/tmp/portage/www-client/firefox-52.2.0/work/firefox-52.2.0esr/ff/memory/jemalloc/src/config.cache build_alias=x86_64-pc-linux-gnu host_alias=x86_64-pc-linux-gnu 'CFLAGS=-Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-lifetime-dse -march=native -pipe -frecord-gcc-switches -Wimplicit-function-declaration -fno-strict-aliasing -fno-math-errno -pthread -pipe'
memory/jemalloc/src> CC                 : /usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99
memory/jemalloc/src> CFLAGS             : -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-lifetime-dse -march=native -pipe -frecord-gcc-switches -Wimplicit-function-declaration -fno-strict-aliasing -fno-math-errno -pthread -pipe -fvisibility=hidden
memory/jemalloc/src> EXTRA_CFLAGS       : -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-lifetime-dse -march=native -pipe -frecord-gcc-switches -Wimplicit-function-declaration -fno-strict-aliasing -fno-math-errno -pthread -pipe
memory/jemalloc/src> CPPFLAGS           :  -D_GNU_SOURCE -D_REENTRANT
memory/jemalloc/src> LDFLAGS            : -lpthread -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -Wl,-z,relro,-z,now -Wl,-z,noexecstack -Wl,-z,text
memory/jemalloc/src> EXTRA_LDFLAGS      :
memory/jemalloc/src> LIBS               : -lm  -lpthread
memory/jemalloc/src> RPATH_EXTRA        :
memory/jemalloc/src>
memory/jemalloc/src> XSLTPROC           : /usr/bin/xsltproc
memory/jemalloc/src> XSLROOT            : /usr/share/sgml/docbook/xsl-stylesheets
memory/jemalloc/src>
memory/jemalloc/src> PREFIX             : /usr/local
memory/jemalloc/src> BINDIR             : /usr/local/bin
memory/jemalloc/src> DATADIR            : /usr/local/share
memory/jemalloc/src> INCLUDEDIR         : /usr/local/include
memory/jemalloc/src> LIBDIR             : /usr/local/lib
memory/jemalloc/src> MANDIR             : /usr/local/share/man
memory/jemalloc/src>
memory/jemalloc/src> srcroot            : /var/tmp/portage/www-client/firefox-52.2.0/work/firefox-52.2.0esr/memory/jemalloc/src/
memory/jemalloc/src> abs_srcroot        : /var/tmp/portage/www-client/firefox-52.2.0/work/firefox-52.2.0esr/memory/jemalloc/src/
memory/jemalloc/src> objroot            :
memory/jemalloc/src> abs_objroot        : /var/tmp/portage/www-client/firefox-52.2.0/work/firefox-52.2.0esr/ff/memory/jemalloc/src/
memory/jemalloc/src>
memory/jemalloc/src> JEMALLOC_PREFIX    : je_
memory/jemalloc/src> JEMALLOC_PRIVATE_NAMESPACE
memory/jemalloc/src>                    : je_
memory/jemalloc/src> install_suffix     :
memory/jemalloc/src> malloc_conf        :
memory/jemalloc/src> autogen            : 0
...

Then firefox proceeds with building this bundled jemalloc.
Comment 1 Jory A. Pratt gentoo-dev 2017-06-15 12:22:31 UTC
You do not decide what is relevant and what is not. There are guidelines for filling a bug report. We request build.log and emerge --info for reasons. Once this is provided feel free to reopen bug report.
Comment 2 Coacher 2017-06-15 15:53:52 UTC
Created attachment 476536 [details]
emerge --info firefox
Comment 3 Coacher 2017-06-15 15:55:03 UTC
Created attachment 476538 [details]
build.log.gz
Comment 4 Coacher 2017-06-15 15:56:26 UTC
$ emerge -pqv firefox
[ebuild   R   ] www-client/firefox-52.2.0  USE="dbus gtk2 hardened jemalloc pulseaudio system-harfbuzz system-icu system-jpeg system-libevent system-libvpx -bindist -custom-cflags -custom-optimization -debug -gmp-autoupdate -hwaccel -jack (-neon) -pgo (-rust) (-selinux) -startup-notification (-system-cairo) -system-sqlite {-test} -wifi" L10N="en-GB ru -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW"
Comment 5 Jory A. Pratt gentoo-dev 2017-07-07 13:01:24 UTC
jemalloc has always been bundled, the jemalloc in the mozilla code is heavily modified. As of 55.0 they are moving back to a heavily modified jemalloc-3 so there is nothing we will do to even attempt to split it out and make work with system jemalloc