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!

58 (100.0%) out of 58 built NetBSD files were reproducible in our test setup ! These tests were last run on 2020-09-18 for version abb48d7ab with MKREPRO=yes and MKREPRO_TIMESTAMP=1600422830 and were compared using diffoscope 160.

variation first build second build hostname osuosl-build169-amd64 or osuosl-build170-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. kernel version, modified using /usr/bin/linux64 --uname-2.6 Linux 4.19.0-10-amd64 Linux 2.6.79-10-amd64 umask 0022 0002 CPU type Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz same for both builds /bin/sh is not yet varied between rebuilds of NetBSD. year, month, date today (2020-09-18) 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.

Reproducible artifacts for amd64 binary/kernel/netbsd-GENERIC.gz (942d6df8a04d9d80591cea517c9fd6c9dedadbe7353407e0d39c93177a3db46c, 9917K) is reproducible. binary/kernel/netbsd-GENERIC_KASLR.gz (0abde236a8b5564583ad31360926396273604b4fa977a55dc91e0cdd1b4fe7b8, 10812K) is reproducible. binary/kernel/netbsd-GENERIC.symbols.gz (79bf11e20ff0691389abfa54e8506d19480f9ee34aa7181bb688393d7b98eef9, 464K) is reproducible. binary/kernel/netbsd-INSTALL.gz (ee309d30ea683aca52df25d5f178487097617e2943c1da7a2b68bceda4c8da7e, 8320K) is reproducible. binary/kernel/netbsd-INSTALL.symbols.gz (c082569bc9013ce7e4cbee4f045aa766be6b317477d7849e2a170baa47309a9e, 356K) is reproducible. binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz (45a73d64dcf61e7cac51152e7f5c844c55c0a98c7a0f7e89272b01f7658ce318, 3995K) is reproducible. binary/kernel/netbsd-XEN3_DOM0.gz (9c0f4777b18a499659cb34410ead484071c07dbbcc48af4b78fa28f475aa9dd0, 6060K) is reproducible. binary/kernel/netbsd-XEN3_DOMU.gz (73af1b97f4b53385e42a376f63403413d2142ceba5a7a2be3610214a2feb6cd5, 2672K) is reproducible. binary/sets/base.tar.xz (6582790270ac9dbf35f6b380f4de905de47f28b25859d6463a2ad1972f6bc2c2, 40M) is reproducible. binary/sets/comp.tar.xz (13fb53154d52a75bb92865458e39f8277772e2e7b15f30634b98a5be75068ff0, 61M) is reproducible. binary/sets/etc.tar.xz (6480fbc93d4035ba16cc0b9923ffb6ffa00edee813fa8816626222259f712392, 470K) is reproducible. binary/sets/games.tar.xz (bbb8ae054fc09d5653f21a8be59719dce94b9ce69ccac794510476689ce9f825, 2422K) is reproducible. binary/sets/kern-GENERIC_KASLR.tar.xz (3cdd331a454ea897085a514948e9ff01236200afd2e5af95dd2b70241d9d1a94, 8188K) is reproducible. binary/sets/kern-GENERIC.tar.xz (c6d72b4a63eb87a5b31bba65f291929d34aa0fa32c81cb6a32f689110bbdebc5, 7941K) is reproducible. binary/sets/kern-XEN3_DOM0.tar.xz (47c2993647a1ba32a492c5076b6744309dfb41660a5f7591798259dc4bba4c81, 4774K) is reproducible. binary/sets/kern-XEN3_DOMU.tar.xz (70757c3df933b78ecf177607009cd28f56255ce0bb98cf27adc5856a74e797a4, 2166K) is reproducible. binary/sets/man.tar.xz (dc228a59fb96de3c2561fec674f669842b7dcbe911a710c31d259b4eea82e35c, 7228K) is reproducible. binary/sets/misc.tar.xz (ff4108e880e802291f9c7f00309c37f54f53e2cdf6adf77cc6288313ea27b589, 4021K) is reproducible. binary/sets/modules.tar.xz (4aaf778f3cb340cefa7a474d82e43c33fb7076b5412eb7f10d272b79d323e9c5, 8919K) is reproducible. binary/sets/rescue.tar.xz (adbcde9358a64c1f058e2682ea87689375dff1ef2b0b72ce176fce5adb9c1018, 2789K) is reproducible. binary/sets/tests.tar.xz (19d57b69e4acd59108dd15d855f611b534359855e9b1f44a219220993a208120, 9984K) is reproducible. binary/sets/text.tar.xz (9985e0a354a3ce0ad602ee59213a8d2694a079a81f64fb8d2c4001a698a5371b, 1853K) is reproducible. installation/cdrom/boot-com.iso (5d4aa488985479572e430780aa3fb83d5a011dc3090e5ed87719056b59ccf7ee, 207M) is reproducible. installation/cdrom/boot.iso (6186b089041164126155020ea08e3ad8d84df766ed0e3da01c90d1c4066d7960, 207M) is reproducible. installation/miniroot/cgdroot.kmod (efc8fa44319d0239ab2edf83025fb89de20477975960dbd89b76e8a849379c8d, 1156K) is reproducible. installation/miniroot/miniroot.kmod (36af3eec79f73afb7649e2449578d04e7a023d84cd96c6c10d019ea0dc694787, 1324K) is reproducible. installation/misc/pxeboot_ia32.bin (6c3a8ff08c728f2d5498f6c7bd482376b763eb3fecc652cf960d13d178ad427d, 72K) is reproducible. INSTALL.html (4c3df20911e8ff9ca7c2b0a1becd1ef2341af006d6b813b4eea1b6c3f50a10fa, 79K) is reproducible. INSTALL.more (5ce4e82bce153e4f73a66d99c9c42f2a7b6b2c7caea39156b9a6325d6eb41eaf, 76K) is reproducible. INSTALL.ps (dd432f6e5adf32f93e89076b458d9dba7f8dfcf45224dcb517020f8aedb31042, 128K) is reproducible. INSTALL.txt (54e5e7de88b236b9b680d0237d7d4d30d78dd2ecc0ba915bddc0bdc359775c08, 76K) is reproducible.

