From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KNnsIJeudGMJPwAAbAwnHQ (envelope-from ) for ; Wed, 16 Nov 2022 10:34:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UIisIJeudGMQ5wAAauVa8A (envelope-from ) for ; Wed, 16 Nov 2022 10:34:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0253D398D9 for ; Wed, 16 Nov 2022 10:34:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovEo0-0005GB-55; Wed, 16 Nov 2022 04:34:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovEny-0005FQ-MZ for bug-guix@gnu.org; Wed, 16 Nov 2022 04:34:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovEny-00004w-DW for bug-guix@gnu.org; Wed, 16 Nov 2022 04:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovEny-0006X3-9m for bug-guix@gnu.org; Wed, 16 Nov 2022 04:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59278: how gcc-toolchain can depends a package who doesn't exists? Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 16 Nov 2022 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59278 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: bbb ee Cc: 59278@debbugs.gnu.org Received: via spool by 59278-submit@debbugs.gnu.org id=B59278.166859121625055 (code B ref 59278); Wed, 16 Nov 2022 09:34:02 +0000 Received: (at 59278) by debbugs.gnu.org; 16 Nov 2022 09:33:36 +0000 Received: from localhost ([127.0.0.1]:56097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovEnX-0006W1-VS for submit@debbugs.gnu.org; Wed, 16 Nov 2022 04:33:36 -0500 Received: from mail-wm1-f41.google.com ([209.85.128.41]:38879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovEnR-0006VI-7m for 59278@debbugs.gnu.org; Wed, 16 Nov 2022 04:33:32 -0500 Received: by mail-wm1-f41.google.com with SMTP id i186-20020a1c3bc3000000b003cfe29a5733so1141549wma.3 for <59278@debbugs.gnu.org>; Wed, 16 Nov 2022 01:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=zMjfbuu/P+XOwdAtvW2IdudvRGR44mFNZAgEQM0CkXQ=; b=SyU8qswpOwKogyT7GALpM+ICSQx6hPKuLH67F9D6BK3vsPUr+2C4aVSXfGJB/rsmwc vN269ABVgjiK3mL/L4bURYwhLRk3FylFEwNAPVfBaYiCRkrdQ6reaFY+qXF2gkN+lOkH 5BQg2CVPVQJVBDCwRK5F86Q04+4RQeKi9cH3Wk4BSl+H9CqFZN8FgTP36F2gnQvt/34a 0Tlbs4M/REDZRsJEXOe4V6qIVJ3MLVJv+P9vKQ3stodnBDQNT4los3j6qO7i2Res6+bJ 85X3bHOO94S0urWlpr26sR3+mIxS6uIL5o20XKnNrHBPODA1RZ9tFJYd46H3v4LNJApr 5ECw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zMjfbuu/P+XOwdAtvW2IdudvRGR44mFNZAgEQM0CkXQ=; b=Kj7CxSz8Bujat3isFD1TYEW59+LDZowJIA1s4QxMzwReM88vrsqd+8sbPAhf7m6OtV krvlqw+XqRpiVFbaCXgujRTixACCaQwVjY+L/guWMUl2vI52r8hCsMycMnnXvUax/g3b IEEqb/mfOcFt0cD5zRwRsCKCIcti4RT72gKqfn2aJapXLw5Vf1yNsdScyV56MDOMNPsP EHf3SrZwyZjpPC0j2oeG9G+ya3oq/QVLPi/IFa4Qkk7zCpFbrWxT55MZU43athkeRNCt CrOO8+xe4S4jYosyCkp8WI7w1SFI8p42HdHsEXmyGkOoFuJOqCY4HGanxzU1QHvscI8g J/BA== X-Gm-Message-State: ANoB5plw0d9ifToR7pnxW7Jxw/HzekStTGpYj6s+BY8ox0XCzisJzH0i eIv7NAYW7SmCFhL57TlYF/EdZ8NB9gE= X-Google-Smtp-Source: AA0mqf72toH4YAxbp6jPKTSsGlLWi3HauMvM1aw5RD3qCXCeXpBQwRIECWuO2lrBbbATMPzh7wqSdw== X-Received: by 2002:a05:600c:1e8c:b0:3cf:8aa0:cbec with SMTP id be12-20020a05600c1e8c00b003cf8aa0cbecmr1463248wmb.161.1668591203384; Wed, 16 Nov 2022 01:33:23 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id k5-20020adff5c5000000b0022e344a63c7sm14541643wrp.92.2022.11.16.01.33.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 01:33:22 -0800 (PST) From: zimoun In-Reply-To: References: <864jv0k3r9.fsf@gmail.com> Date: Wed, 16 Nov 2022 09:53:26 +0100 Message-ID: <87h6yz46wp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668591255; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zMjfbuu/P+XOwdAtvW2IdudvRGR44mFNZAgEQM0CkXQ=; b=Q2tA7II/dF5GTDU9Ts7iF4Aaxu1JOteEet+3CUyNWl03970/F9fy6uVBTYjpKSgmrwbnJ/ Ey3zngn4IVlT6Uri0USfcFLHxt/jFt6yFNT19Un/wYPJ2P4jAT4+0IxNoKkEcJJsYltZLN PRm24xZELNLDotofHW0lCarsuI051DXzPkHyExS3LwfuhpT+eYo1/t943KtFNZXvENVQ/7 xIpZ4Hh0U+k84o3zRqjLDZnQCC1GbnzeCoPJ3PY/Iopo0eDLmoOoWVXEbqpXufOmfsfxoE bLhiEvc4DU7QMHsdDkNHlvvkuDdiiY5D+M4TbzbtKycpExprglF9Y7CpHkGSOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668591255; a=rsa-sha256; cv=none; b=TFsyv/H29KQJbko8QzRsf2TP6/Boq3ZeAsqhK5EZadgc2PXE21bTKVpiZCb0MWt5Nr+8sn kYHErejPdEedlCthrVq/L9bhWL/NEz2CZkeNvSl8Yp7iIQ5E0Sg+jLFtsjFyYOxtfoR6v/ Y3jJMBFYWlSNnF968d0y5ra3A7zdji3Q7CSdCK9CakULnkuAQRcC+2fWFMovRnqLOZPtCh jeIUmUqyvYPxPNgESP7zwvbuiBNc8ONuCDKrrP5Yjgrty9WhW59eWKEvx9LdN0RR5V9kPz cyAnxZ+eZYixosmNMKwKtGita50zncwhFMER1bmhtbm0oeCR/rf+Fjs9VJrx8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SyU8qswp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SyU8qswp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0253D398D9 X-Spam-Score: 6.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: fE6F6Bv4wc/P Hi, On Tue, 15 Nov 2022 at 22:42, bbb ee wrote: > It is just a little confusing for newcomers to guix. If we really want to > improve something, I think that could be to give a more rigorous > specification of the guix command: I agree that the manual does not speak about the concept of =E2=80=99hidden-package=E2=80=99, if I read correctly. A note would be wel= come, IMHO. However, the commit you are referring is from 2020: c81457a5883ea43950eb2ecdcbb58a5b144bcd11 Author: Ludovic Court=C3=A8s AuthorDate: Fri May 8 16:34:58 2020 +0200 Commit: Ludovic Court=C3=A8s CommitDate: Fri May 8 16:34:58 2020 +0200 gnu: gcc-toolchain: Add 10.1.0. * gnu/packages/commencement.scm (gcc-toolchain-10): New variable. 1 file changed, 3 insertions(+) gnu/packages/commencement.scm | 3 +++ and many things have been improved since. ;-) For instance, using 00ff6f7 (from ~Oct 2022), it reads, --8<---------------cut here---------------start------------->8--- $ guix search gcc | recsel -p name,version | head -30 name: gcc version: 12.2.0 name: gcc version: 11.3.0 name: gcc version: 10.3.0 name: gcc version: 9.5.0 name: gcc version: 8.5.0 name: gcc version: 7.5.0 name: gcc version: 2.95.3 name: gcc-toolchain version: 12.2.0 name: gcc-toolchain version: 11.3.0 name: gcc-toolchain version: 10.3.0 --8<---------------cut here---------------end--------------->8--- Wait, contrary to what I said, the packages are not hidden when they should be! For example, gcc@4m @5 and @6 are not displayed but @7 is. --8<---------------cut here---------------start------------->8--- $ guix show gcc@6 guix show: error: gcc@6: package not found $ guix show gcc@7 name: gcc version: 7.5.0 outputs: + lib: shared libraries + debug: debug information + out: everything else systems: x86_64-linux i686-linux dependencies: gmp@6.2.1 isl@0.23 libelf@0.8.13 libstdc++-headers@10.3.0 mpc= @1.2.1 mpfr@4.1.0 perl@5.34.0 texinfo@6.7 zlib@1.2.11 location: gnu/packages/gcc.scm:601:2 homepage: https://gcc.gnu.org/ license: GPL 3+ synopsis: GNU Compiler Collection=20=20 description: GCC is the GNU Compiler Collection. It provides compiler fron= t-ends for several languages, including C, C++, Objective-C, Fortran, Ada, = and + Go. It also includes runtime support libraries for these languages. --8<---------------cut here---------------end--------------->8--- It is because the =E2=80=99properties=E2=80=99 field of gcc@7 is rewritten, --8<---------------cut here---------------start------------->8--- (define-public gcc-7 (package (inherit gcc-6) (version "7.5.0") [...] (properties `((compiler-cpu-architectures ("aarch64" ,@%gcc-7.5-aarch64-micro-architectures) ("armhf" ,@%gcc-7.5-armhf-micro-architectures) ("x86_64" ,@%gcc-7.5-x86_64-micro-architectures)))))) --8<---------------cut here---------------end--------------->8--- and thus, it looses =E2=80=99hidden=E2=80=99, as shown here: --8<---------------cut here---------------start------------->8--- $ guix repl GNU Guile 3.0.8 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> ,use(gnu packages gcc) scheme@(guix-user)> (package-properties gcc-6) $1 =3D ((hidden? . #t) (gcc-libc . #f)) scheme@(guix-user)> (package-properties gcc-7) $2 =3D ((compiler-cpu-architectures ("aarch64" "armv8-a" "armv8.1-a" "armv8= .2-a" "armv8.3-a") ("armhf" "armv7" "armv7-a" "armv7-m" "armv7-r" "armv7e-m= " "armv7ve" "armv8-a" "armv8-a+crc" "armv8.1-a" "armv8.1-a+crc" "armv8-m.ba= se" "armv8-m.main" "armv8-m.main+dsp" "iwmmxt" "iwmmxt2") ("x86_64" "core2"= "nehalem" "westmere" "sandybridge" "ivybridge" "haswell" "broadwell" "skyl= ake" "bonnell" "silvermont" "knl" "skylake-avx512" "k8" "k8-sse3" "barcelon= a" "bdver1" "bdver2" "bdver3" "bdver4" "znver1" "btver1" "btver2" "geode"))) scheme@(guix-user)> --8<---------------cut here---------------end--------------->8--- Thanks, there is indeed a bug. ;-) Back to the initial report, what could be improved is the display of the field =E2=80=99dependencies=E2=80=99; distinguishing regular packages to hi= dden ones. And maybe instead of a plain error =E2=80=9Cpackage not found=E2=80=9D, the= command =E2=80=9Cguix show=E2=80=9D could error which =E2=80=9Cnon installable pack= age=E2=80=9D or something like that. Cheers, simon