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-08 for rev 86d42b3a4 with -P (as of @1731001978) and were compared using diffoscope 282.
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.10.11+bpo-amd64 | Linux 2.6.70+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-08) | 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 (9dcbd8e9c99597f75f326874922ca10a3386b77418967a154d41676d57a2fc4c, 643MiB) is reproducible. |
images/NetBSD-10.99.12-sparc64-live.img.gz (d9ab6fe1aef108d7ca10fb4ff566f8d55cb83c0dc45d505f0a092574f2ccda2c, 327MiB) is reproducible. |
images/NetBSD-10.99.12-sparc64.iso (4459edaeaa5250203e36d29d9ae2910ea5605c838cb012ed5b2b64d8c1c10ff1, 600MiB) is reproducible. |
sparc64/INSTALL.html (f1463c0f1ad4edafbe19b320166745cbed89de27c54632ceefc2550b7876d898, 127KiB) is reproducible. |
sparc64/INSTALL.more (cc1452ea99d72a1dbcd1fb0b9c5be42ff3dae28994711c7c69e71da242ac088a, 122KiB) is reproducible. |
sparc64/INSTALL.ps (cae7be836a7db0affe539462c1922cd44c5ec9593208a31ce7d7bee700cd6288, 198KiB) is reproducible. |
sparc64/INSTALL.txt (35e52a9121b5a783efdec916121e36b9297648ae6086a64ccec3778cf9114a34, 120KiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.UP.gz (83bd6bcfef3c94be11c94ce08b6a4af641f06f3235943d2f5159dabacbd80c60, 6MiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.gz (ea08e84ae1d451fa56ec6164259a31c72e8b5d4222391a2205447e72c4da8ccf, 6MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.gz (a79824c1aa6b69e35e667a1209921981b656de165812390fc09927cfcad23da9, 7MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.symbols.gz (bf46c75d14374c5ce6e1ccb724fadc4fa68a619bb4777efc0df992efe5623a67, 261KiB) is reproducible. |
sparc64/binary/sets/base.tgz (b50988e3a628027a3bad8d6b4c54ac9697d7157a1e82c809aeef9fc2d7f9c0c8, 72MiB) is reproducible. |
sparc64/binary/sets/base32.tgz (7cb56bcf03bcb25dbe09d0623a2968b0a23d5fb2ed53c4e1ebbb45fde87f64b1, 15MiB) is reproducible. |
sparc64/binary/sets/comp.tgz (d2f56ad93ee8950539bf9c8d4ae9c4e2305794ecbd543196b8890c458001923b, 175MiB) is reproducible. |
sparc64/binary/sets/etc.tgz (8b51ff7be0f29ac99c849ac7ad99cb338aeb9356a292a967c4b657cd8f17980b, 682KiB) is reproducible. |
sparc64/binary/sets/games.tgz (68d68bb40b18a29593b8a0f40652c7fc81f7615d9d4b977db10969ea2c0953b4, 4MiB) is reproducible. |
sparc64/binary/sets/gpufw.tgz (a1947d9da3d5896e6119b5d718d87808cf16e95ebda0fc11b866daf399eccf2f, 2KiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.UP.tgz (c7ab3446ad8300b14a9508739b4c247eb33e8c64eba1d359e6d50613fbdfc593, 6MiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.tgz (35635ff2ac8a108bfee2a11f2e8fd1c7185208c983502204f756e46c76440bb0, 6MiB) is reproducible. |
sparc64/binary/sets/man.tgz (7ef7171fc17bac1fee38c43f9cee0d4a77f5a9741bdc0b212772aefad2906d00, 8MiB) is reproducible. |
sparc64/binary/sets/manhtml.tgz (31b82c473fba2e2b0508d95cc84a68b66450eb8db195f5043affd76e0015764c, 6MiB) is reproducible. |
sparc64/binary/sets/misc.tgz (acf281a9027be8fa17ad6bde6aa3683bb51f29dc5031d1c7f0e23d966c108e54, 6MiB) is reproducible. |
sparc64/binary/sets/modules.tgz (13bee726a370101867be2b881c7133661a47a004c5eb59ba764a4fbcd4a1d841, 4MiB) is reproducible. |
sparc64/binary/sets/rescue.tgz (706fdc87d20e4169dab3854fdd24936b221510496ee647be57bc9c54d688de7c, 5MiB) is reproducible. |
sparc64/binary/sets/tests.tgz (7fbd5df5b144feff8b39648e6b3702306e2118d05cfdc338f61d0b2ee5983cc9, 23MiB) is reproducible. |
sparc64/binary/sets/text.tgz (5e2465f71cc828b4bc4c80425eb7ed2f7e004ed41e032536a953bc612dba8dcb, 3MiB) is reproducible. |
sparc64/installation/miniroot/miniroot.fs.gz (222a9ad796e480080bb917046d03a715bd7b4958b0aeb8463c25000839d76f8f, 8MiB) is reproducible. |
sparc64/installation/misc/boot.fs.gz (f9ba44143d4bf4d30b26e96b335e0dbee8f341d3f346d7be7dc0a6e2da6c8b12, 62KiB) is reproducible. |
sparc64/installation/misc/bootblk (9b8f33a1031160240cfe3ce389abb78437e2ceb51e6449182ac65423bae65922, 8KiB) is reproducible. |
sparc64/installation/misc/installboot (558141585e7f028cd6098a115e2fed24d5c6673409ce48af65a5b869d9df0b0c, 145KiB) is reproducible. |
sparc64/installation/misc/instfs.tgz (3ffb197c5952bd23d316920f77760be99d248ee110ad192eeecc356408981bf3, 3MiB) is reproducible. |
sparc64/installation/misc/ofwboot (29f60e39ff1dfbe5855e82e54d760be228ab9bac191da7766d3999911a4d5c46, 123KiB) is reproducible. |
sparc64/installation/netboot/ofwboot.net (29f60e39ff1dfbe5855e82e54d760be228ab9bac191da7766d3999911a4d5c46, 123KiB) is reproducible. |
commit 86d42b3a48f6eabf961c7ab5066c9be969922c79 Author: christosDate: Thu Nov 7 17:52:58 2024 +0000 fix sun2 build.