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 Profitbricks for donating the virtual machines this is running on!

56 (96.5%) out of 58 built NetBSD files were reproducible in our test setup . These tests were last run on 2019-10-16 for version 3fc124ec1 with MKREPRO=yes and MKREPRO_TIMESTAMP=1571231476 and were compared using diffoscope 126.

variationfirst buildsecond build
hostname osuosl-build169-amd64 or osuosl-build170-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="fr_CH.UTF-8"
env LC_ALLnot setLC_ALL="fr_CH.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.
kernel version, modified using /usr/bin/linux64 --uname-2.6Linux 4.19.0-6-amd64Linux 2.6.79-6-amd64
umask00220002
CPU type Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHzsame for both builds
/bin/sh is not yet varied between rebuilds of NetBSD.
year, month, datetoday (2019-10-16)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 amd64
unreproducible icon binary/sets/kern-GENERIC_KASLR.tar.xz (8227K) is unreproducible.
unreproducible icon binary/sets/kern-GENERIC.tar.xz (7930K) is unreproducible.
Reproducible artifacts for amd64
reproducible icon binary/kernel/netbsd-GENERIC.gz (6a0a9f0b566d6570cbeac50795ba46caaeebe8d7bbac106238542c86788a7779, 9881K) is reproducible.
reproducible icon binary/kernel/netbsd-GENERIC_KASLR.gz (edd848d9da96b260bf40f2a5a49aa648a6dfda30f1b7f41b361050ee6052d52a, 10820K) is reproducible.
reproducible icon binary/kernel/netbsd-GENERIC.symbols.gz (93f23d5466dfba3ddebb8094fb8cf7acb1770a800bbda938c0ec66bc3d627b0f, 456K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.gz (ead827f2906ff92dd09539cd408c18224b9e1238db33d480c122f518ae69a5ef, 8228K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.symbols.gz (d55b08c740fccdc24f08524dbe82b284c8a7452247503c6044205770a150f1ed, 348K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz (3ca7ca302a5250aa6e9922f1b0f321ebbf0bd41a6beee41b05a641c06c399f17, 3966K) is reproducible.
reproducible icon binary/kernel/netbsd-XEN3_DOM0.gz (5594a38b2d9dd1524ae1ebc27c1395d6bb888c6ecdcbc5cd1cbaf7980da72dc1, 6052K) is reproducible.
reproducible icon binary/kernel/netbsd-XEN3_DOMU.gz (b94e1da60187a5d9392267d5c3436cafbb7664b48a222ce9a4d1240cadc71bc0, 2658K) is reproducible.
reproducible icon binary/sets/base.tar.xz (63e0addea8aa1fd3e8a016271935c1ae667dab393339dcd310a857ae23350904, 37M) is reproducible.
reproducible icon binary/sets/comp.tar.xz (3680a6e5c7ee42c9b75657054eb7e9492866c1c5c0ef5dfee68955e157200144, 57M) is reproducible.
reproducible icon binary/sets/etc.tar.xz (aebb479ab74373bddbcee46c0952db606f7abde0fbabd475a394d3cbbcd94b2c, 469K) is reproducible.
reproducible icon binary/sets/games.tar.xz (b305f3a991ccee75c67a622d812cc99203608631626345cd65027de5a1917d6f, 2418K) is reproducible.
reproducible icon binary/sets/kern-XEN3_DOM0.tar.xz (cce58ba9a9200df49042e03449cf500a03a741ec1e65b167cd3d1cf943cd3f83, 4752K) is reproducible.
reproducible icon binary/sets/kern-XEN3_DOMU.tar.xz (5ff2f340f87e41bbe432b4010b2140c047df84d4e902a0d843d6efc1c7aaa53b, 2143K) is reproducible.
reproducible icon binary/sets/man.tar.xz (3e27a753940ef44e3deddc842dfdd35550f861c8a1da5f18ba0fd076be7533e4, 7094K) is reproducible.
reproducible icon binary/sets/misc.tar.xz (9093bd8ca603b662d90adf90c8cb803f831b3c5e31b40d5b8a76d0f1eefb84ba, 4131K) is reproducible.
reproducible icon binary/sets/modules.tar.xz (067dfc1ded14712946c0fbff6be39af538973c9a04322653b323673d71764714, 8696K) is reproducible.
reproducible icon binary/sets/rescue.tar.xz (5650dcda65949f7352f64b99cc5f2fa00c9c028ac185beac19a25cf8227a1b0e, 2648K) is reproducible.
reproducible icon binary/sets/tests.tar.xz (0a5ff341705e4810460098488302648443edc40c47717b34a7a42f9aa642122a, 6663K) is reproducible.
reproducible icon binary/sets/text.tar.xz (cd258711f7532c3a951566b295b7e120a613fed31d4307f70c6d05eaa346df9e, 1849K) is reproducible.
reproducible icon installation/cdrom/boot-com.iso (2d2317c74c743ef7dab1231b4148d30d9668fe7e1e373eafc1d9f35159839a7a, 215M) is reproducible.
reproducible icon installation/cdrom/boot.iso (29897fe3ff49969ce7945928168e2633ecac5d316c0891378ca71c3646034190, 215M) is reproducible.
reproducible icon installation/miniroot/cgdroot.kmod (09bd6c8aeb9262d64aefb5ef33a4b8e87e80e2660610cc42f389a191afd9e033, 1151K) is reproducible.
reproducible icon installation/miniroot/miniroot.kmod (cea39a9fbe4ec9fe11b00901f7ddb5f029144ddf0cae3343fdad2905e563731f, 1311K) is reproducible.
reproducible icon installation/misc/pxeboot_ia32.bin (5b8b266733344d8a85f9eeb14a650bc2aadf6c06c9086deeadbaadf3c029d504, 72K) is reproducible.
reproducible icon INSTALL.html (1c5356565d77df4480128d7b43bbe5efffa4ee74b606082ea47f85c8d2b0a0a4, 97K) is reproducible.
reproducible icon INSTALL.more (4aee2fd72d0f014f9dc4bccfd8f911a6c28c0231b21a588904b8e47a8301651f, 77K) is reproducible.
reproducible icon INSTALL.ps (96d0db740ef5ff6ae4f88497211d471684c68d5350831a11d19d6d2525f872be, 124K) is reproducible.
reproducible icon INSTALL.txt (b161703ab4628c944e1aaf4b4f8b43942d9722b5c13a101c34957a04dcc02b3e, 84K) is reproducible.
Reproducible artifacts for sparc64
reproducible icon binary/kernel/netbsd-GENERIC.gz (a1550717f453f666f11492ecde9ba58fec9489aa6581e5289f545fa001b197a1, 5406K) is reproducible.
reproducible icon binary/kernel/netbsd-GENERIC.UP.gz (ee5886df9ab2913036653c80f0ee5a3f8f9ee2bcbdc58374c0c58f55a8d82cf0, 5391K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.gz (e5fa6712b5e0c4343946051eb1f86d7f17a5e2961e478df52d83ca4bb8e9bf23, 6360K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.symbols.gz (d54c3cbf82f02281c4d57113533789cd63dc9f8afcd050b78172378a17b310ab, 252K) is reproducible.
reproducible icon binary/sets/base.tar.xz (1853d6696d036d352c9c0836cb537a165da1d76fda74546b781967035bb65e32, 32M) is reproducible.
reproducible icon binary/sets/comp.tar.xz (bcb9819be637fbee4e9116fe0ff9ad449c5211975d2934ee4f97d6e30e99ba81, 45M) is reproducible.
reproducible icon binary/sets/etc.tar.xz (55f803b025613bd401359b0070d59ba1fa44a869903d29873306b772fa2027c5, 469K) is reproducible.
reproducible icon binary/sets/games.tar.xz (14812811f79b38f2f844756f7d69d7872e708691658c875174db03a03782eba7, 2422K) is reproducible.
reproducible icon binary/sets/kern-GENERIC.tar.xz (cc00689f268322ffa1202a5cc078843e97ab195feaec5d945725391f53a801a7, 3874K) is reproducible.
reproducible icon binary/sets/kern-GENERIC.UP.tar.xz (11b56c2331ef757f6f4981e21306109a1f991fd8f8ac1c3f7319af5eb07cbb74, 3864K) is reproducible.
reproducible icon binary/sets/man.tar.xz (2075d4fe0a3cd56653dc6d6e1008d9e71c969aa06eb8a61de12c958f22f03490, 7004K) is reproducible.
reproducible icon binary/sets/misc.tar.xz (9093bd8ca603b662d90adf90c8cb803f831b3c5e31b40d5b8a76d0f1eefb84ba, 4131K) is reproducible.
reproducible icon binary/sets/modules.tar.xz (0a16f5e246f69c1e8771fc412018cfeb77ccf4a26c915329353eaf384202130e, 1881K) is reproducible.
reproducible icon binary/sets/rescue.tar.xz (388d28d2730c0e33992542facefdabcc643d0846ded0b5a0791f6b27d447cf48, 2637K) is reproducible.
reproducible icon binary/sets/tests.tar.xz (2cc9754f059c79f86e03bd6ccfc5f2213ff2e86bf9391c49dc6533df656bd766, 5915K) is reproducible.
reproducible icon binary/sets/text.tar.xz (d1684a4d12de277301c495b6bbbb8550648f8fe67477a9ccb302d2b67616443a, 1800K) is reproducible.
reproducible icon installation/miniroot/miniroot.fs.gz (550c38d48c47427dcc74c6f93b6093cdb809ace84c6762be7836adf9839aa3a2, 7383K) is reproducible.
reproducible icon installation/misc/bootblk (99b37fbde6cf6d795adf645a7f820eacc7a7f36e4c30eb2d5315b0ff113af74a, 7K) is reproducible.
reproducible icon installation/misc/boot.fs.gz (61ea959a623aa2cbf124f17ea056ee790fe9cd566860f893e1c0ba1400f8d10d, 58K) is reproducible.
reproducible icon installation/misc/installboot (47dfd21994aab21ffc88e4f569644c31fba16560be230d8c7aad149111aaaa08, 136K) is reproducible.
reproducible icon installation/misc/instfs.tgz (3c519809203d581563a7ec44146d592b75ee574aa276d43d59efa9c093b2b553, 1985K) is reproducible.
reproducible icon installation/misc/ofwboot (6321dabdba01cf66f1cdb61b00363257d97097e8e097519b147d47392fd263a9, 111K) is reproducible.
reproducible icon installation/netboot/ofwboot.net (6321dabdba01cf66f1cdb61b00363257d97097e8e097519b147d47392fd263a9, 111K) is reproducible.
reproducible icon INSTALL.html (b6483ddb46c0abce083e01d7c2df4199c2b7f33fa4d7a880bc66afdc78711375, 151K) is reproducible.
reproducible icon INSTALL.more (58a8a2b6d18663b7204300067af8606cbb434306739f23dd189873fd828f1041, 121K) is reproducible.
reproducible icon INSTALL.ps (ae4b6c52ff85ef7c49a932880d8949e55e886366107102f38c7db36bf5d5d907, 187K) is reproducible.
reproducible icon INSTALL.txt (23cffa43496b328b86cbac6bf980f676f78525589dcf7e725690d968a173f48a, 129K) is reproducible.

commit 3fc124ec181173c0c9a75fc0179fbfaad94e0082
Author: bad 
Date:   Wed Oct 16 13:11:16 2019 +0000

    allocate a random mac address if on-chip mac is all zeroes.
    
    helps ure(4) on NanoPi R1.
    
    partly from ganbold@freebsd r346052.
    
    XXX pullup-9