From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 15 17:04:58 2022 Received: (at 59278) by debbugs.gnu.org; 15 Nov 2022 22:04:58 +0000 Received: from localhost ([127.0.0.1]:55446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ov438-0003iy-1a for submit@debbugs.gnu.org; Tue, 15 Nov 2022 17:04:58 -0500 Received: from mail-ot1-f45.google.com ([209.85.210.45]:38503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ov434-0003ik-7Z for 59278@debbugs.gnu.org; Tue, 15 Nov 2022 17:04:56 -0500 Received: by mail-ot1-f45.google.com with SMTP id w26-20020a056830061a00b0066c320f5b49so9359738oti.5 for <59278@debbugs.gnu.org>; Tue, 15 Nov 2022 14:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/vxu1TMdMgZPULlqgvt0R4BWVQTqAjGtM3BpOZNaQyE=; b=kHjy1QLuozNIgt8Tq2gRrYd8Ys33pZ0dba+GGJLr4pfZPPWZydYG1ykRp8NhbGWz9p Qjky5pvgBGJ0Tcu0kX6yE3MKSPgDBqtT+QPKouqrYzgN5MpnC5m7fqa98Z1LKtqQ3j9b PLvsiKpPFNHzccw+XJ1TTbxvRIeUyo/oHhStji3dx/HqxJTb59p3MJ2BsHWHzqF7Qzlh cRyYbRfn++5iF9p/wyNynZs74dQfZohvXE9EV32NcvkSvPGhN75wx811Msdz8DF4e4SH xwP6lj0REvCwFaSuhoR6cd5kkwbkQaK1OSdPUA6zCYzamp4+PDg60W1zAlhHCNDLsOcr dgTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/vxu1TMdMgZPULlqgvt0R4BWVQTqAjGtM3BpOZNaQyE=; b=ttGikkPpeTBjmTT8W7mFVGcPcgD2EomGCTi+L1wQ5aVo9iOgTc7TC+v75dpjUO+6q+ jgUiNmFKXNaRkOBRF43tFzoKdjBdAf/Vt8gR1A3riyn85vy/GXP3nSOjFNqAJvSfO/u6 Mq9vHUShdJ/tBpxb7+VP1u8ER5GL11/W7lAoFvAcJwLGA2q0aiuZtcd+51nzBXfhx0wa Tmdir/ltELaofcmPVh1wZXwwoeyp4uUL0MuYZ3SRe4PuLyjW2yiq+9+6V+tCaffamYgk RWBEeLesVffdqNm+Gsvi2NSPb5djlMze/LljhWVUtt+6C358686z7XNsO8qZ0D8GIYLH Vykg== X-Gm-Message-State: ANoB5pnFqsPR0bqiHSyPNk4rQoz/oH4RMzokYm8JUsoVgN410wtyxUOD dL2eZaJm45YXRuk7V2UPKnEft7v0JnEgGs93EbU= X-Google-Smtp-Source: AA0mqf7PuGrIXORCDHErmhmfumeBoV0zywm2wkXHYZpRvl92aLV4JwpjsCKio0CdmAUfq+oH/nbhSKJxXZ/gBxFYiVA= X-Received: by 2002:a05:6830:d13:b0:661:abab:aa4d with SMTP id bu19-20020a0568300d1300b00661ababaa4dmr9536688otb.382.1668549888590; Tue, 15 Nov 2022 14:04:48 -0800 (PST) MIME-Version: 1.0 References: <864jv0k3r9.fsf@gmail.com> In-Reply-To: <864jv0k3r9.fsf@gmail.com> From: bbb ee Date: Tue, 15 Nov 2022 23:04:36 +0100 Message-ID: Subject: Re: bug#59278: how gcc-toolchain can depends a package who doesn't exists? To: zimoun Content-Type: multipart/alternative; boundary="0000000000006648c105ed898b4e" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59278 Cc: 59278@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000006648c105ed898b4e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In the documentation, when it says "guix search" search matching package, if users don't find a package defined in .scm (hidden or no), users can consider it is a bug, because that doesn't match the behavior described in the specification (here, the manual and "guix search --help"). Le mar. 15 nov. 2022 =C3=A0 15:54, zimoun a =C3= =A9crit : > Hi, > > On Tue, 15 Nov 2022 at 00:53, bbb ee wrote: > > > in commit c81457, how gcc-toolchain can depends a package who doesn't > > exists? > > The package exists, it is =E2=80=99hidden=E2=80=99 =E2=80=93 it means not= accessible at the CLI > level. The =E2=80=99inherit=E2=80=99 copies, so gcc-11 is also hidden, f= or instance. > > --8<---------------cut here---------------start------------->8--- > (define-public gcc-4.7 > [...] > (hidden-package > (package > (name "gcc") > (version "4.7.4") > > (define-public gcc-4.8 > (package (inherit gcc-4.7) > (version "4.8.5") > > [...] > > (define-public gcc-11 > (package > (inherit gcc-8) > (version "11.3.0") > --8<---------------cut here---------------end--------------->8--- > > The package =E2=80=99gcc=E2=80=99 by itself is not barely useful because = you also need > linker etc. Well, you usually need a complete toolchain, named > gcc-toolchain. ;-) > > See manual: < > https://guix.gnu.org/manual/devel/en/guix.html#The-GCC-toolchain> > > > So this is not a bug and I miss how what could be improved. Closing? > > Cheers, > simon > --0000000000006648c105ed898b4e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In the documentation, when it says "guix search"= search matching package, if users don't find a package defined in .scm= (hidden or no), users can consider it is a bug, because that doesn't m= atch the behavior described in the specification (here, the manual and &quo= t;guix search --help").

Le=C2=A0mar. 15 nov. 2022 =C3=A0=C2=A015:54= , zimoun <zimon.toutoune@gma= il.com> a =C3=A9crit=C2=A0:
Hi,

On Tue, 15 Nov 2022 at 00:53, bbb ee <blasforr@gmail.com> wrote:

> in commit c81457, how gcc-toolchain can depends a package who doesn= 9;t
> exists?

The package exists, it is =E2=80=99hidden=E2=80=99 =E2=80=93 it means not a= ccessible at the CLI
level.=C2=A0 The =E2=80=99inherit=E2=80=99 copies, so gcc-11 is also hidden= , for instance.

--8<---------------cut here---------------start------------->8---
(define-public gcc-4.7
[...]
=C2=A0 =C2=A0 (hidden-package
=C2=A0 =C2=A0 =C2=A0(package
=C2=A0 =C2=A0 =C2=A0 =C2=A0(name "gcc")
=C2=A0 =C2=A0 =C2=A0 =C2=A0(version "4.7.4")

(define-public gcc-4.8
=C2=A0 (package (inherit gcc-4.7)
=C2=A0 =C2=A0 (version "4.8.5")

[...]

(define-public gcc-11
=C2=A0 (package
=C2=A0 =C2=A0(inherit gcc-8)
=C2=A0 =C2=A0(version "11.3.0")
--8<---------------cut here---------------end--------------->8---

The package =E2=80=99gcc=E2=80=99 by itself is not barely useful because yo= u also need
linker etc. Well, you usually need a complete toolchain, named
gcc-toolchain. ;-)

See manual: <https://guix.gnu.org= /manual/devel/en/guix.html#The-GCC-toolchain>


So this is not a bug and I miss how what could be improved.=C2=A0 Closing?<= br>
Cheers,
simon
--0000000000006648c105ed898b4e--