Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698450 - mail-client/thunderbird-68.2.0 : Use MOZ_BUILDID instead of MOZ_BUILD_DATE
Summary: mail-client/thunderbird-68.2.0 : Use MOZ_BUILDID instead of MOZ_BUILD_DATE
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: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-24 12:10 UTC by Harald Judt
Modified: 2019-12-19 19:53 UTC (History)
0 users

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


Attachments
thunderbird-build-id.patch (thunderbird-build-id.patch,818 bytes, patch)
2019-10-24 12:11 UTC, Harald Judt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Judt 2019-10-24 12:10:58 UTC
The current build configuration uses a timestamp as build id. This is a problem if you move your profile between devices, because thunderbird will not let you open a profile with the old version when it has been openend with a newer version of thunderbird (even if it is the same version just another build).

This information is saved in the user profile file .thunderbird/<profile>.default/compatibility.ini.

One solution would be to use a MOZ_BUILDID specified by the environment (e.g. "gentoo"?).

See this link here: https://bugzilla.mozilla.org/show_bug.cgi?id=1553554

There is also a patch available that enables this, I will attach it to this bug. One needs to specify MOZ_BUILDID though.


Reproducible: Always

Steps to Reproduce:
1. Open profile in thunderbird that has been compiled at a later date, see it "upgraded".
2. Share profile between machines (e.g. via rsync).
3. Open profile in thunderbird that has been compiled at an earlier date.

Actual Results:  
Thunderbird refuses to open the profile.

Expected Results:  
Thunderbird opens the profile.
Comment 1 Harald Judt 2019-10-24 12:11:27 UTC
Created attachment 593764 [details, diff]
thunderbird-build-id.patch
Comment 2 Harald Judt 2019-10-24 12:11:52 UTC
I believe this was no problem before thunderbird-68.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-24 12:34:58 UTC
I agree that using pure timestamp is a bad indicator. I.e. this would prevent usage of the same profile on two systems which were built from the same Gentoo repository version.

However, we need to ensure to include $PVR value because it might be possible that we rev bump because we added a patch which makes an incompatible profile change and the check in place should prevent exactly that.
Comment 4 Harald Judt 2019-12-19 08:43:19 UTC
*Bump*

At the moment, I am using the patch and set e.g. MOZ_BUILDID="20191201000000" manually, so far it works fine.

However, it would be great to have this patch or maybe something better in portage.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-19 19:53:51 UTC
I am closing this as WONTFIX:

It's working as intended, see my comment #3.

In the meanwhile, upstream introduced "--allow-downgrade" which should already be available in TB 68.x. So if you don't care about profile protection, update your shortcuts to set this option which will address your use case.