Reproducible artifacts for sparc64 binary/kernel/netbsd-GENERIC.gz (20928a3bd0a13fe6a44f4a0054849602074d1be87a99aa99a1b44481ee61071b, 5794K) is reproducible. binary/kernel/netbsd-GENERIC.UP.gz (668a679c8a7427df47dfbbac1e1d1e49ef21ecf2fef1fd5d458a5f1e9bf2cff7, 5775K) is reproducible. binary/kernel/netbsd-INSTALL.gz (7219a54147be94d74b1fa4659acdae411761a888b35ed08c28f4a2de2cf3da19, 6688K) is reproducible. binary/kernel/netbsd-INSTALL.symbols.gz (f7ec04a461a9b37258417eb4a7629e0d5c8e4e9a9e3d803230f691ba5d427575, 271K) is reproducible. binary/sets/base.tar.xz (ba0f9dfde258dee06f7776fd980e223f8516ffab1f2b62580c2301921eacee7f, 36M) is reproducible. binary/sets/comp.tar.xz (b0c087e5fd0f5e7662711657180f6f07c84cd720021294ec7a1ccb3f55b820dd, 50M) is reproducible. binary/sets/etc.tar.xz (792ba718d6ffd58f10f9bab70fcc6edcdeca4ca83a40f5258fddb186bcae71d0, 470K) is reproducible. binary/sets/games.tar.xz (f30a5058d7eed6fb3a310a567475426eb7e3d075012fe8a62a19ed49822884fe, 2425K) is reproducible. binary/sets/kern-GENERIC.tar.xz (f3dcfa9490a9fe9e9cd3111a63226f63711a1480b52127cc84ae309a37c74971, 4152K) is reproducible. binary/sets/kern-GENERIC.UP.tar.xz (f2d7279e8f02e7c8ad524731c2c38ca62fd6d089fb3a0ab15cdf2f8fa4cd53a5, 4141K) is reproducible. binary/sets/man.tar.xz (a415ad6c81e155e67c7934fe22b24030999e5d8be17190f9ba396cba30e1cc4c, 7207K) is reproducible. binary/sets/misc.tar.xz (ff4108e880e802291f9c7f00309c37f54f53e2cdf6adf77cc6288313ea27b589, 4021K) is reproducible. binary/sets/modules.tar.xz (5be10cf09c824713626e3dae2a46c730c13222c1683ec0c9d933fb2c4dbf4519, 2324K) is reproducible. binary/sets/rescue.tar.xz (2b5b514d307007206b130b3338ac0758de4387a615b955e16c7976f2e7ec155a, 2671K) is reproducible. binary/sets/tests.tar.xz (264c4d52de060adbda81d727501f9ce8bc0c9cb4218ca9844a19b8a1e059a1f0, 9055K) is reproducible. binary/sets/text.tar.xz (451498600110fe5402a9a0e93b372a2dbc9f8ed6284685fc3bddd08205fa5c17, 1799K) is reproducible. installation/miniroot/miniroot.fs.gz (978eb8ab251f56cbb0c58d3b5a05a6728cfc74a2f28f65ba7c50e3aca0d363d2, 7811K) is reproducible. installation/misc/bootblk (99b37fbde6cf6d795adf645a7f820eacc7a7f36e4c30eb2d5315b0ff113af74a, 7K) is reproducible. installation/misc/boot.fs.gz (560418b4c409c93e24f88994429d217ae48218b68af7b6bacc6f17db72d03426, 58K) is reproducible. installation/misc/installboot (441c38e2843b5038a430ed1a2f4dadb8d6ca9abb9da442e2275e6c33a0434e9b, 139K) is reproducible. installation/misc/instfs.tgz (1ae0959e5c3922559eb6d52233be7f63b676ec11f39d9cf06551ac8ddeedae81, 2029K) is reproducible. installation/misc/ofwboot (b31d42ab0011b5b264aa21a048051da42ef8098a07bc9344b21e6d806b805a83, 120K) is reproducible. installation/netboot/ofwboot.net (b31d42ab0011b5b264aa21a048051da42ef8098a07bc9344b21e6d806b805a83, 120K) is reproducible. INSTALL.html (055491e57be5100e169e35710b15e704a4a5f2123f0023910c7ee0df2cfff57e, 124K) is reproducible. INSTALL.more (9ed56fccee8eddff0e8f43dbd91ceb44212b1b6bb39f13bb78796b7516ecbe33, 119K) is reproducible. INSTALL.ps (a79d199ceed178200764a9b875cc2efee45350fa819c1d3467e6fcfb63b890f1, 192K) is reproducible. INSTALL.txt (eedf7d5b641e2b107e2338bdd6c227061c684ba99d51231c653de2591509d175, 117K) is reproducible.