Build failure on BSDs due to bug #1566778
Categories
(Testing :: Mozbase Rust, defect, P1)
Tracking
(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox68 unaffected, firefox69 unaffected, firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox-esr68 | --- | unaffected |
firefox68 | --- | unaffected |
firefox69 | --- | unaffected |
firefox70 | --- | fixed |
People
(Reporter: gaston, Assigned: ato)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
I dunno what was the intent of bug #1566778, but trying to build m-c on OpenBSD i get this build failure:
52:58.42 error[E0428]: the name `platform` is defined multiple times
52:58.42 --> testing/mozbase/rust/mozrunner/src/runner.rs:462:1
52:58.42 |
52:58.42 301 | pub mod platform {
52:58.42 | ---------------- previous definition of the module `platform` here
52:58.42 ...
52:58.42 462 | pub mod platform {
52:58.42 | ^^^^^^^^^^^^^^^^ `platform` redefined here
52:58.42 |
52:58.42 = note: `platform` must be defined only once in the type namespace of this module
cf http://buildbot.rhaalovely.net/nine/#/builders/1/builds/523/steps/8/logs/stdio
Was this actually tested ?
Comment 1•5 years ago
|
||
We don't have CI to run tests on any platform including OpenBSD, as such this might have slipped through. But we will fix it for the 0.25 release of geckodriver. Thanks for reporting!
Andreas, can you please have a look?
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
The fallback platform
module guard probably needs to be updated
to unix
instead of linux
:
https://searchfox.org/mozilla-central/source/testing/mozbase/rust/mozrunner/src/runner.rs#461
Patches are accepted.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
On second thought, this is a problem for any platform that isn’t
Windows, macOS, or Linux.
Assignee | ||
Comment 4•5 years ago
|
||
With bug 1566778 we started searching the system path on BSDs
similarly to how we had done it on Linux. The patch forgot to
remove the fallback implementation of the platform module, causing
a compile issue on BSDs since they are now covered by the same
implementation as what used to be Linux-specific.
Pushed by atolfsen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/020f6f0f05d0 mozrunner: drop fallback firefox_default_path(); r=webdriver-reviewers,jgraham
Reporter | ||
Comment 6•5 years ago
|
||
Thanks, once this gets merged to m-c my buildbot will test it.
Comment 7•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•2 years ago
|
Description
•