Closed Bug 1673902 Opened 4 years ago Closed 4 years ago

[openpgp.configure] Check for mkdtemp always fails

Categories

(Thunderbird :: Build Config, task)

Tracking

(thunderbird_esr78 fixed, thunderbird83 fixed)

RESOLVED FIXED
84 Branch
Tracking Status
thunderbird_esr78 --- fixed
thunderbird83 --- fixed

People

(Reporter: rjl, Assigned: rjl)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The check in openpgp.configure for mkdtemp never succeeds because the checking function (check_symbol_exists) does not properly handle a list of potential header files.
The function itself is used in the RNP test suite (which is not currently run in CI). On Linux and OpenBSD it's found in stdlib.h, while on macOS it's in unistd.h.

Blocks: 1673990

The header parameter to check_symbol_exists() could be a list of strings or a single
string. The only place where a list is sent is for mkdtemp which could be in
stdlib.h or unistd.h depending on the operating system.
Currently, the check for mkdtemp always fails as the generated C code is invalid.

Target Milestone: --- → 84 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/1ba9f25c24b7
Check multiple header files for symbols in openpgp.configure. r=justdave

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9184877 [details]
Bug 1673902 - Check multiple header files for symbols in openpgp.configure. r?justdave

[Approval Request Comment]
The effect of this change is that the compiler will use mkdtemp when compiling librnp. It's a "safer" variant of the same function and should work as expected on platforms that support it. (Windows being the outlier that does not support mkdtemp).

Attachment #9184877 - Flags: approval-comm-esr78?
Attachment #9184877 - Flags: approval-comm-beta?

Comment on attachment 9184877 [details]
Bug 1673902 - Check multiple header files for symbols in openpgp.configure. r?justdave

[Triage Comment]
Approved for beta

Attachment #9184877 - Flags: approval-comm-beta? → approval-comm-beta+

This patch is a requirement for the RNP October 2020 update (bug 1675516).
That RNP update adds mkstemp as a required function and is detected in one of two header files, the same as mkdtemp.

Blocks: 1675516

Comment on attachment 9184877 [details]
Bug 1673902 - Check multiple header files for symbols in openpgp.configure. r?justdave

[Triage Comment]
Approved for esr78

Attachment #9184877 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: