Skip to content
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

python3 library build is not deterministic #107951

Closed
raboof opened this issue Dec 30, 2020 · 2 comments · Fixed by #107965
Closed

python3 library build is not deterministic #107951

raboof opened this issue Dec 30, 2020 · 2 comments · Fixed by #107965

Comments

@raboof
Copy link
Member

raboof commented Dec 30, 2020

Describe the bug

When building python3 twice, the result is not always bit-by-bit the same. This makes it harder to audit whether binaries/images have been built correctly. For more information on why this is useful see https://reproducible-builds.org .

To Reproduce

nix-build '<nixpkgs>' -A python3 --check

Additional context

Notably, the ordering of some symbols (​_Py_Mangle, ​PyEval_GetGlobals, several _PyErr ones) is not stable.

Setting enableParallelBuilding to false doesn't help.

@FRidh
Copy link
Member

FRidh commented Dec 30, 2020

I've got it reproducible again. Opening a PR soon. Some people are not going to like it though...

@FRidh
Copy link
Member

FRidh commented Dec 30, 2020

#107965

@prusnak prusnak linked a pull request Dec 30, 2020 that will close this issue
12 tasks
@raboof raboof closed this as completed Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants