Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 667112

Summary: >=dev-lang/spidermonkey-45.0.2 mozjemalloc requires glibc headers
Product: Gentoo Linux Reporter: Sora Lee <soleera>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED WONTFIX    
Severity: normal CC: cfuga, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sora Lee 2018-09-26 11:22:01 UTC
memory/mozjemalloc/jemalloc.c relies on glibc specific headers to compile on Linux, resulting in build failures when they aren't present. In particular, occurrences of the following cause errors when compiling with musl libc
    sys/cdefs.h
    sys/sysctl.h
    PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
    PTHREAD_MUTEX_ADAPTIVE_NP
This only seems to affect the single file mentioned; everything else compiles successfully.
Comment 1 Sora Lee 2018-09-26 11:37:43 UTC
Upstream bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1494268
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2018-11-17 16:49:45 UTC
Thank you for reporting on this.  I don't think it's feasible to backport the full changeset that upstream pushed to v58 and so we'll need to develop a patch to handle the musl case.  I'll go through what we've used for firefox in the past and see if there's anything there we can leverage.
Comment 3 Jory A. Pratt gentoo-dev 2019-07-25 16:38:32 UTC
musl has support in the overlay for 52.x, well 60.x is now being marked stable I am closing this wontfix, we will not backport any additional changes other then compiler fixes when needed.