Update RNP to snapshot from 2020-07-07
Categories
(MailNews Core :: Security: OpenPGP, defect)
Tracking
(thunderbird_esr78 fixed, thunderbird78 fixed, thunderbird79 fixed)
People
(Reporter: KaiE, Assigned: rjl)
Details
Attachments
(2 files)
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Review |
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Review |
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.
Reporter | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Reporter | ||
Comment 2•4 years ago
|
||
Depends on D82509
Reporter | ||
Comment 3•4 years ago
|
||
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.
Reporter | ||
Comment 4•4 years ago
|
||
Rob, if you think these should be fixed differently, could you please help?
Reporter | ||
Comment 5•4 years ago
|
||
There have been additional interesting RNP commits, that I'd like to pick up. Maybe let's another few days.
Updated•4 years ago
|
Updated•4 years ago
|
Reporter | ||
Comment 6•4 years ago
|
||
My manual fixes were insufficient to fix building on MacOS:
Reporter | ||
Comment 7•4 years ago
|
||
I've updated the snapshot to 07-07. Let's try to get this fixed and landed.
Assignee | ||
Comment 8•4 years ago
|
||
(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
Reporter | ||
Comment 9•4 years ago
|
||
(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?
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 10•4 years ago
|
||
When using a native build environment on macOS the file rnp_export.h has identical contents as on Linux.
Reporter | ||
Comment 11•4 years ago
|
||
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.
Reporter | ||
Comment 12•4 years ago
|
||
removing the non-exported symbol rnp_file_exists from rnp.symbols fixes it.
Comment 13•4 years ago
|
||
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
Assignee | ||
Updated•4 years ago
|
Reporter | ||
Comment 14•4 years ago
|
||
Comment on attachment 9161840 [details]
Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl
Required for OpenPGP correctness and features
Reporter | ||
Comment 15•4 years ago
|
||
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
Comment 16•4 years ago
|
||
Comment on attachment 9161840 [details]
Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl
Approved for 78.0
[Triage Comment]
Comment 17•4 years ago
|
||
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
Reporter | ||
Comment 18•4 years ago
|
||
https://hg.mozilla.org/releases/comm-esr78/rev/2f7557e72662d8e601824ea64028baf5fa550e79
https://hg.mozilla.org/releases/comm-esr78/rev/d29c65bd5b5ee10e8675edebf39d9153dd47c3ad
Reporter | ||
Comment 19•4 years ago
|
||
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
Reporter | ||
Comment 20•4 years ago
|
||
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
Updated•4 years ago
|
Comment 21•4 years ago
|
||
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
Comment 22•4 years ago
|
||
Comment on attachment 9161840 [details]
Bug 1651031 - Update RNP to snapshot from 2020-07-07. r=rjl
Approved for beta
Approved for esr78
Reporter | ||
Comment 23•4 years ago
|
||
https://hg.mozilla.org/releases/comm-beta/rev/eb9b4b675b7caa7f599a1d7adb479ab6c8251262
https://hg.mozilla.org/releases/comm-beta/rev/eea1d9ce254c0e1e150a5f52faf7a2b5bbdc4a69
Description
•