Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696172 - www-client/firefox (any version) and www-client/torbrowser (any version) fail to build if using hunspell while using clang with [default-libcxx] USE flag set
Summary: www-client/firefox (any version) and www-client/torbrowser (any version) fail...
Status: RESOLVED DUPLICATE of bug 693698
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: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-04 10:15 UTC by Jocelyn Mayer
Modified: 2019-10-04 15:10 UTC (History)
0 users

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


Attachments
Force same [clang] USE flag state for app-text/hunspell to ensure it uses the same C++ ABI that any package using the mozconfig eclass Signed-off-by: Jocelyn MAYER l_indien@magic.fr (mozconfig-v6.60.eclass.patch,504 bytes, patch)
2019-10-04 10:15 UTC, Jocelyn Mayer
Details | Diff
app-text/hunspell ebuild patch in order to add [clang] USE flag (app-text_hunspell_hunspell-1.6.2-r1.ebuild.patch,1.21 KB, patch)
2019-10-04 10:18 UTC, Jocelyn Mayer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Mayer 2019-10-04 10:15:13 UTC
Created attachment 591786 [details, diff]
Force same [clang] USE flag state for app-text/hunspell to ensure it uses the same C++ ABI that any package using the mozconfig eclass
Signed-off-by: Jocelyn MAYER l_indien@magic.fr

firefox and torbrowser fail to build when using clang with [default-libcxx] USE flag set because of hunspell being compiled with g++, thus not using the same C++ ABI.
This is a long standing bug...

I didn't find a way to check the use of [default-libcxx] USE flag for sys-devel/clang from mozconfig eclass then I did inconditionnaly force use of clang for hunspell when [clang] USE flag is set for www-clent/firefox / www-client/torbrowser. The patch is located in the mozconfig-v6.60.eclass.
This also obviously need the addition of the [clang] USE flag for app-text/hunspell.

My guess is that the ultimate patch would be to compile every package using C++ with clang if any one of them is using clang to ensure the C++ ABI is consistent over the whole system.
Comment 1 Jocelyn Mayer 2019-10-04 10:18:42 UTC
Created attachment 591788 [details, diff]
app-text/hunspell ebuild patch in order to add [clang] USE flag

In order to solve the previously described issue, we need to add the option of compiling app-text/hunspell using clang.
This patch does the trick
Signed-off-by: Jocelyn MAYER l_indien@magic.fr
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-04 15:09:44 UTC

*** This bug has been marked as a duplicate of bug 693698 ***