Skip to content

reproducible builds problem from NUM_JOBS #80

Closed
@bmwiedemann

Description

@bmwiedemann

While working on reproducible builds for openSUSE, I found that
our yazi 25.2.11 package varied because the number of cores in the build-VM got recorded into the build result:

/usr/src/debug/yazi-25.2.11/target/release/build/rav1e-ded541fb470593d5/out/built.rs    2025-02-12 10:23:43.000000000 +0000
@@ -57,7 +57,7 @@
 pub static OPT_LEVEL: &str = "3";
 #[doc=r#"The parallelism that was specified during compilation."#]
 #[allow(dead_code)]
-pub static NUM_JOBS: u32 = 4;
+pub static NUM_JOBS: u32 = 1;

What would be the best way to avoid that and is it possible to change behaviour so that it is reproducible if the $SOURCE_DATE_EPOCH env var is set?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions