Reproducible NetBSD ? (original) (raw)
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!
29 (87.8%) out of 33 built NetBSD files were reproducible in our test setup . These tests were last run on 2026-06-17 for rev feb359c40 with -P (as of @1781653068) and were compared using diffoscope 319.
| 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−TEMPDIR/b1-TEMPDIR/b1−arch-$mach/ | TEMPDIR/b2−TEMPDIR/b2-TEMPDIR/b2−arch-$mach/ |
| Release dir | TEMPDIR/b1−TEMPDIR/b1-TEMPDIR/b1−arch-$mach/_release_/ | TEMPDIR/b2−TEMPDIR/b2-TEMPDIR/b2−arch-$mach/_release_/ |
| kernel version, modified using /usr/bin/linux64 --uname-2.6 | Linux 6.12.90+deb13.1-amd64 | Linux 2.6.72+deb13.1-amd64 |
| umask | 0022 | 0002 |
| CPU type | Intel Xeon Processor (Cascadelake) | same for both builds |
| /bin/sh | is not yet varied between rebuilds of NetBSD. | |
| year, month, date | today (2026-06-17) | 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. |
| Unreproducible artifacts for sparc64-sparc64 |
|---|
images/NetBSD-11.99.6-sparc64-dvd.iso (705MiB) is unreproducible. |
images/NetBSD-11.99.6-sparc64-live.img.gz (376MiB) is unreproducible. |
images/NetBSD-11.99.6-sparc64.iso (599MiB) is unreproducible. |
sparc64/binary/sets/base.tgz (79MiB) is unreproducible. |
| Reproducible artifacts for sparc64-sparc64 |
|---|
sparc64/INSTALL.html (dedbc029f23fa2f4a7301168669a7556f3f99aee4c0732b2b12a8de6bd5bcf66, 126KiB) is reproducible. |
sparc64/INSTALL.more (6cd2ae9042e529dfbe28b2fc8949c0847fa536077fbd8244a73560400c69c31f, 121KiB) is reproducible. |
sparc64/INSTALL.ps (5a4a3a647eee99da2b20aea2fa4b46078807962ebcb0bffcd0d2a2e6728154a4, 195KiB) is reproducible. |
sparc64/INSTALL.txt (63860511e28c279262650378c556eba53ac96f30247fecf96c81275f557647cd, 119KiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.UP.gz (51713b4886b7bcbef42b6234094eda607e2423e2f1cdd532a4be40063043efb2, 7MiB) is reproducible. |
sparc64/binary/kernel/netbsd-GENERIC.gz (9400db1ee05bda333f8bb67087d3760f96ae238e96f2cc4e3425c4281976ab4e, 7MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.gz (5d8fd8619a16b69f53e0551f49c0a858b8f11376adec480ebbfbb67708109168, 9MiB) is reproducible. |
sparc64/binary/kernel/netbsd-INSTALL.symbols.gz (9e42b6a8b88f87cac5cfc7cf427fc3d37822fc04172dcc208456159d6630cc3a, 265KiB) is reproducible. |
sparc64/binary/sets/base32.tgz (778211aabe591a9359f367ed12b1b630d2b299d7b09b32650b833461ba55c7fb, 17MiB) is reproducible. |
sparc64/binary/sets/comp.tgz (a76b68c73ca6e0ba164fa1b31bc1cf31cdbb4ed4f6bc0d14daa71899b09e12f7, 210MiB) is reproducible. |
sparc64/binary/sets/etc.tgz (e30d4cd25adf52c044506b90d880b964d726c51a195cd2c580c26e35a1365077, 692KiB) is reproducible. |
sparc64/binary/sets/games.tgz (2ecf33dcfbd4a34cc2199bc5c2358b77443009c476bc096f182d4d4e8f02fa97, 4MiB) is reproducible. |
sparc64/binary/sets/gpufw.tgz (02a5b984516fc10922c1c4826783e61115257b34f3fc2554fda2e4e0aa28bb4f, 2KiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.UP.tgz (73896145a28ee30e275bf7c775eb0b87337b3fd091230f9da5ecde635f8513d7, 7MiB) is reproducible. |
sparc64/binary/sets/kern-GENERIC.tgz (fe6b098c9086cd72b70ad8124b097f61f92a79d3b7e5c698fe425124534de47b, 7MiB) is reproducible. |
sparc64/binary/sets/man.tgz (e32485d86555e333a03af35fb6c66c1e203283eba46198796198a59b1e04f6dc, 8MiB) is reproducible. |
sparc64/binary/sets/manhtml.tgz (7c5c5d269d49c8ce7e6a20adfd8e35a22ded9e6e11fbcf12502ed6748f04ba66, 6MiB) is reproducible. |
sparc64/binary/sets/misc.tgz (b4198593a84e9607722986b59cd205bd97f7825212b38f96e1c62bde419dda72, 6MiB) is reproducible. |
sparc64/binary/sets/modules.tgz (35c1aa56daf08c8d740ebc1495ac5eb1e316ce68c30f7ec3e190673742e3097b, 4MiB) is reproducible. |
sparc64/binary/sets/rescue.tgz (f5691f2a43392af11c64b444f44bcb3aef91b358a5bdd3c1b10797d24e8c7179, 5MiB) is reproducible. |
sparc64/binary/sets/tests.tgz (4df38188f4c76d71de43399bef1a053ee2cdfc554439105a2d847d8c91ed816d, 29MiB) is reproducible. |
sparc64/binary/sets/text.tgz (03f326a2146c6cb8b45df3d71896945bec54bbd7941c571cd94990a9429d9527, 4MiB) is reproducible. |
sparc64/installation/miniroot/miniroot.fs.gz (c08578ea1f25f9c73d8ac6e26e5926043f3551cf3de71e5f99468367f915e2f2, 10MiB) is reproducible. |
sparc64/installation/misc/boot.fs.gz (b3bc07da0d21e0aeba71c48813271f1be1dff9766be0d873770d51d6e40f55c0, 62KiB) is reproducible. |
sparc64/installation/misc/bootblk (01e6d0f173ab86e84c40ba383d07934492d6d32c124bba87424558313e784970, 8KiB) is reproducible. |
sparc64/installation/misc/installboot (5fa3ccc126b7989dbccab08e599537ab99e62555d7e25bf2d78a7489866dbfa9, 158KiB) is reproducible. |
sparc64/installation/misc/instfs.tgz (1f38666c4e579e48f49c64c8a6b86bfeaf0a3ad22cd8f52a9f9e9f37ec9f0b9e, 4MiB) is reproducible. |
sparc64/installation/misc/ofwboot (eb76ee17160666b7fce7aae2f714df97af88c7dedf09ef49acd1cf0d01e8f5a4, 124KiB) is reproducible. |
sparc64/installation/netboot/ofwboot.net (eb76ee17160666b7fce7aae2f714df97af88c7dedf09ef49acd1cf0d01e8f5a4, 124KiB) is reproducible. |
commit feb359c4071a943fd06a5d69697a36c0c76b77b6 Author: rkujawa rkujawa@netbsd.org Date: Tue Jun 16 23:37:48 2026 +0000
Make FDT parsing in Sam460ex port less bad.
Avoid messing directly with libfdt. </rkujawa@netbsd.org>
images/NetBSD-11.99.6-sparc64-dvd.iso
sparc64/INSTALL.html (dedbc029f23fa2f4a7301168669a7556f3f99aee4c0732b2b12a8de6bd5bcf66, 126KiB) is reproducible.