From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#33285: Installing, then removing, a package yields a different profile Date: Tue, 06 Nov 2018 15:25:55 +0100 Message-ID: <87r2fyz3ik.fsf@gnu.org> References: <8736seyb6d.fsf@gmail.com> 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]:52064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK2Jq-0003Rj-UN for bug-guix@gnu.org; Tue, 06 Nov 2018 09:27:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK2Jp-0000gy-Vl for bug-guix@gnu.org; Tue, 06 Nov 2018 09:27:02 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60171) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gK2Jp-0000gu-RQ for bug-guix@gnu.org; Tue, 06 Nov 2018 09:27:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gK2Jp-0001IV-N0 for bug-guix@gnu.org; Tue, 06 Nov 2018 09:27:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8736seyb6d.fsf@gmail.com> (Chris Marusich's message of "Mon, 05 Nov 2018 22:25:46 -0800") 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: Chris Marusich Cc: 33285@debbugs.gnu.org Hi, Chris Marusich skribis: > 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-pro= file > .guix-profile-2-link -> /gnu/store/m6cwnnxcccnd8bga52jxn74vm67n7ry1-pro= file > .guix-profile-3-link -> /gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-pro= file > > However, the 1st and 3rd generations are practically the same: > > $ diff -r /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile /gnu/store/= qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile > diff -r /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile/etc/profile /= gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile/etc/profile > 11c11 > < export PATH=3D"${GUIX_PROFILE:-/gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3= r8p-profile}/bin${PATH:+:}$PATH" > --- >> export PATH=3D"${GUIX_PROFILE:-/gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70d= cp-profile}/bin${PATH:+:}$PATH" > [1] marusich@garuda.local:/tmp/tmp.ZOTdkBr4rD > $=20 > > 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? It=E2=80=99s not! Could you look at the derivers of these two profiles (use =E2=80=98guix gc --derivers=E2=80=99) and see what differs? Thanks, Ludo=E2=80=99.