Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so that anyone can verify that a given binary derived from the source it was said to be derived. There is more information about reproducible builds on the Debian wiki and on https://reproducible-builds.org. These pages explain in more depth why this is useful, what common issues exist and which workarounds and solutions are known.
Reproducible NetBSD is an effort to apply this to NetBSD. Thus each NetBSD target is build twice, with a few variations added and then the resulting files from the two builds are compared using diffoscope. Please note that the toolchain is not varied at all as the rebuild happens on exactly the same system. More variations are expected to be seen in the wild.
There is a weekly run jenkins job to test the master
branch of netbsd.git. The jenkins job is running reproducible_netbsd.sh in a Debian environment and this script is solely responsible for creating this page. Feel invited to join #reproducible-builds
(on irc.oftc.net) to request job runs whenever sensible. Patches and other feedback are very much appreciated - if you want to help, please start by looking at the ToDo list for NetBSD, you might find something easy to contribute.
Thanks to IONOS for donating the virtual machines this is running on!
33 (100.0%) out of 33 built NetBSD files were reproducible in our test setup ! These tests were last run on 2024-11-20 for rev e4bd382db with -P (as of @1732080286) and were compared using diffoscope 283.
variation | first build | second build |
---|---|---|
hostname | osuosl1-amd64 or osuosl2-amd64 | the other one |
domainname | is not yet varied between rebuilds of NetBSD. | |
env CAPTURE_ENVIRONMENT | not set | CAPTURE_ENVIRONMENT="I capture the environment" |
env TZ | TZ="/usr/share/zoneinfo/Etc/GMT+12" | TZ="/usr/share/zoneinfo/Etc/GMT-14" |
env LANG | LANG="en_GB.UTF-8" | LANG="et_EE.UTF-8" |
env LC_ALL | not set | LC_ALL="et_EE.UTF-8" |
env PATH | PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:" | PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" |
env USER | is not yet varied between rebuilds of NetBSD. | |
uid | is not yet varied between rebuilds of NetBSD. | |
gid | is not yet varied between rebuilds of NetBSD. | |
UTS namespace | is not yet varied between rebuilds of NetBSD. | |
Source dir | $TEMPDIR/b1-$arch-$mach/ | $TEMPDIR/b2-$arch-$mach/ |
Release dir | $TEMPDIR/b1-$arch-$mach/_release_/ | $TEMPDIR/b2-$arch-$mach/_release_/ |
kernel version, modified using /usr/bin/linux64 --uname-2.6 | Linux 6.11.5+bpo-amd64 | Linux 2.6.71+bpo-amd64 |
umask | 0022 | 0002 |
CPU type | AMD Opteron(tm) Processor 4284 | same for both builds |
/bin/sh | is not yet varied between rebuilds of NetBSD. | |
year, month, date | today (2024-11-20) | same for both builds (currently, work in progress) |
hour, minute | hour and minute will probably vary between two builds... | the future system actually runs 398 days, 6 hours and 23 minutes ahead... |
Filesystem | tmpfs | same for both builds (currently, this could be varied using disorderfs) |
everything else... | is likely the same. There will be more variations in the wild. |
Reproducible artifacts for sparc64-sparc64 |
---|
images/NetBSD-10.99.12-sparc64-dvd.iso (c1d322f9621bcc2f3801351f6da9c5ccd95f4c2d72f2735b2b63510e0814bd09, 643MiB) is reproducible. |
images/NetBSD-10.99.12-sparc64-live.img.gz (8bfc249fd06b56a89c49421391400113168c8f14a091c9c7b03afd8192834c81, 327MiB) is reproducible. |
images/NetBSD-10.99.12-sparc64.iso (25e9439675e68e5e4b5340838945f7e8cd66c71715da7cb8b6b913b20fcdd9eb, 600MiB) is reproducible. |
sparc64/INSTALL.html (f1463c0f1ad4edafbe19b320166745cbed89de27c54632ceefc2550b7876d898, 127KiB) is reproducible. |
sparc64/INSTALL.more (b0ab71cc796769c3b353922a1946214923c48eaeae7d56402539cab8c6945d0a, 122KiB) is reproducible. |
sparc64/INSTALL.ps (b34c33f9ab56e821b63e873b1973139112ba56084f1caa5eb0b0dca7cf7b1970, 198KiB) is reproducible. |
sparc64/INSTALL.txt (f0a6b467fcea89d65e45b67d3d7f3f015b789e9d5ce736765558e62760d809b8, 120KiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.UP.gz (72b60b6b13f88f0e952e2d0ed3323b9f3a8e52afbe58ca5080d3dec6a9b5115e, 6MiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.gz (2953b4052b8247f0e3469e3650cc441cc76b2c728655610e59a5c7030d57c483, 6MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.gz (f26518716afe936e14421b4b12b77a276fc8928918a8f1a1846a2582878c41fc, 7MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.symbols.gz (5b9df5baeffea6df874feef1a284045aa2d8cd07059bfe9a62fd125becacbf44, 261KiB) is reproducible. |
sparc64/binary/sets/base.tgz (93e132fc0b4a132629f9698df2ccc026269156a46980fd71c23a99c446eb3525, 72MiB) is reproducible. |
sparc64/binary/sets/base32.tgz (9308bc2ab66886750f90f901de55670cf1b9ec3c05913dd962b420e961acf821, 15MiB) is reproducible. |
sparc64/binary/sets/comp.tgz (0399f32524e68c42dd47d4c1283cf1d6f489818540170d4e6cbba08d101aedb7, 175MiB) is reproducible. |
sparc64/binary/sets/etc.tgz (52767c25e33dc29e893c23f18e8583f33b213deb9f5b4783a6ed957d345eeb7a, 682KiB) is reproducible. |
sparc64/binary/sets/games.tgz (30fa3427587c0396842cc91cfa1ee086a26954642ae2e7cde8e1794b7a5504e4, 4MiB) is reproducible. |
sparc64/binary/sets/gpufw.tgz (1f5c9f640510aed29c10fe0fba4addd7b423dda90da372e2a2b0dc105186092f, 2KiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.UP.tgz (5397fd08f0764c412e8635f5000e09604eb1c23ec34c84a9e283db94a9c183b9, 6MiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.tgz (b4c79ad4296c245d23c5b401e9401553e02b1405fa45fcdfb8b6049d22f5731b, 6MiB) is reproducible. |
sparc64/binary/sets/man.tgz (2494779a844180af97fe77828ab090809f59d927f328735d6f59d922e81911a5, 8MiB) is reproducible. |
sparc64/binary/sets/manhtml.tgz (aa9b8874ad9ae10077b7e770d4d4639586b0432cf92ae707a16973577b5d532a, 6MiB) is reproducible. |
sparc64/binary/sets/misc.tgz (6bb94565264f90a0dbb839589b48238113e32ce73ada44b1e42b966f5cfb3432, 6MiB) is reproducible. |
sparc64/binary/sets/modules.tgz (95902938af5ad02b1c0cb0303e31e3dcbcbc0f47908b9ae1990c966c2ee069e3, 4MiB) is reproducible. |
sparc64/binary/sets/rescue.tgz (0e39c1be1c106d1a078af8708823bd4262672c935559f16589017f901271a615, 5MiB) is reproducible. |
sparc64/binary/sets/tests.tgz (6982ebe321b35b387cedec8704dffb1acced35e8f3322095070b166dd563dc23, 23MiB) is reproducible. |
sparc64/binary/sets/text.tgz (34096b8659c7f56ed65190b04002017a500e22cc6f5346fc73762f685434eeb2, 3MiB) is reproducible. |
sparc64/installation/miniroot/miniroot.fs.gz (d81a85ee9a0d6dd57a17dadffb80461f7442b1c370bdd79001f8f0f0d3f9bb69, 8MiB) is reproducible. |
sparc64/installation/misc/boot.fs.gz (d1df6d97aae68dbe4377517959c398e9d4230dbf59c40087c1944c98b74407e3, 62KiB) is reproducible. |
sparc64/installation/misc/bootblk (9b8f33a1031160240cfe3ce389abb78437e2ceb51e6449182ac65423bae65922, 8KiB) is reproducible. |
sparc64/installation/misc/installboot (558141585e7f028cd6098a115e2fed24d5c6673409ce48af65a5b869d9df0b0c, 145KiB) is reproducible. |
sparc64/installation/misc/instfs.tgz (3f6958262f6584c51db1deadc0ad18f80a6c4d375b6248550ed02321d9a04685, 3MiB) is reproducible. |
sparc64/installation/misc/ofwboot (1e5447d519da736cdfd2f0b6742214e2c6d2267841cc647089de71a879d1fcc2, 123KiB) is reproducible. |
sparc64/installation/netboot/ofwboot.net (1e5447d519da736cdfd2f0b6742214e2c6d2267841cc647089de71a879d1fcc2, 123KiB) is reproducible. |
commit e4bd382dbba2d7da7f66de513e1492c24b208d1a Author: macallanDate: Wed Nov 20 05:24:46 2024 +0000 use summitreg.h