Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Deterministic Build for Windows and Mac OS X #21

Open
fpietrosanti opened this issue Jul 15, 2012 · 1 comment
Open

Deterministic Build for Windows and Mac OS X #21

fpietrosanti opened this issue Jul 15, 2012 · 1 comment

Comments

@fpietrosanti
Copy link
Contributor

In order to prevent attacks against software distribution (http://hyper.to/blog/link/attack-scenarios-software-distribution/) it's useful for security reason to introduce Build Determinism (http://www.conifersystems.com/2008/10/17/build-determinism/
) for APAF applications, in particolar for Windows and OSX.

Also Tor Project is looking at Build Determinism https://trac.torproject.org/projects/tor/ticket/3688 .

The Build Determinism is currently not required for Linux/Debian packaging, but focus Windows and Mac OS X users.

It must be analyzed whenever:

  • py2app create deterministic build on OSX
  • py2exe create deterministic build on Windows

In case it does not build deterministic build, it must be analyzed which kind of differences are in binary-diff and how to handle it.

@fpietrosanti
Copy link
Contributor Author

Whenever it would be required to edit Windows PE32 files to "fix" some headers there is a nice python library called pefile http://code.google.com/p/pefile/ .

However it maybe better to patch "py2exe" in order to force it to create deterministic build.

The very same is for py2app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant