Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564586 - mail-client/thunderbird fails to build with sys-libs/musl
Summary: mail-client/thunderbird fails to build with sys-libs/musl
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2015-10-31 19:31 UTC by tt_1
Modified: 2017-07-17 01:12 UTC (History)
2 users (show)

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


Attachments
split patch for the overlay (thunderbird-overlay.patch,119.49 KB, patch)
2015-10-31 19:31 UTC, tt_1
Details | Diff
checksum fails (checksum.patch,2.55 KB, patch)
2015-10-31 21:30 UTC, tt_1
Details | Diff
bump to 38.5.0 (thunderbird.patch,73.84 KB, patch)
2015-12-28 09:10 UTC, tt_1
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2015-10-31 19:31:02 UTC
Created attachment 415830 [details, diff]
split patch for the overlay

tested with USE="minimal jemalloc3 dbus" , for USE="crypt" one will have to use at least gnupg 2.1.8, as pth does not compile with musl. Instead, gnupg uses npth from 2.1.8 on, so I changed that in the ebuild accordingly. 

anyway, please review and test.
Comment 1 Anthony Basile gentoo-dev 2015-10-31 20:14:30 UTC
It'll be on the overlay in a minute.  Let's work toward getting the fixes upstream.
Comment 2 Anthony Basile gentoo-dev 2015-10-31 20:20:38 UTC
(In reply to tt_1 from comment #0)
> Created attachment 415830 [details, diff] [details, diff]
> split patch for the overlay
> 

A recommendation about producing patches with git:

1) add the ebuild and accompanying files to the directory then do `git add .`

2) make sure everything you want was added with `git status`

3) commit using `git commit -m "mail-client/thunderbird: initial commit, bug #564586."`

4) produce a patch using `git format-patch HEAD^`

Notice this produces a much nicer patch with a commit message, attribution etc.  It can also be emailed using `git send-email` so its very nice.
Comment 3 tt_1 2015-10-31 21:30:42 UTC
Created attachment 415832 [details, diff]
checksum fails

don't know why the checksum is failing from the overlay?
Comment 4 Anthony Basile gentoo-dev 2015-10-31 21:40:19 UTC
(In reply to tt_1 from comment #3)
> Created attachment 415832 [details, diff] [details, diff]
> checksum fails
> 
> don't know why the checksum is failing from the overlay?

i fixed it.  please check.
Comment 5 tt_1 2015-11-02 05:45:25 UTC
Most of the patches are taken from upstream anyway, so the problems are known and mostly fixed. I backported them from the main branch, as thunderbird uses firefox-esr. See the comments in the epatch section of the ebuild I made. 

However, the fix-netwerk.patch I took from Alpine lacks a proper description, so I have no idea wether upstream knows about it or not. 

Also I wasn't sure about what to do with the fix-bug-1130175.patch , as there are major changes in mozilla/media/mtransport/third_party/nICEr/src/stun/addrs.c , and I couldn't understand the logic of it. So can please someone review this patch and find out, if it is still needed for thunderbird?
Comment 6 tt_1 2015-12-28 09:10:50 UTC
Created attachment 420976 [details, diff]
bump to 38.5.0

The patchset is now included in the in tree version, so I took the ebuild and edited it in terms of gnupg which if version <2.1 depends on dev-libs/pth and which doesn't compile on musl. Therefore, I made depend thunderbird on >=gnupg-2.1 because here it depends on dev-libs/npth which does compile fine on musl.
Comment 7 Jory A. Pratt gentoo-dev 2015-12-29 00:07:10 UTC
(In reply to tt_1 from comment #6)
> Created attachment 420976 [details, diff] [details, diff]
> bump to 38.5.0
> 
> The patchset is now included in the in tree version, so I took the ebuild
> and edited it in terms of gnupg which if version <2.1 depends on
> dev-libs/pth and which doesn't compile on musl. Therefore, I made depend
> thunderbird on >=gnupg-2.1 because here it depends on dev-libs/npth which
> does compile fine on musl.

please attach a git patch, there is no revision bump needed just need a clean look at the changes you are requesting without having to read an entire ebuild. You can use anongit for this as a normal user.
Comment 8 tt_1 2016-01-01 10:54:12 UTC
Is it possible to mask dev-libs/pth and all related version of app-crypt/gnupg which depends on it in the package.mask of the musl profile? Would be the easiest way to deal with this, I guess.
Comment 9 Pacho Ramos gentoo-dev 2016-03-14 16:13:40 UTC
*** Bug 577280 has been marked as a duplicate of this bug. ***