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 2025-10-31 for rev d8a291f96 with -P (as of @1761881116) and were compared using diffoscope 306.

variationfirst buildsecond build
hostname osuosl1-amd64 or osuosl2-amd64the other one
domainname is not yet varied between rebuilds of NetBSD.
env CAPTURE_ENVIRONMENTnot setCAPTURE_ENVIRONMENT="I capture the environment"
env TZTZ="/usr/share/zoneinfo/Etc/GMT+12"TZ="/usr/share/zoneinfo/Etc/GMT-14"
env LANGLANG="en_GB.UTF-8"LANG="et_EE.UTF-8"
env LC_ALLnot setLC_ALL="et_EE.UTF-8"
env PATHPATH="/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.6Linux 6.12.48+deb13-amd64Linux 2.6.72+deb13-amd64
umask00220002
CPU type Intel Core Processor (Haswell, no TSX, IBRS)same for both builds
/bin/sh is not yet varied between rebuilds of NetBSD.
year, month, datetoday (2025-10-31)same for both builds (currently, work in progress)
hour, minutehour and minute will probably vary between two builds...the future system actually runs 398 days, 6 hours and 23 minutes ahead...
Filesystemtmpfssame 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
reproducible icon images/NetBSD-11.99.3-sparc64-dvd.iso (3a4a05bb08385aac4635c23ae06b91d0fa8802c202abcf902c01c7c2c32f1f0a, 684MiB) is reproducible.
reproducible icon images/NetBSD-11.99.3-sparc64-live.img.gz (2cd633308794c3d463439cab3d24da376d546bb1987a8adc480ca6b626bfb463, 354MiB) is reproducible.
reproducible icon images/NetBSD-11.99.3-sparc64.iso (68f58f50edbe728be93c223acc876f5f6cc79185ca0dccb3a0d636ab1ce731b0, 635MiB) is reproducible.
reproducible icon sparc64/INSTALL.html (2c55126eb78111d822d8b796d0e6bf0ce3e5439fc63243eb8e31f899d26773f1, 127KiB) is reproducible.
reproducible icon sparc64/INSTALL.more (b6024757b71e0e02ffc6682c1fa4e1e8575c13d128fc0c13da20121e0d70f1d0, 122KiB) is reproducible.
reproducible icon sparc64/INSTALL.ps (efe12f55a4f8b1c80d93eb418cb119a857485e227902a359b601d0741e967245, 197KiB) is reproducible.
reproducible icon sparc64/INSTALL.txt (3d7cedc828eb95d5d1a5e71d8c6f98816e72fcc870c5b989d527c812ca5ecf76, 120KiB) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-GENERIC.UP.gz (082f48dcc76b9267e2866fa3c11260d0df81b3b8e5ad3ec7c7ee07a168e55da7, 6MiB) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-GENERIC.gz (40d81cd0969e7eb795fc993203dfb99dcde0253f6d03ae780cf219af8ff26cd9, 6MiB) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-INSTALL.gz (4a8f11e90fede2c8221b357cddc0c9ff64c8b6d8b80064ac03ba4abedc51b394, 9MiB) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-INSTALL.symbols.gz (b8a6e1492e10bbd64604db8b9c1949884d0bd615b132fe739c745de82ea1932f, 263KiB) is reproducible.
reproducible icon sparc64/binary/sets/base.tgz (108ebda02bd3ce435c1ff96571c01b3c29e549c3a7b9f3171d769d447b1ca12f, 75MiB) is reproducible.
reproducible icon sparc64/binary/sets/base32.tgz (2635e7b686ac5dca303f23edd4596da5d55a4a4269287b839ed4ecdcc4f2de68, 16MiB) is reproducible.
reproducible icon sparc64/binary/sets/comp.tgz (9fc1d12e10a4d527eb7f956eed73ad8ac77b73a65ad0750d50526430199995af, 193MiB) is reproducible.
reproducible icon sparc64/binary/sets/etc.tgz (bfc8ec12f722b10f933874821940771206ce6227f8867ecc91fcbe5808989cbf, 682KiB) is reproducible.
reproducible icon sparc64/binary/sets/games.tgz (cabedef4a124c00f841e53c90634e2d9e5499d84586e06fd93bb7adb9231e756, 4MiB) is reproducible.
reproducible icon sparc64/binary/sets/gpufw.tgz (4bbe51c78f6331fd6611c74e248675a18b8e5d0d8cf45d4db94f0503cd525eec, 2KiB) is reproducible.
reproducible icon sparc64/binary/sets/kern-GENERIC.UP.tgz (edf7acf311d8b31b2ca73b37782c9afd858d6d9bfdcbbbcba3aa9927b8876fbe, 6MiB) is reproducible.
reproducible icon sparc64/binary/sets/kern-GENERIC.tgz (15846291d921796af26dac3e04c43355ec66d9e9577eca026ce656704333237b, 6MiB) is reproducible.
reproducible icon sparc64/binary/sets/man.tgz (fcf1d43945664bd4d2a277cf75ae0058ec58dc5856b9de11efc4cf588ce6d21c, 8MiB) is reproducible.
reproducible icon sparc64/binary/sets/manhtml.tgz (b6a5739863a6688cd704421bcb9dbe4470512ce7be34accdf04840faeadf7be2, 6MiB) is reproducible.
reproducible icon sparc64/binary/sets/misc.tgz (784a75368535b276d25f28584318e7263cb464b5f0339dc8e5f78510091cc833, 6MiB) is reproducible.
reproducible icon sparc64/binary/sets/modules.tgz (cecbe5e6c32a22a5124fb099b27ee44fb76a2eab5009f1a029dc2e400ee5c08d, 4MiB) is reproducible.
reproducible icon sparc64/binary/sets/rescue.tgz (928f0c9c1667da66eedd0ea88dff3a798ae22aeecfc4f3fd7e3378ae2ce2c89f, 5MiB) is reproducible.
reproducible icon sparc64/binary/sets/tests.tgz (881bd380d2f916fd99fa6678e8611d928c0186feb22ef8361ea1fdec30c2a1ed, 28MiB) is reproducible.
reproducible icon sparc64/binary/sets/text.tgz (a89972a6cd8775acda903057985776cba206ea2ceed41c47b373fe8bf24f8418, 4MiB) is reproducible.
reproducible icon sparc64/installation/miniroot/miniroot.fs.gz (7af15edde437ac8f2f7590d8dd5b9f693db5fb3bd584149225f271ca54957be3, 10MiB) is reproducible.
reproducible icon sparc64/installation/misc/boot.fs.gz (f42a539103453df7aa8a9d7321b7575513842decde618b5765873de0d1da72be, 62KiB) is reproducible.
reproducible icon sparc64/installation/misc/bootblk (01e6d0f173ab86e84c40ba383d07934492d6d32c124bba87424558313e784970, 8KiB) is reproducible.
reproducible icon sparc64/installation/misc/installboot (f3fd8e1a7e11ea4be8d2be875532426dcb19086abdb4bee0d8dd94eed9361cdb, 150KiB) is reproducible.
reproducible icon sparc64/installation/misc/instfs.tgz (a3c40ec455e575227ecf6622df82acdd5fee77f71ca37d78ed2b15cbee3daf54, 4MiB) is reproducible.
reproducible icon sparc64/installation/misc/ofwboot (bb7252ccb9251f9a75723bb2466baeb5ac38e784e52cca1cfe8875950601457c, 124KiB) is reproducible.
reproducible icon sparc64/installation/netboot/ofwboot.net (bb7252ccb9251f9a75723bb2466baeb5ac38e784e52cca1cfe8875950601457c, 124KiB) is reproducible.

commit d8a291f961c42541d21d920e80807e5e032b6fe1
Author: riastradh 
Date:   Fri Oct 31 03:25:16 2025 +0000

    tpm(4): Sprinkle bibliographic references.
    
    No functional change intended: comments only.  Should help the next
    reader to track down where various magic constants come from.
    
    Add web.archive.org links for everything just to make sure it will
    remain available in the future when trustedcomputinggroup.org
    eventually goes kaput.