From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: 'guix build' and garbage collection Date: Sat, 01 Apr 2017 18:06:30 -0700 Message-ID: <878tnjk489.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuTyd-0007vT-Bj for guix-devel@gnu.org; Sat, 01 Apr 2017 21:06:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuTya-0000gw-7f for guix-devel@gnu.org; Sat, 01 Apr 2017 21:06:43 -0400 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:35244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuTya-0000ej-1W for guix-devel@gnu.org; Sat, 01 Apr 2017 21:06:40 -0400 Received: by mail-io0-x230.google.com with SMTP id z13so58495383iof.2 for ; Sat, 01 Apr 2017 18:06:38 -0700 (PDT) Received: from garuda ([172.58.43.229]) by smtp.gmail.com with ESMTPSA id 17sm5542703ioq.45.2017.04.01.18.06.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Apr 2017 18:06:36 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I saw this in guix/scripts.build.scm: =2D-8<---------------cut here---------------start------------->8--- (and (build-derivations store drv mode) (for-each show-derivation-outputs drv) (for-each (cut register-root store <> <>) (map (lambda (drv) (map cdr (derivation->output-paths drv))) drv) roots)) =2D-8<---------------cut here---------------end--------------->8--- Here, we build the derivations, and then we add indirect GC roots. My question is: what guarantee is there that the output paths will not be garbage collected after we build the derivations but before we add the indirect GC roots? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAljgTpYACgkQ3UCaFdgi Rp2ArQ/+JMOFebZRdPK7cw139BiZrjUKWx6VTkgXDdpkagydkqLZ8kBqr749yp7R Ozje+PHvsUdSHlYiWWlzUBbqsFzwVSbHIBBu7hybHu8BTw7VqU1ONyX36tvGE21R 4FWIlafoq5wtMPPM9ybgWLnEg2VnYu7XAWbXRbiQBmkbZg+sguKHaNFXbwdapCNM Uxrigg3IA7axjJicTArshrxtrqmAg4tot4q6+ugX9VXWMgTK8n4XcqJUF+IMt+CL vZKCOHYG1Gp+WlIjRQhwYYYQ/qGdIMaMD7Eq1wju0EA1nPgOJ60DN3IvSYchB8AM C/vglTgevZVDvIIv21qavtYToQoc3B7Mgox+GCeMOqrWUkOd6Fet95PU5qAJqNF5 0LdH4uEnOqHL8wNoY1lq/Xdg4dw9ht2leouaNgFyS70eCFfJJBvkuMUcvxHSrtpP LJ275BT1VuBZEQLUcyI5JsFKSC7V3VJwo2z6KeEnD5ASZkXn0vAPEGsdhqrHcbCM fRuq7VNkaB7IDZ82fG0ffoPuiywmxxxusL1ik11SURmYoYigVEjQG1/x0cDiI+eO 3fYXpfx8TN3EyI8lAzi6LNbLJ4yrbfPRxnWuxL7au6dGCly6OAL0yeTJxD33hh4A Y/YGk8/ZGzUN/obiSSaRYnNGHdijMjcYzuxZVFg7a3KskjgDBk0= =ChT8 -----END PGP SIGNATURE----- --=-=-=--