Discussion:
[ipxe-devel] [ipxe/ipxe] [build] Do not use random build_ids (#82)
Bernhard M. Wiedemann
2018-10-24 07:46:54 UTC
Permalink
Do not use random build_ids
to allow for reproducible builds of .rom files
and xen hvmloader (which embeds those)

See https://reproducible-builds.org/ for why this matters.

Signed-off-by: Bernhard M. Wiedemann <***@suse.com>
You can view, comment on, or merge this pull request online at:

https://github.com/ipxe/ipxe/pull/82

-- Commit Summary --

* [build] Do not use random build_ids

-- File Changes --

M src/Makefile.housekeeping (4)

-- Patch Links --

https://github.com/ipxe/ipxe/pull/82.patch
https://github.com/ipxe/ipxe/pull/82.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/82
Christian Nilsson
2018-10-24 12:08:38 UTC
Permalink
Commit that introduced this feature: https://git.ipxe.org/ipxe.git/commitdiff/58f6e553625c90d928ddd54b8f31634a5b26f05e

Each ROM have a need for identifier per build
This is described by @mcb30 at http://lists.ipxe.org/pipermail/ipxe-devel/2015-February/003978.html as well - I'm reading as using checksum here is not acceptable.

Also the comment above the rand line says this:
#... Must be unique for each $(BIN)/%.tmp,
# even within the same build run.
if checksum is used that comment needs update as well?

A patch that makes this stable for non roms would probably be acceptable, but for roms it won't be unless the reason for the buildids existence is solved some other way instead.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/82#issuecomment-432629171
Bernhard M. Wiedemann
2018-10-24 14:54:28 UTC
Permalink
The idea of the patch was that hashing all relevant inputs still gives build-ids that are different when they should.
I was trying to get xen to build reproducibly, but just noticed that it does not even run this code-path for its etherboot. So I cannot test this.
Feel free to close.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/82#issuecomment-432691502
Loading...