From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25016: Old build daemons lead to non-reproducible builds Date: Thu, 24 Nov 2016 14:09:50 +0100 Message-ID: <87d1hl6n35.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9tnt-0004lS-8I for bug-guix@gnu.org; Thu, 24 Nov 2016 08:11:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9tnq-0004cp-2r for bug-guix@gnu.org; Thu, 24 Nov 2016 08:11:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52833) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9tnp-0004ci-Vp for bug-guix@gnu.org; Thu, 24 Nov 2016 08:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c9tnp-0000fx-Qd for bug-guix@gnu.org; Thu, 24 Nov 2016 08:11:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9tmt-0004er-9f for bug-guix@gnu.org; Thu, 24 Nov 2016 08:10:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9tmk-0003ta-Iu for bug-guix@gnu.org; Thu, 24 Nov 2016 08:09:57 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: guix-sysadmin@gnu.org Cc: 25016@debbugs.gnu.org Hi! Old versions of guix-daemon would use /tmp/nix-build-=E2=80=A6 as the build directory name instead of /tmp/guix-build-=E2=80=A6 (commit 7a57c96a1024e6b74359ba561110f19f92b89b06), and versions prior to 0.11.0 could use a different directory prefix (.drv-0, .drv-1, etc.) whereas current versions systematically use .drv-0 (commit cb9601029ea164b86bdf997f7160d494c15d344b). However, some of our build machines run old daemons, which leads to discrepancies such has: --8<---------------cut here---------------start------------->8--- $ wget -O - https://mirror.hydra.gnu.org/nar/3kxg1wvc1dnw9bdnp61pfc6vy14v4i= kl-bash-4.4.0-include |bunzip2 |guix archive -x /tmp/foo [=E2=80=A6] $ diff -ruBb /gnu/store/3kxg1wvc1dnw9bdnp61pfc6vy14v4ikl-bash-4.4.0-include= /tmp/foo diff -ruBb /gnu/store/3kxg1wvc1dnw9bdnp61pfc6vy14v4ikl-bash-4.4.0-include/l= ib/bash/Makefile.inc /tmp/foo/lib/bash/Makefile.inc --- /gnu/store/3kxg1wvc1dnw9bdnp61pfc6vy14v4ikl-bash-4.4.0-include/lib/bash= /Makefile.inc 1970-01-01 01:00:01.000000000 +0100 +++ /tmp/foo/lib/bash/Makefile.inc 2016-11-24 14:00:26.449665970 +0100 @@ -38,7 +38,7 @@ headersdir =3D $(includedir)/$(PACKAGE_NAME) =20 topdir =3D ../.. -BUILD_DIR =3D /tmp/guix-build-bash-4.4.0.drv-0/bash-4.4 +BUILD_DIR =3D /tmp/nix-build-bash-4.4.0.drv-0/bash-4.4 srcdir =3D . --8<---------------cut here---------------end--------------->8--- This can lead to hash mismatches between what the narinfo claims and what the nar actually contains (due to caching), which annoys users. We should update all our build machines to a newer daemon. Ludo=E2=80=99.