Closed Bug 1651031 Opened 4 years ago Closed 4 years ago

Update RNP to snapshot from 2020-07-07

Categories

(MailNews Core :: Security: OpenPGP, defect)

defect

Tracking

(thunderbird_esr78 fixed, thunderbird78 fixed, thunderbird79 fixed)

RESOLVED FIXED
Thunderbird 80.0
Tracking Status
thunderbird_esr78 --- fixed
thunderbird78 --- fixed
thunderbird79 --- fixed

People

(Reporter: KaiE, Assigned: rjl)

Details

Attachments

(2 files)

We need to pick up more RNP fixes.
The new snapshot from 2020-07-06 avoids rejection of some unusual keys.
Also, it allows us to decode minimal OpenPGP messages (encoded, not encrypted) after obtaining results from external GnuPG decryption.

Assignee: nobody → kaie
Status: NEW → ASSIGNED

Explanation of the manual fixes:

File list.cpp and list.h were moved to a different directory.
Include additional was necessary to find list.h

The upstream RNP build process creates a new file rnp_report.h
I don't know how to automatically create that as part of our build process.
I copied it from an upstream build tree.

rnp_file_exists was a new unresolved external, so I've added it to the list of built files

Had to adjust include statements for rnp_export.h to allow loading them from the local source tree.

Rob, if you think these should be fixed differently, could you please help?

Assignee: kaie → rob

There have been additional interesting RNP commits, that I'd like to pick up. Maybe let's another few days.

Attachment #9161840 - Attachment description: Bug 1651031 - Update RNP to snapshot from 2020-07-06. r=rjl → Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl
Attachment #9161841 - Attachment description: Bug 1651031 - Manual fixes to allow building of RNP snapshot from 2020-07-06. r=rjl → Bug 1651031 - Manual fixes to allow building of RNP snapshot from 2020-07-07. r=rjl

I've updated the snapshot to 07-07. Let's try to get this fixed and landed.

(In reply to Kai Engert (:KaiE:) from comment #3)

The upstream RNP build process creates a new file rnp_report.h
I don't know how to automatically create that as part of our build process.
I copied it from an upstream build tree.

You mean rnp_export.h? What OS was the build tree from? (Linux?) I suspect that a Windows build tree would be different since the default there is to not export symbols (with MSVC style compilers anyway). But since we're doing symbol export via rnp.symbols it probably won't actually matter. A followup bug may not be a bad idea though.

For the record, this is the CMake code that generates that file:

generate_export_header(librnp
  BASE_NAME rnp/rnp
  EXPORT_MACRO_NAME RNP_API
  STATIC_DEFINE RNP_STATIC
)

https://cmake.org/cmake/help/v3.0/module/GenerateExportHeader.html

(In reply to Rob Lemley [:rjl] from comment #8)

(In reply to Kai Engert (:KaiE:) from comment #3)

The upstream RNP build process creates a new file rnp_report.h
I don't know how to automatically create that as part of our build process.
I copied it from an upstream build tree.

You mean rnp_export.h?

yes, sorry

What OS was the build tree from? (Linux?)

yes

Do you understand why macOS doesn't build, and complains about unresolved rnp_file_exists, despite my fixes?
Maybe it has to do with rnp_export.h, too?

Summary: Update RNP to snapshot from 2020-07-06 → Update RNP to snapshot from 2020-07-07
Flags: needinfo?(rob)

When using a native build environment on macOS the file rnp_export.h has identical contents as on Linux.

I've started a local build of comm-esr78 on my (slow) Mac, in case it isn't obvious how to fix the unresolved external, maybe I can help analyzing with the local build.

removing the non-exported symbol rnp_file_exists from rnp.symbols fixes it.

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/7177071c96c7
Update RNP to snapshot from 2020-07-07. r=rjl
https://hg.mozilla.org/comm-central/rev/178be1973377
Manual fixes to allow building of RNP snapshot from 2020-07-07. r=rjl

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Flags: needinfo?(rob)

Comment on attachment 9161840 [details]
Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl

Required for OpenPGP correctness and features

Attachment #9161840 - Flags: approval-comm-esr78?

Comment on attachment 9161841 [details]
Bug 1651031 - Manual fixes to allow building of RNP snapshot from 2020-07-07. r=rjl

Required for OpenPGP correctness and features

Attachment #9161841 - Flags: approval-comm-esr78?

Comment on attachment 9161840 [details]
Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl

Approved for 78.0

[Triage Comment]

Attachment #9161840 - Flags: approval-comm-esr78? → approval-comm-esr78+

Comment on attachment 9161841 [details]
Bug 1651031 - Manual fixes to allow building of RNP snapshot from 2020-07-07. r=rjl

Approved for 78.0

Attachment #9161841 - Flags: approval-comm-esr78? → approval-comm-esr78+

Comment on attachment 9161840 [details]
Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl

OpenPGP - patch already on comm-esr78 - should uplift for consistency

Attachment #9161840 - Flags: approval-comm-beta?

Comment on attachment 9161841 [details]
Bug 1651031 - Manual fixes to allow building of RNP snapshot from 2020-07-07. r=rjl

OpenPGP - patch already on comm-esr78 - should uplift for consistency

Attachment #9161841 - Flags: approval-comm-beta?
Target Milestone: --- → Thunderbird 80.0

Comment on attachment 9161841 [details]
Bug 1651031 - Manual fixes to allow building of RNP snapshot from 2020-07-07. r=rjl

Approved for beta
Approved for esr78

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

Comment on attachment 9161840 [details]
Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl

Approved for beta
Approved for esr78

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

Attachment

General

Created:
Updated:
Size: