Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908993 - mail-client/thunderbird: specify versioned clang compiler name for compatibility with distcc
Summary: mail-client/thunderbird: specify versioned clang compiler name for compatibil...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
Keywords: PATCH
Depends on:
Reported: 2023-06-22 10:01 UTC by Maciej S. Szmigiero
Modified: 2023-07-12 15:33 UTC (History)
1 user (show)

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

fix (tb.patch,781 bytes, patch)
2023-06-22 10:01 UTC, Maciej S. Szmigiero
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2023-06-22 10:01:02 UTC
This is the equivalent of #870085 and #908992 but for mail-client/thunderbird.

Clang version override done by the llvm.eclass has no effect on distcc build servers since it overrides the used LLVM version by prepending the path to the chosen version to PATH.

This PATH editing happens only on the machine actually running emerge.
On the other hand, distcc build servers still run such distributed builds by using what their preferred clang version is (usually the latest one).

This breaks in case the version chosen by the llvm.eclass on the machine running emerge isn't the one preferred on the distcc build servers - especially in the LTO case since linking object files generated by different clang versions isn't supported.

The fix for this is simple - instead of overriding CC to unversioned "${CHOST}-clang" in the ebuild override it to "${CHOST}-clang-${version_clang}" instead. Same with CXX.

I can confirm that with the above change I can successfully build the package in such distcc environment, even with LTO on.
Comment 1 Maciej S. Szmigiero 2023-06-22 10:01:23 UTC
Created attachment 864405 [details, diff]
Comment 2 FieldySnuts 2023-07-11 20:50:26 UTC
While I have not tried your specific solution (honestly, I don't know how), I did simply turn off usage of distcc and mail-client/thunderbird-102.13.0 now compiles and installs just fine.

Thanks for your work! Let me know if you would like more information about this system.

Installed versions:  102.13.0(XX:43:48 PM 07/11/2023)(clang eme-free hardened hwaccel lto system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-librnp system-libvpx system-webp -dbus -debug -jack -libproxy -openh264 -pgo -pulseaudio -selinux -sndio -system-png -system-python-libs -wayland -wifi CPU_FLAGS_ARM="-neon" L10N="-af -ar -ast -be -bg -br -ca -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -es-AR -es-ES -es-MX -et -eu -fi -fr -fy -ga -gd -gl -he -hr -hsb -hu -id -is -it -ja -ka -kab -kk -ko -lt -lv -ms -nb -nl -nn -pa -pl -pt-BR -pt-PT -rm -ro -ru -sk -sl -sq -sr -sv -th -tr -uk -uz -vi -zh-CN -zh-TW")
Comment 3 Larry the Git Cow gentoo-dev 2023-07-12 15:33:43 UTC
The bug has been referenced in the following commit(s):

commit a68115bb5494d9f85c23928a1547be25c7f3d0f4
Author:     Joonas Niilola <>
AuthorDate: 2023-07-12 15:30:03 +0000
Commit:     Joonas Niilola <>
CommitDate: 2023-07-12 15:33:39 +0000

    mail-client/thunderbird: add 115.0
    Signed-off-by: Joonas Niilola <>

 mail-client/thunderbird/Manifest                 |   66 ++
 mail-client/thunderbird/thunderbird-115.0.ebuild | 1319 ++++++++++++++++++++++
 2 files changed, 1385 insertions(+)