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!

65 (98.4%) out of 66 built NetBSD files were reproducible in our test setup . These tests were last run on 2024-01-26 for rev 0931764d8 with -P (as of @1705588929) and were compared using diffoscope 254.

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.5.0-0.deb12.4-amd64Linux 2.6.65-0.deb12.4-amd64
umask00220002
CPU type AMD Opteron(tm) Processor 4284same for both builds
/bin/sh is not yet varied between rebuilds of NetBSD.
year, month, datetoday (2024-01-26)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.

Unreproducible artifacts for x86_64-amd64
unreproducible icon images/NetBSD-10.99.10-amd64-install.img.gz (360M) is unreproducible.
Reproducible artifacts for sparc64-sparc64
reproducible icon images/NetBSD-10.99.10-sparc64.iso (f6743794b4b1eb37e5c30dd8c8e1c1cc0fe47611ad71a3462e9d5a0167073187, 407M) is reproducible.
reproducible icon images/NetBSD-10.99.10-sparc64-live.img.gz (d9f3e0c9227cd0fd36c4bf552896bf723a8776286550c8c741c3e9a3aa8b0a2e, 305M) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-GENERIC.gz (2a60abc13cd0673b21154a83da0f80fc009d369599f00c8cdc5216e9c6c9c068, 6006K) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-GENERIC.UP.gz (ce1830b68e1960c73437ae35c2c78f4da846962f022ea59da8696c000770548b, 5995K) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-INSTALL.gz (904abe45b9ca732fb63d160298192926a913dee1173f82e53def319fdfb60fc8, 6945K) is reproducible.
reproducible icon sparc64/binary/kernel/netbsd-INSTALL.symbols.gz (c3e98311960988ca41cc8770c58ba2b42ca055c1eda251e91c587c4f3be093e6, 275K) is reproducible.
reproducible icon sparc64/binary/sets/base.tar.xz (457741d1ac94b4bc3567f7905f94ad9dd03d64456c1f39ba670466b5e376780c, 39M) is reproducible.
reproducible icon sparc64/binary/sets/comp.tar.xz (6412d62ccce0696b88c2cb0478df261d1c08ef4b74aed49ac57f8629c9abbfde, 61M) is reproducible.
reproducible icon sparc64/binary/sets/etc.tar.xz (d47fe63940eb937e494e1623b9f1d051130f7a818c036fc7df5c849e3e72a513, 496K) is reproducible.
reproducible icon sparc64/binary/sets/games.tar.xz (24e8746799a412d7abeaf150ffbd7400b45027f08b575633f0b0711a56ea2e08, 2501K) is reproducible.
reproducible icon sparc64/binary/sets/gpufw.tar.xz (bed13f94a2242c49228215b8c6eefb2c46f4262cd3e748bd6a2005010bd32797, 1K) is reproducible.
reproducible icon sparc64/binary/sets/kern-GENERIC.tar.xz (07492d7ce30ed2ead6035e5cdde8f38dd4b9586b073fa3d261f8742134e0c036, 4298K) is reproducible.
reproducible icon sparc64/binary/sets/kern-GENERIC.UP.tar.xz (8d55153e5633c5b95d69c8300820d1b8c9e799c19a0493ec2a068ac1f0338b6f, 4289K) is reproducible.
reproducible icon sparc64/binary/sets/man.tar.xz (51e605c26c19f22364b21d809c79d089614c9acc9dbefcd61b42be6f24f8acfc, 7652K) is reproducible.
reproducible icon sparc64/binary/sets/misc.tar.xz (161f41ac351ddcb548ba7873437ce1d1ff1e43f9b8daa023ed33c3ec07593d45, 4054K) is reproducible.
reproducible icon sparc64/binary/sets/modules.tar.xz (f93f05d5e1736c49e13bab7bb0215efde8581baf967d9028cfc6b14d637e8596, 2585K) is reproducible.
reproducible icon sparc64/binary/sets/rescue.tar.xz (f8dd56781bc26b1158d63a6977ae329453b686ea5f9cbdab5f42e177d01983d2, 3169K) is reproducible.
reproducible icon sparc64/binary/sets/tests.tar.xz (7bfe222dcde833ba4bd096e88cee2c694d690c097838e5a9dfd20a302945579e, 13577K) is reproducible.
reproducible icon sparc64/binary/sets/text.tar.xz (fae65d3f721f19b9b8004ec8f439fa3a11fddc8c920e6c28f7a830cf32ac0ae8, 1817K) is reproducible.
reproducible icon sparc64/installation/miniroot/miniroot.fs.gz (f732bce727e7154fbb2f6bb2451a08e43d9d7238ee215f084b74d493c046c92e, 8131K) is reproducible.
reproducible icon sparc64/installation/misc/bootblk (9b8f33a1031160240cfe3ce389abb78437e2ceb51e6449182ac65423bae65922, 7K) is reproducible.
reproducible icon sparc64/installation/misc/boot.fs.gz (610ef4c1d70faca29a544ecf79f3694231f826d41ab8ddeb2770fdabb03daf3e, 61K) is reproducible.
reproducible icon sparc64/installation/misc/installboot (c657ecd051b9730a13db237a00ae2a64db08930562f5eb3e0ed793b3176d6018, 138K) is reproducible.
reproducible icon sparc64/installation/misc/instfs.tgz (55efcb1bc24e3086339a4d38502480f5e0375a8790d4916186d626eaf26cc6c5, 2132K) is reproducible.
reproducible icon sparc64/installation/misc/ofwboot (2f9dbda37af01a340a18a4c02a76352e1d9123e3bb4dfe7c22b74d200f831d59, 123K) is reproducible.
reproducible icon sparc64/installation/netboot/ofwboot.net (2f9dbda37af01a340a18a4c02a76352e1d9123e3bb4dfe7c22b74d200f831d59, 123K) is reproducible.
reproducible icon sparc64/INSTALL.html (9d46a49f19961bad09c8f72de3bf1e02b05cfb8936c0ebc35e485e95669ff6d7, 127K) is reproducible.
reproducible icon sparc64/INSTALL.more (9836529cd38803bace2bbd2d1bdb5230b2a21199f6208e5a304d1eb8d3a3be46, 122K) is reproducible.
reproducible icon sparc64/INSTALL.ps (d425cc82e16c2b763cf2a7660e565ad42adcf940fcaa9a5ec7ee7d4c8bef4329, 196K) is reproducible.
reproducible icon sparc64/INSTALL.txt (77278915b88984f3518fe7ec58946914c0774cda91edb20b4ff394ed3e3b0b6d, 119K) is reproducible.
Reproducible artifacts for x86_64-amd64
reproducible icon amd64/binary/kernel/netbsd-GENERIC.gz (24974c41acbac745be1da65609ab80126257c3bf3d6ac6712e96511dd1fb6770, 10854K) is reproducible.
reproducible icon amd64/binary/kernel/netbsd-GENERIC_KASLR.gz (d636affefef3312ff70efcad991f708f45f5f8127e6be877c0a6bcdbc0fc5956, 11860K) is reproducible.
reproducible icon amd64/binary/kernel/netbsd-GENERIC.symbols.gz (af54f58744a4a9655eef02459ca7bbca0a3a46be22d149c2f84de82003ea2442, 509K) is reproducible.
reproducible icon amd64/binary/kernel/netbsd-INSTALL.gz (32cc14d6491e1f1ef48b4a8fb86b4edcb48c5354a8ea2812dff85133d902d0df, 9004K) is reproducible.
reproducible icon amd64/binary/kernel/netbsd-INSTALL.symbols.gz (c6108503d0550a43a695338529ca46cee4ad43fd9bae249ecd84788a5746fe6d, 372K) is reproducible.
reproducible icon amd64/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz (e5978dca915769f5bf4d806ad96a82c85ad2bd809a782f37900bc6403b479b1b, 4664K) is reproducible.
reproducible icon amd64/binary/kernel/netbsd-XEN3_DOM0.gz (2b1f8e66d4a86fe14fb8d2e6576a31f373051b17363e9d8c910d5a74b51d43d0, 8116K) is reproducible.
reproducible icon amd64/binary/kernel/netbsd-XEN3_DOMU.gz (fbe99ee15f4aa2b33ad0e938d47eb9f5d1524794a142ae1f9fdbd5a3b06a8d1e, 3021K) is reproducible.
reproducible icon amd64/binary/sets/base.tar.xz (eaf502a40a0168436f915d5954e541d86760fc836b45b102086ce5be20a6e630, 43M) is reproducible.
reproducible icon amd64/binary/sets/comp.tar.xz (63afb3ae984344003582b5670be8b77ee1fddec8ebcc1635d4eae302cd5be385, 70M) is reproducible.
reproducible icon amd64/binary/sets/etc.tar.xz (47e318e05475c201103c3fb72e621fe676da9dc2e0c4bc9932801cf80929ca9f, 496K) is reproducible.
reproducible icon amd64/binary/sets/games.tar.xz (2895ee96d8811975eb0e0a7f0ef734cd1f5d22c442cd7bb17292ad14b79d4aff, 2489K) is reproducible.
reproducible icon amd64/binary/sets/gpufw.tar.xz (e3f2d69bef85a4d7b2eb039e41009472322e9470ede091d62d8cc8c3727cf462, 4046K) is reproducible.
reproducible icon amd64/binary/sets/kern-GENERIC_KASLR.tar.xz (289ae9e4366b1368bc18566691b1b170ef3aa87fa3318738862c1fd1e82c88f3, 8919K) is reproducible.
reproducible icon amd64/binary/sets/kern-GENERIC.tar.xz (9db12161bfabc1705f55b774fc956e139b6e052b9f7fa4362767f88b8560fee1, 8684K) is reproducible.
reproducible icon amd64/binary/sets/kern-XEN3_DOM0.tar.xz (1530b3178e86177868a1cd472dcae80bb371465db3f400bace0ac6769e101c7e, 6528K) is reproducible.
reproducible icon amd64/binary/sets/kern-XEN3_DOMU.tar.xz (c3712a87e8a90cadb914551d169c3af7d95853051628aea812a2d3bd6c91ab65, 2500K) is reproducible.
reproducible icon amd64/binary/sets/man.tar.xz (686d832b1b5e3e6935cfb6b94b776759221959dafd2b9ec5b4dadc988cae49b6, 7674K) is reproducible.
reproducible icon amd64/binary/sets/misc.tar.xz (161f41ac351ddcb548ba7873437ce1d1ff1e43f9b8daa023ed33c3ec07593d45, 4054K) is reproducible.
reproducible icon amd64/binary/sets/modules.tar.xz (a798b73dc25620d74511f041eb9a04b0410059aa3999af36185b26bdbc8e3951, 9707K) is reproducible.
reproducible icon amd64/binary/sets/rescue.tar.xz (0789229cc425fd361358fe01ea0a44bae24fde7567d5a693fb3dd795a03c4061, 3358K) is reproducible.
reproducible icon amd64/binary/sets/tests.tar.xz (3f6eac104707528691fe7204598906cbbc914603c68e9690bbe9bf9a1632c06c, 14435K) is reproducible.
reproducible icon amd64/binary/sets/text.tar.xz (3fcb085cb3fcf121c11a4dc419497eb84170a9485635d331c1dc42079f58fcbf, 1875K) is reproducible.
reproducible icon amd64/installation/cdrom/boot-com.iso (485937d415118848ad2636c39dddb96ff830d19e36868c7f29e1fdc48bf14912, 296M) is reproducible.
reproducible icon amd64/installation/cdrom/boot.iso (e5fcef9b2a6c3da601e784943ea94a4b8f5f0a3d5ef5f525cbb577a883ba7438, 296M) is reproducible.
reproducible icon amd64/installation/miniroot/cgdroot.kmod (64ae0f144b7b32672d36562704c81655eb28da839a33c6700522cc6ab1709c69, 1465K) is reproducible.
reproducible icon amd64/installation/miniroot/miniroot.kmod (0b9ab08e8d3acaf24e5a6fdebd30956f6e8c80c4e04701fb2c60252b423466d2, 1634K) is reproducible.
reproducible icon amd64/installation/misc/pxeboot_ia32.bin (8f4aa525b859042648590c7fd36c272d600012c2570ebd7f1f413c692bf928de, 68K) is reproducible.
reproducible icon amd64/INSTALL.html (816274efa2cdfc6d50bc6f151af735d0990720561dc4e5acc427e6c3851d0a26, 81K) is reproducible.
reproducible icon amd64/INSTALL.more (c2e6cd8b8456be52acc7a0d1e264fda3ef47b83e795b0f7f5a07e88f4c605ed0, 79K) is reproducible.
reproducible icon amd64/INSTALL.ps (b387f64fe5e951aa6b4895a1d9bc4893b492f462f1dc1a4ee823df1be3c83f27, 132K) is reproducible.
reproducible icon amd64/INSTALL.txt (8502413dbe1cdc3b6cf3b896cd8237d2783ffde9e32f62a42d0956d02ce20f77, 78K) is reproducible.
reproducible icon images/NetBSD-10.99.10-amd64-bios-install.img.gz (0f7ada51fd88d506db26b3e38e14c886787830b6e6647968950a493777d5dba5, 360M) is reproducible.
reproducible icon images/NetBSD-10.99.10-amd64.iso (881ac5a3c7817fe67d3b9b989a848ecc62729c84fb9bb235d7a2870a66508c07, 534M) is reproducible.
reproducible icon images/NetBSD-10.99.10-amd64-live.img.gz (3bcd1a79fafdba6c17929b90012854d3d64ed164d6633d88ce0a89f15e82209e, 335M) is reproducible.

commit 0931764d8e656c22d46a18e94625ee734a8d7452
Author: thorpej 
Date:   Thu Jan 18 14:42:09 2024 +0000

    Remove a comment that is no longer applicable.