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!

54 (100.0%) out of 54 built NetBSD files were reproducible in our test setup ! These tests were last run on 2018-05-16 for version fe40dde09 with MKREPRO=yes and MKREPRO_TIMESTAMP=1526502099 and were compared using diffoscope 94.

variationfirst buildsecond build
hostname profitbricks-build3-amd64 or profitbricks-build4-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.9.0-6-amd64Linux 2.6.69-6-amd64
umask00220002
CPU type AMD Opteron 62xx class CPUsame for both builds
/bin/sh is not yet varied between rebuilds of NetBSD.
year, month, datetoday (2018-05-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.

Reproducible artifacts for amd64
reproducible icon binary/kernel/netbsd-GENERIC.gz (6df1c1b82978f62f6f4a19d7e37b1e651d2b71fb271ba8f97e05f3f2b66720b8, 8312K) is reproducible.
reproducible icon binary/kernel/netbsd-GENERIC.symbols.gz (0ab56717c0467157fb793dd91031cc5fedb343bbd4f6842b1161ecad7c060c85, 415K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.gz (fb03a6561f5d9de7681f96c76a467809b4ecd5944c20e8336ec9b05e2e1968e0, 7243K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.symbols.gz (03f079ca636732eeab3fd5f302fe8d963579f6f04bc92962b1f0926ed304a714, 333K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz (fb2e7d76d942b5b8aaa2d0e41de1a2f4d6bf3e3a0a5cc06c7c19d886706c1f7e, 3866K) is reproducible.
reproducible icon binary/kernel/netbsd-XEN3_DOM0.gz (d09097eb1d4c243409bf7eb70fab3a4f9769bdcaab0d180d18262cedb04cfde4, 6019K) is reproducible.
reproducible icon binary/kernel/netbsd-XEN3_DOMU.gz (67d0e0b9b9ac619dd6119115f0386c464026d3ba18e92bd5164636463028a422, 2629K) is reproducible.
reproducible icon binary/sets/base.tgz (0a98f0b16c95279e55b038008f1dd9afa01c2cd0c73d5d99f1275ba7bf24a011, 71M) is reproducible.
reproducible icon binary/sets/comp.tgz (ab62cbe8360ee5cc4aa947f8d11a7efbb5f40bc076c2bdc06be1d5ddd7953a2d, 149M) is reproducible.
reproducible icon binary/sets/etc.tgz (695dcb4eb7d4f49dd787757223bd2b89270767b57dbf67565c538f9c6225e642, 621K) is reproducible.
reproducible icon binary/sets/games.tgz (44e97b092370bc981b17a982045e852301aa2cb7216a4d3a25d6845da4f6f6f7, 3263K) is reproducible.
reproducible icon binary/sets/kern-GENERIC.tgz (467f7826b39a31eed243e7d9b9bd85e25a2039da0f342dbc9095eed05a11e81a, 8312K) is reproducible.
reproducible icon binary/sets/kern-XEN3_DOM0.tgz (df331913c3703c39a053ce771788bd837a0dde0e3a43a454b1016c4b9e6c59c9, 6020K) is reproducible.
reproducible icon binary/sets/kern-XEN3_DOMU.tgz (34bbc081dd96feebdbbbac4386e68a4f4d73b28474df5511ca83df9a9588c476, 2629K) is reproducible.
reproducible icon binary/sets/man.tgz (312fb071a41ccacfe23d61b9a88ee28760ccad6af00d6513732ed9f0f1013756, 11562K) is reproducible.
reproducible icon binary/sets/misc.tgz (c1b489726997f09229c517a1d09fbffe6a6c611771ad67eabbf2bf5ec993779f, 5226K) is reproducible.
reproducible icon binary/sets/modules.tgz (c2d6d220b12cf72f15cd756e341c643e332dbe551f694eb8990a04d3c99292d7, 16M) is reproducible.
reproducible icon binary/sets/tests.tgz (0ac4e64ed941795547a33631fe5b450c75b414f2fd8d7649a3daf4f54d10118a, 9360K) is reproducible.
reproducible icon binary/sets/text.tgz (40581a8e02a62efc61474c077653d095ac720bb7f60c51ffc8ae6ca4810e4af6, 2894K) is reproducible.
reproducible icon installation/cdrom/boot-com.iso (4e5fd0a437ebb11186914a44ffe1908cb85c3dd2e3234f471745e64cd36db4ae, 234M) is reproducible.
reproducible icon installation/cdrom/boot.iso (c4480a8e73ec8bc313c0efa5e74be53033a3920de25646fc307be102e31869d0, 234M) is reproducible.
reproducible icon installation/miniroot/cgdroot.kmod (176801639736b767c99d20147fbdf99749bdfdf037a6ddc36f65876088596cab, 1112K) is reproducible.
reproducible icon installation/miniroot/miniroot.kmod (355e4f81818487ea387963cba49a5655f5d84e54b1a12f97479190ba73fbb12b, 1238K) is reproducible.
reproducible icon installation/misc/pxeboot_ia32.bin (4030d6e569edb226479323f253715f58caad8203eaffd24903ba36e9537ec27f, 56K) is reproducible.
reproducible icon INSTALL.html (0954fa331f3f3a930ac8dfba464088af2770f8450c623c3541b9846bf38b42e3, 131K) is reproducible.
reproducible icon INSTALL.more (04e44c37ea5f472cdab5fcf8e5262712543baa8bcc8b68a089be3876447795d1, 103K) is reproducible.
reproducible icon INSTALL.ps (515c958e8b0773e58328716faf2acf50358016031b8789d94ca2a8d2987ae437, 152K) is reproducible.
reproducible icon INSTALL.txt (43761a2d982beedec32f3c288c31325601968be099fe2ed8870896440a6c858c, 95K) is reproducible.
Reproducible artifacts for sparc64
reproducible icon binary/kernel/netbsd-GENERIC.gz (aaf7d67aa7d2501c52223bac38ba857fc624672b4d8a4372b9dc26b188c05834, 5262K) is reproducible.
reproducible icon binary/kernel/netbsd-GENERIC.UP.gz (9ff7af22f2d101c79f1da6889e4bbf855abbedbadcee3a95bd7f5b002320e4e3, 5247K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.gz (69361ff5444b78bfc9728fca3b411752ec19849611ed119d61530f495a684d30, 6310K) is reproducible.
reproducible icon binary/kernel/netbsd-INSTALL.symbols.gz (56389c2532dd5681c49b1d6030110e1f32bc17af9359083763d9cb629c2e2108, 240K) is reproducible.
reproducible icon binary/sets/base.tgz (7b4286020d95661176c076ae23c5227db407c2fa90bce65bab18e50c66535375, 70M) is reproducible.
reproducible icon binary/sets/comp.tgz (73c87dc3f5caf0aab97faf5c0959e1b4dafda6ef8175d4bee4b6695d763026f7, 143M) is reproducible.
reproducible icon binary/sets/etc.tgz (b99371ee181d0dee2d6df466c7d421b5a455dbe837cdcee4a5eb739f36c3b68b, 620K) is reproducible.
reproducible icon binary/sets/games.tgz (c89f9a2406901bbf7e1560c9bb9043306d03b391d8e30e8cce07c7658da65fb6, 3421K) is reproducible.
reproducible icon binary/sets/kern-GENERIC.tgz (f8fbb77254570603ff847bf5f13c1f3ffa8562c44320d6a113e9ac3c96499945, 5262K) is reproducible.
reproducible icon binary/sets/kern-GENERIC.UP.tgz (77fedf23c6767fbd99d8b1d22ac4ef85e86b93d1d36a9ec33ef6fe00ab4c6f83, 5247K) is reproducible.
reproducible icon binary/sets/man.tgz (0967b1f9ee155c0581b115c05d0f2ebbb9f6970a7499ad809cff1edfd4a768da, 11473K) is reproducible.
reproducible icon binary/sets/misc.tgz (c1b489726997f09229c517a1d09fbffe6a6c611771ad67eabbf2bf5ec993779f, 5226K) is reproducible.
reproducible icon binary/sets/modules.tgz (99d634f84df533a2034ac1d19c0e880a3b58e0acbe8fc7e4fc84c315768ffa7a, 2389K) is reproducible.
reproducible icon binary/sets/tests.tgz (b9e1a091b1ad0157bb29705621a740e13e9f22c47b5a7a319c621c8c41a62025, 9224K) is reproducible.
reproducible icon binary/sets/text.tgz (f71751890785b542e73eb999fc540c9ec342a67427288105a8d7dffdcbdc5c1a, 3040K) is reproducible.
reproducible icon installation/miniroot/miniroot.fs.gz (d8110f9ea26778ba70c10f5ad71e1f3c67cad3a47aee163aa24748de0f09c0cd, 7251K) is reproducible.
reproducible icon installation/misc/bootblk (99b37fbde6cf6d795adf645a7f820eacc7a7f36e4c30eb2d5315b0ff113af74a, 7K) is reproducible.
reproducible icon installation/misc/boot.fs.gz (a19aae93936a84246278ed6b7b02ca2a6a0f91aa1cb74bc629b40ac9659702ac, 58K) is reproducible.
reproducible icon installation/misc/installboot (cc028b0788546eeb634d40e8a09ca1ddaa44c355e0961cf63d54be51e055ac31, 98K) is reproducible.
reproducible icon installation/misc/instfs.tgz (f97d0e6573e9d9686b9d5177da584edb77447f41f99a5c345c75b40b7f1e47ff, 1996K) is reproducible.
reproducible icon installation/misc/ofwboot (930c1fbd88bba02083c95303dbec338c2cee92e63d63c03baf75829316c05279, 112K) is reproducible.
reproducible icon installation/netboot/ofwboot.net (930c1fbd88bba02083c95303dbec338c2cee92e63d63c03baf75829316c05279, 112K) is reproducible.
reproducible icon INSTALL.html (804569ca4c535bff5ccf626143fdcf04622d08b39508bef1db82aad16a164483, 185K) is reproducible.
reproducible icon INSTALL.more (7742dee2c22c43291643f5fb0c63c4663916b3771272e03b285885e6cfd3769f, 145K) is reproducible.
reproducible icon INSTALL.ps (35236a7d151593060e5042d554401148beaff39eac052492aec8ac485fd2e7f4, 215K) is reproducible.
reproducible icon INSTALL.txt (af1f5c4be4eec5705411cc92db5596df6b332446cd599f9b2e1dbb7c5ad11c66, 136K) is reproducible.

commit fe40dde0910cb84cb09e19a1b8cd97e976294c1f
Author: joerg 
Date:   Wed May 16 20:21:39 2018 +0000

    Avoid complicated arithmetic involving NULL.