Skip to content

Repro builds: Deterministically iterate through docker/ folder - #573

Merged
bors[bot] merged 1 commit into
cross-rs:masterfrom
kpcyrd:repro-read-dir
Jul 25, 2021
Merged

bors[bot] merged 1 commit into
cross-rs:masterfrom
kpcyrd:repro-read-dir

Conversation

@kpcyrd

@kpcyrd kpcyrd commented Jul 22, 2021 •

Copy link
Copy Markdown
Contributor

One of the Arch Linux rebuilders has trouble reproducing the cross binary we distribute in Arch Linux. We assume this is because it runs a different filesystem than the official build server, causing fs::read_dir to yield the directory content in a different order.

This patch explicitly sorts the directory content of docker/ in build.rs before constructing a list that gets embedded in the binary.

Full writeup can be found over here: https://twitter.com/sn0int/status/1418254640324521997

@kpcyrd
kpcyrd requested review from a team and Dylan-DPC-zz as code owners July 22, 2021 16:15
@adamgreig

Copy link
Copy Markdown
Member

bors try

bors Bot added a commit that referenced this pull request Jul 25, 2021
@bors

bors Bot commented Jul 25, 2021

Copy link
Copy Markdown
Contributor

try

Build succeeded:

@adamgreig adamgreig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you, and nice write-up too!

bors merge

@bors

bors Bot commented Jul 25, 2021

Copy link
Copy Markdown
Contributor

Build succeeded:

@bors
bors Bot merged commit dc2e724 into cross-rs:master Jul 25, 2021
@kpcyrd

kpcyrd commented Jul 25, 2021

Copy link
Copy Markdown
Contributor Author

Thanks! Are there any plans for a new release? I've noticed there hasn't been one since about a year. :)

@kpcyrd
kpcyrd deleted the repro-read-dir branch July 25, 2021 19:22
@adamgreig

Copy link
Copy Markdown
Member

Yea, we'd like a new release (#542) but currently have a couple last blockers (and should ideally get a few more pending PRs merged...). The main issue is we're desperately low on maintainer time, since most of the rust-embedded team nominally responsible don't use cross or know much about it. I've just posted #574 with details of that.

@Emilgardis Emilgardis added this to the v0.2.2 milestone Jun 15, 2022
@Alexhuszagh Alexhuszagh added meta issues/PRs related to the maintenance of the crate. no changelog A valid PR without changelog (no-changelog) labels Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta issues/PRs related to the maintenance of the crate. no changelog A valid PR without changelog (no-changelog)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants