From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#23874: duplicates in manifests are =?UTF-8?Q?=E2=80=9Cinstalled=E2=80=9D?= more than once Date: Thu, 30 Jun 2016 15:59:09 +0200 Message-ID: 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]:55312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcVk-0002XC-Mu for bug-guix@gnu.org; Thu, 30 Jun 2016 10:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIcVe-0007j7-Lt for bug-guix@gnu.org; Thu, 30 Jun 2016 10:00:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcVe-0007j3-J9 for bug-guix@gnu.org; Thu, 30 Jun 2016 10:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bIcVe-00082j-DC for bug-guix@gnu.org; Thu, 30 Jun 2016 10:00:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcV3-0001aa-Ow for bug-guix@gnu.org; Thu, 30 Jun 2016 09:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIcUx-0007c0-Ok for bug-guix@gnu.org; Thu, 30 Jun 2016 09:59:24 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:48528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcUx-0007bs-A2 for bug-guix@gnu.org; Thu, 30 Jun 2016 09:59:19 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 7FBF238109F for ; Thu, 30 Jun 2016 15:59:17 +0200 (CEST) Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ImrLlzjqi46c for ; Thu, 30 Jun 2016 15:59:11 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Thu, 30 Jun 2016 15:59:11 +0200 (CEST) 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: 23874@debbugs.gnu.org When there are duplicate references to package variables in a manifest, the same package will appear to be installed into the same profile multiple times. Here=E2=80=99s a manitest: ~~~~~~~~~~~~~~~~~~~~~~ (use-package-modules admin) ;; so stressed! (packages->manifest (list stress stress stress)) ~~~~~~~~~~~~~~~~~~~~~~ And here I=E2=80=99m instantiating it: ~~~~~~~~~~~~~~~~~~~~~~ guix package -p /tmp/test --manifest=3Dmanitest installing new manifest from 'manitest' with 3 entries substitute: updating list of substitutes from 'https://mirror.hydra.gnu.o= rg'... 100.0% substitute: updating list of substitutes from 'https://mirror.hydra.gnu.o= rg'... 100.0% substitute: updating list of substitutes from 'https://hydra.gnu.org'... = 100.0% The following derivations will be built: /gnu/store/1w51615has971qjwb9xxxvms8q99zr1n-profile.drv /gnu/store/jv7a1bm41gjgakb70nym65gp370dd4xs-ca-certificate-bundle.drv /gnu/store/1rgv811cqd4qk45y28lbzf8199m4zasv-info-dir.drv The following file will be downloaded: /gnu/store/m31bvg97q7zmd9bvbss81ilyka5gq2hf-stress-1.0.1 Found valid signature for /gnu/store/m31bvg97q7zmd9bvbss81ilyka5gq2hf-str= ess-1.0.1 >From https://mirror.hydra.gnu.org/nar/m31bvg97q7zmd9bvbss81ilyka5gq2hf-st= ress-1.0.1 Downloading m31bvg=E2=80=A6-stress-1.0.1 (29KiB installed)... stress-1.0.1 7.2MiB/s 00= :00 | 14KiB transferred 3 packages in profile The following environment variable definitions may be needed: export PATH=3D"/tmp/test/bin" rwurmus in guix: guix package -p /tmp/test -I stress 1.0.1 out /gnu/store/m31bvg97q7zmd9bvbss81ilyka5gq2hf-stress-1.0.1 stress 1.0.1 out /gnu/store/m31bvg97q7zmd9bvbss81ilyka5gq2hf-stress-1.0.1 stress 1.0.1 out /gnu/store/m31bvg97q7zmd9bvbss81ilyka5gq2hf-stress-1.0.1 rwurmus in guix: ~~~~~~~~~~~~~~~~~~~~~~ No conflicts are reported, so no harm is done, but seemingly having the very same package more than once in a profile might be confusing. Should Guix issue a warning when the same variable is referenced more than once (I don=E2=80=99t like this because there really is no problem),= or should Guix delete duplicates from the list before creating a profile generation?