Closed
Bug 1936607
Opened 1 year ago
Closed 1 year ago
`mach cargo` hardcodes m-c crate paths
Categories
(Thunderbird :: Build Config, task)
Thunderbird
Build Config
Tracking
(Not tracked)
RESOLVED
FIXED
136 Branch
People
(Reporter: leftmostcat, Assigned: babolivier)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
mach cargo cannot currently be used when mozbuild is configured for comm, as mach cargo hardcodes a list of crates to use as the roots of analysis (https://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/mach_commands.py#270). These paths are specific to m-c. They are relative to objdir; replacing them with the relative /comm paths to our gkrust and gtest crates results in mach cargo succeeding.
| Reporter | ||
Comment 1•1 year ago
|
||
For reference, the following are the changes I have in my local copy:
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -268,8 +268,8 @@ def cargo(
# XXX duplication with `mach vendor rust`
crates_and_roots = {
- "gkrust": {"directory": "toolkit/library/rust", "library": True},
- "gkrust-gtest": {"directory": "toolkit/library/gtest/rust", "library": True},
+ "gkrust": {"directory": "comm/rust/gkrust", "library": True},
+ "gkrust-gtest": {"directory": "comm/rust/gtest", "library": True},
"geckodriver": {"directory": "testing/geckodriver", "library": False},
}
Obviously this isn't suitable for merging, but provides an idea of what's needed. :)
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → brendan
Status: NEW → ASSIGNED
Updated•1 year ago
|
Attachment #9460156 -
Attachment description: Bug 1936607 - Use comm-central's gkrust in Cargo commands when building Thunderbird. → Bug 1936607 - Use comm-central's gkrust in Cargo commands when building Thunderbird. r=#firefox-build-system-reviewers
Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/integration/autoland/rev/ff4d838b3761
Use comm-central's gkrust in Cargo commands when building Thunderbird. r=firefox-build-system-reviewers,glandium
Comment 4•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•