Closed Bug 1575134 Opened 5 years ago Closed 5 years ago

Build failure on BSDs due to bug #1566778

Categories

(Testing :: Mozbase Rust, defect, P1)

Version 3
Unspecified
OpenBSD
defect

Tracking

(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox68 unaffected, firefox69 unaffected, firefox70 fixed)

RESOLVED FIXED
mozilla70
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 ?

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?

Blocks: 1520585
Flags: needinfo?(ato)

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.

Flags: needinfo?(ato)
Priority: -- → P5

On second thought, this is a problem for any platform that isn’t
Windows, macOS, or Linux.

Assignee: nobody → ato
Status: NEW → ASSIGNED
Priority: P5 → P1
Summary: Build failure on OpenBSD due to bug #1566778 → Build failure on BSDs due to bug #1566778

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

Thanks, once this gets merged to m-c my buildbot will test it.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: