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-12-13 for rev 0896a89ce with -P (as of @1734009279) and were compared using diffoscope 284.
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-12-13) | 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 (8207e91c40d43bb124415783acce2ac87709587591308dab29d393119de6a606, 644MiB) is reproducible. |
images/NetBSD-10.99.12-sparc64-live.img.gz (6e6df70d4ad7cd94120f0b5fbc8f14648954ce3eab5cbf6dda9cf72270b47143, 328MiB) is reproducible. |
images/NetBSD-10.99.12-sparc64.iso (10fb55de682b12a38bc51429b2ec0abaa556bc66b86d8718ff8c7f4ee2da2df5, 600MiB) is reproducible. |
sparc64/INSTALL.html (f1463c0f1ad4edafbe19b320166745cbed89de27c54632ceefc2550b7876d898, 127KiB) is reproducible. |
sparc64/INSTALL.more (0ac1736a8b910411c5da8affd9c76cc76a4245c8cd0c14649365f8126dd1aa2a, 122KiB) is reproducible. |
sparc64/INSTALL.ps (d8d18fa85f3f14e7bdfd2c80f58a285613bc7cf23bf469f2f16ed3148c972dcb, 197KiB) is reproducible. |
sparc64/INSTALL.txt (90c0421f0ad025f9a972b04c575d8a75ed3de5ffd4d41f69257798307d4e59c8, 120KiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.UP.gz (47adca54ad881e916390d39a4c8e8f2e062ad12ae7cf5725b5ac1d1444753ff0, 6MiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.gz (41126d47d69a900b17d43ab690b188a4ccd1abb26b76a4167b817c8d9083a469, 6MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.gz (f038e53f0b5f1931945475980f5041b98f5c7d6d379377232a4427f9f6777a2c, 7MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.symbols.gz (f6530327e6fa5e38ec221a17f2ae442da7c5e6337376aafcae78b31b790cc076, 261KiB) is reproducible. |
sparc64/binary/sets/base.tgz (45e15418d52ff0db865472465f8b34b704ff317257fd113531b4e217553ff902, 72MiB) is reproducible. |
sparc64/binary/sets/base32.tgz (f2a411cd4457131e30653bb3c02017816a94b0d9447dd8434e5bbdc45f644706, 15MiB) is reproducible. |
sparc64/binary/sets/comp.tgz (f053a7543640c04be44e75bb9e2170cd3f5a0d9399c40a51806e19dc598fea92, 175MiB) is reproducible. |
sparc64/binary/sets/etc.tgz (1bf241c084c3124b146d341701b39c9b543f4512d09f19af7790b93e0bff7abc, 682KiB) is reproducible. |
sparc64/binary/sets/games.tgz (738b5ec00c6b7aa43c09d117625682e51edc149863627b7f8041c8c32af6ac53, 4MiB) is reproducible. |
sparc64/binary/sets/gpufw.tgz (f3ea599ee6d097e3befe083eba1b17dc06e4122d591a6c175d8d287ab05c3acf, 2KiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.UP.tgz (fe3b3fb5aa65cf7c824630db20769a0bd17230db8ab3b17ec21f4c5f499f5fbb, 6MiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.tgz (46f5ede8b2d16fe331430925dcb3f9940e94182ed213320f005ad076f1a5c594, 6MiB) is reproducible. |
sparc64/binary/sets/man.tgz (3bc8b366e20484d996360b45de8a0f0b37179aeb0ea13edaa0c5196aff41fe0a, 8MiB) is reproducible. |
sparc64/binary/sets/manhtml.tgz (f30384302dba0c6f9e4eb93c0c309e45cfe9bdecbd582ae8115d8969b1330add, 6MiB) is reproducible. |
sparc64/binary/sets/misc.tgz (eb8ee819b50aa03404fdaa561cde2322f129eef3cd761d0f3a5c022a6ef82e1a, 6MiB) is reproducible. |
sparc64/binary/sets/modules.tgz (175efe0ba9ca85fcc9cf90c1bbc466a8a768d66be4f879d78cf82c08fd74cb31, 4MiB) is reproducible. |
sparc64/binary/sets/rescue.tgz (657195f6b1257d3e634fddbc6ffe53be6ef0d7b290a61bd60a98353e0be9e02b, 5MiB) is reproducible. |
sparc64/binary/sets/tests.tgz (c2d6b5828283a2b452d3cec10b15392a48ff9cb7730064e87a3c82faf052ebc7, 24MiB) is reproducible. |
sparc64/binary/sets/text.tgz (c8510669eda7b2b0cb12cdc77a693273c803f5d8e22b1d4175cacc8f97a4ed9e, 3MiB) is reproducible. |
sparc64/installation/miniroot/miniroot.fs.gz (445bec8c126c0c5bae5b50fc13660f12b87b2a12dc21febf2c0b7c74389ceae0, 8MiB) is reproducible. |
sparc64/installation/misc/boot.fs.gz (a91252c3d49daed07675284c0ae72686b4eff7c8b4ff2f8f88294c0f68ec7a24, 62KiB) is reproducible. |
sparc64/installation/misc/bootblk (9b8f33a1031160240cfe3ce389abb78437e2ceb51e6449182ac65423bae65922, 8KiB) is reproducible. |
sparc64/installation/misc/installboot (558141585e7f028cd6098a115e2fed24d5c6673409ce48af65a5b869d9df0b0c, 145KiB) is reproducible. |
sparc64/installation/misc/instfs.tgz (a6863a6a9ab78feb7e3f5cd1c95967643a3f751b38528b39ffd853ea88bf78b0, 3MiB) is reproducible. |
sparc64/installation/misc/ofwboot (df308ab2dcdea79b4f975b667d3643f7201b9b24c82e470e040b32ba238f1619, 123KiB) is reproducible. |
sparc64/installation/netboot/ofwboot.net (df308ab2dcdea79b4f975b667d3643f7201b9b24c82e470e040b32ba238f1619, 123KiB) is reproducible. |
commit 0896a89cec2a8df05d7129d749231fe1712b0ad7 Author: msaitohDate: Thu Dec 12 13:14:39 2024 +0000 regen.