Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667112 - >=dev-lang/spidermonkey-45.0.2 mozjemalloc requires glibc headers
Summary: >=dev-lang/spidermonkey-45.0.2 mozjemalloc requires glibc headers
Status: RESOLVED WONTFIX
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: 2018-09-26 11:22 UTC by Sora Lee
Modified: 2019-07-25 16:38 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.