Skip to content

py.mk: Fix race condition building .mo files #2391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

jepler
Copy link

@jepler jepler commented Dec 16, 2019

By having an order-only dependency on the directory itself, the directory
is sure to be created before the rule to create a .mo file is.

This fixes a low-freqency error on github actions such as

msgfmt: error while opening "build/genhdr/en_US.mo" for writing: No such file or directory

By having an order-only dependency on the directory itself, the directory
is sure to be created before the rule to create a .mo file is.

This fixes a low-freqency error on github actions such as

> msgfmt: error while opening "build/genhdr/en_US.mo" for writing: No such file or directory
@jepler
Copy link
Author

jepler commented Dec 16, 2019

This can be reproduced 100% (rather than as a rare race condition) by running in ports/unix: rm -rf build; make build/genhdr/en_US.mo

@jepler jepler requested a review from tannewt December 16, 2019 21:37
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK by me!

@dhalbert dhalbert merged commit 2cb0473 into adafruit:master Dec 17, 2019
@jepler jepler deleted the genhdr-build-error branch November 3, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants