From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: bug#33285: Installing, then removing, a package yields a different profile Date: Mon, 05 Nov 2018 22:25:46 -0800 Message-ID: <8736seyb6d.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]:59133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJupO-0003n4-5j for bug-guix@gnu.org; Tue, 06 Nov 2018 01:27:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJupL-0007CR-1m for bug-guix@gnu.org; Tue, 06 Nov 2018 01:27:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJupK-0007Bx-U6 for bug-guix@gnu.org; Tue, 06 Nov 2018 01:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJupK-00027j-Au for bug-guix@gnu.org; Tue, 06 Nov 2018 01:27:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJuoE-0003jy-RT for bug-guix@gnu.org; Tue, 06 Nov 2018 01:25:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJuoB-0005sZ-NY for bug-guix@gnu.org; Tue, 06 Nov 2018 01:25:54 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:45653) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJuoB-0005oF-H9 for bug-guix@gnu.org; Tue, 06 Nov 2018 01:25:51 -0500 Received: by mail-pf1-x435.google.com with SMTP id p17-v6so5233902pfj.12 for ; Mon, 05 Nov 2018 22:25:50 -0800 (PST) Received: from garuda.local (c-73-53-106-26.hsd1.wa.comcast.net. [73.53.106.26]) by smtp.gmail.com with ESMTPSA id 18sm10282583pgl.50.2018.11.05.22.25.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Nov 2018 22:25:47 -0800 (PST) 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: 33285@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I've noticed that if I do the following... guix package -p .guix-profile -i hello guix package -p .guix-profile -i coreutils guix package -p .guix-profile -r coreutils ...I get profile generations like the following: .guix-profile-1-link -> /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profi= le .guix-profile-2-link -> /gnu/store/m6cwnnxcccnd8bga52jxn74vm67n7ry1-profi= le .guix-profile-3-link -> /gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profi= le However, the 1st and 3rd generations are practically the same: =2D-8<---------------cut here---------------start------------->8--- $ diff -r /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile /gnu/store/qf= pmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile diff -r /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile/etc/profile /gn= u/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile/etc/profile 11c11 < export PATH=3D"${GUIX_PROFILE:-/gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8= p-profile}/bin${PATH:+:}$PATH" =2D-- > export PATH=3D"${GUIX_PROFILE:-/gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dc= p-profile}/bin${PATH:+:}$PATH" [1] marusich@garuda.local:/tmp/tmp.ZOTdkBr4rD $=20 =2D-8<---------------cut here---------------end--------------->8--- Now, this isn't really a problem, since it isn't wasting space, and it doesn't take long to build. It's more of a curiosity. Why is it that profile generations 1 and 3 don't both point to the same profile in the store? Is this expected behavior? I wasn't sure what would happen when I tried this. I had guessed (incorrectly) that generation 3 would point to the same profile that had been built for generation 1, so I was a little surprised by this. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlvhM+oACgkQ3UCaFdgi Rp2UMw/9EPDUt1Re1u36mbZ8VR07jSHzeO6jS0UzV7sEWYNOdNPVU0Nhwh+lGutc Vf7B0Gd8kmwUI53zvB5guL84rafm2pCclGHJRkV0XTUU23dKNay2zfU3qa2FnPgV P2jDg8A8DRT0txMNmCodr5gnq5fibNZeAxZxpYedT/xeUMJsKP2tXgbegfjRJjSZ 7aJFZHJaRvw9PnWICPAWKCd2owtvA9VwU48Be/3EkQl1Jfw4Hz2DUyr2+nEERV8A K7dA3+JNIAjTUHpEBhXfgdDx0R5AIuWHsLFeBugLTROtvi329c1WnpcSMwipyr/r j6QY81Yz9DMf00NrrheCOcno5ZfGlkb0QBSRqyiRdJXPb9pFBRfW3TdNwyTp6bRM XcH9wz+8ggEQKRqwhzJXsSADNyh1MWLZrBzN531Z/e7DRREz+hSzOj0J4s0bmp7O Ml0RjX8eLTg67/uVeKaxVLR+thgoS/nCPPlZbvHSHRWppoVmOzrIv+3Gk/CdCJuo DAsQItLNPQMgrv6CipFxh21b+YTYVzEeyNQWFZnT/WGELd4nCJ8LEPchX73Qlqr8 jGXGbOrehGG0Rdet6a1awVjeNnunDgnqIX5NU7QgOdkaXWfRTXhl829tOnAfD97Z mjuKx0sF8x0UeCAj09EDOE3aBvduhpg+gQf8KE1MJlaVIbt0S2Q= =LwAt -----END PGP SIGNATURE----- --=-=-=--