Add `./mach app-services setup`
Categories
(Firefox Build System :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: bdk, Assigned: bdk)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxsync-])
Attachments
(1 file)
Once https://bugzilla.mozilla.org/show_bug.cgi?id=1980203 is merged, then we should be able to run cargo test -p to test our app-services crates. However, for many of our crates, we still need to figure out how to link to NSS.
Let's create a mach command that sets up the app-services environment, similar to verify-desktop-environment.sh. It should:
- Run
./mach buildto build NSS - Set the
NSS_DIRvariable to point to the the built NSS in the object directory
I don't think it needs to do anything else at this point, but we may want to extend it to do more in the future.
Implementing this is an alternative to https://bugzilla.mozilla.org/show_bug.cgi?id=1958000, if we can make Cargo do the linking then we don't need to do anything special with mach rusttests.
Updated•9 months ago
|
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 1•9 months ago
|
||
Techincally we could land this and it would work, but it doesn't really
make sense until app-services is in the moz-central tree.
Updated•8 months ago
|
Updated•8 months ago
|
Updated•7 months ago
|
| Assignee | ||
Updated•7 months ago
|
Comment 2•3 months ago
|
||
Something to consider is using the third_party/python/gyp in tree for predictability, since at least firefox is building nss using that version.
| Assignee | ||
Comment 3•3 months ago
|
||
Would the idea to build NSS ourselves? I avoided that because I wanted to minimize the amount of code we needed to maintain, but maybe we should be building NSS. That would give us some more control.
Comment 4•3 months ago
|
||
oh sorry, I misread the initial context. I think using the desktop nss is reasonable, but my understanding is that it doesn't build the static nss parts (which is why I was looking at extending the build so it did).
| Assignee | ||
Comment 5•3 months ago
|
||
Yes that's correct and not using the static NSS does have some drawbacks. For example the pkix parts aren't present which makes the rc_crypto tests fail. I think this the current code is good enough for now, but I have a fast-follow issue for improving this: https://bugzilla.mozilla.org/show_bug.cgi?id=1989633
Description
•