Closed Bug 1700240 Opened 3 years ago Closed 3 years ago

libotr in official builds should be consistently named

Categories

(Thunderbird :: Build Config, task)

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
89 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: rjl, Assigned: rjl)

References

Details

Attachments

(4 files)

To make it clear which arch it's for when looking at the builds.

Makes it obvious what architecture it's for and is more consistent with the
macosx64 build jobs.

Adding to this bug:

  • statically link to libgcrypt and libgpg-error on Windows
  • final shared library should not have a versioned filename like the rest of the shared libraries in the application directory (eg. libotr.so, otr.dll, libotr.dylib)
Summary: toolchain-macosx64-libotr should be named toolchain-macosx64-x64-libotr → libotr in official builds should be consistently named

It's quite cumbersome to have the filename be versioned (eg. libotr.so.5) as
the way it's done is inconsistent between the supported platforms. Libtool
insists on using the full names, so bypass it with a link command that
sets the SONAME correctly as well.

Additionally, statically link the dependencies for Windows builds like the
other platforms.

Windows is of course the outlier, there is no "lib" prefix usually on shared
libraries, but that is how OTRLib.jsm wants the file to be named so it's
artificially added where needed.

Depends on D109488

See Also: → CVE-2021-29949

I think this should be trunk only, not 78.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/5d48762394c1
Rename toolchain-macosx64-libotr to toolchain-macosx64-x64-libotr. r=justdave
https://hg.mozilla.org/comm-central/rev/46164b8b5b3c
Compile libotr with generic SONAME and statically linked to deps on Windows. r=justdave
https://hg.mozilla.org/comm-central/rev/2336d63760bf
Update packaging for correct name of libotr shared library. r=justdave
https://hg.mozilla.org/comm-central/rev/f332f703490e
Look for unversioned libotr library in Thunderbird application directory. r=kaie

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Regressions: 1724914
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: