Skip to content

Deterministic file adding order in compile_zstd()#162

Merged
gyscos merged 2 commits intogyscos:masterfrom
syncom:syncom/fix-file-insertion-order-compile_zstd
Aug 31, 2022
Merged

Deterministic file adding order in compile_zstd()#162
gyscos merged 2 commits intogyscos:masterfrom
syncom:syncom/fix-file-insertion-order-compile_zstd

Conversation

@syncom
Copy link
Copy Markdown
Contributor

@syncom syncom commented Aug 31, 2022

This is to make the build more deterministic.

Note that fs::read_dir()'s behavior is platform-specific. We sort the
returned result of read_dir to make the file addition order
deterministic.

This is to make the build more deterministic.

Note that `fs::read_dir()`'s behavior is platform-specific. We sort the
returned result of `read_dir` to make the file addition order
deterministic.
Co-authored-by: Alexandre Bury <alexandre.bury@gmail.com>
@gyscos gyscos merged commit 6fe67d6 into gyscos:master Aug 31, 2022
@syncom syncom deleted the syncom/fix-file-insertion-order-compile_zstd branch August 31, 2022 16:11
syncom added a commit to syncom/rust-cross-build-nix that referenced this pull request Sep 12, 2022
Use a branch that has the reproducibility improvement gyscos/zstd-rs#162
syncom added a commit to syncom/rust-cross-build-nix that referenced this pull request Sep 12, 2022
* Use tstd crate

This is to reproduce an issue related to a recent tstd-rs change for
aarch64 build.

The problematic change in tstd is
gyscos/zstd-rs@f0d8a12.

* Repro tstd-rs linking issue

In `Cargo.tomol`

- Uncomment line for zstd rev="56c8b52b6d448e376e746fc062077f68febc03a3": builds successfully
- Uncomment line for zstd rev="f0d8a12f0f520095cf26a0dac35b8d0939277add": causes build failure

Build commands (with `cross-rs`)

     cross build --target=x86_64-unknown-linux-musl
     cross build --target=aarch64-unknown-linux-musl

* Use zstd-rs fork that contains r10e patch for demo

Use a branch that has the reproducibility improvement gyscos/zstd-rs#162
@bmwiedemann
Copy link
Copy Markdown

Hi, could you please make a release with this fix, so that it is easier to include in our openSUSE vendor tarballs?

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.

3 participants