From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eIMeHX7x5F6MWAAA0tVLHw (envelope-from ) for ; Sat, 13 Jun 2020 15:32:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uOYBGX7x5F4ySAAA1q6Kng (envelope-from ) for ; Sat, 13 Jun 2020 15:32:14 +0000 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 C834894030A for ; Sat, 13 Jun 2020 15:32:13 +0000 (UTC) Received: from localhost ([::1]:38342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jk88i-00079N-Hp for larch@yhetil.org; Sat, 13 Jun 2020 11:32:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jk886-00078P-4L for guix-devel@gnu.org; Sat, 13 Jun 2020 11:31:35 -0400 Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]:37338) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jk883-0004SO-Se for guix-devel@gnu.org; Sat, 13 Jun 2020 11:31:33 -0400 Received: by mail-ua1-x92f.google.com with SMTP id v25so4217752uau.4 for ; Sat, 13 Jun 2020 08:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ggGML3F8tRhiLwa9LE01VM6fN4nE3a0+CdZRQO5zMyU=; b=RLjMpfQwwXqzyvq+vqT7TyW1t3x840F48wwkqDZaSjARaujEr7jabQGBsl1F5GYVDi qCTyeAkxy5Xjq2YbZcVDOna+h1XtpYOBibI9mB7ifpVCwpkAdJZqtcI/muNZHz/uXH4D 64gVyBDAZHdOWnzsrNweczjhK2tO5jdJk3Y2TTmhDkJhf5wUhyqg0RJLO1rUbSpBPjUJ WFPmnt7564DOo2yVy7+ryzhj96F/Ief4uqHxkrMgFh4eFGju0bu3TNfA4tzQgWUfr4ue QoYuJTU9SXhCN0brL5gaYwUUMBhueY2uiwdBl2UhTx3Q+z+JS09atQW+JUwBJ9Ri6f0o EX8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ggGML3F8tRhiLwa9LE01VM6fN4nE3a0+CdZRQO5zMyU=; b=UnkyC+TE148kUfwQZpGdEBa9J+3/jTtCfTbNrIARcVH13kpnWMLrV37NtpCUs93uLE zlBTT4bk92OrPyOlSYSlQRAOq6wwZWf/1czqZBQtyF++eiSCJ0znSUr9CC2nyXMKBdKc 36g9qg0L04ewFDHmBECSPs2dwt0GI/gwUA+pU4fDG/a+xoR9HcH0xkVPA18R0/noX7bi C0cVJG9nV2ikk5AWIyvY9N3nNyJNefrkgOlMre8N8moJbi3ZS6eLtLskm6TKzdudMhhe gs0Y4fIIkSaJbgSrfHnAyfG/4AJ/qUYXll5mQVy9i7l45PATWiVGmcH9EIxVLE95tWJR kfyw== X-Gm-Message-State: AOAM5311+YTKV0tSASLOcx2ZKjstHcKFQxsLyO2jxY7LeBob8dvJ+ES7 LIuiSwHxWHwmiYZ0ddOPBs94g+ZEmJNVR83Db8f3uevN X-Google-Smtp-Source: ABdhPJzeeSJO+idifQ8xvPQFtnMipboWdcK9oc1DKSUj5MRGXQsY4v2WLem+rCwmzA4iruHKCZA3xqcukqxU9Wcym44= X-Received: by 2002:ab0:6012:: with SMTP id j18mr14421566ual.69.1592062285184; Sat, 13 Jun 2020 08:31:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Josh Marshall Date: Sat, 13 Jun 2020 11:31:13 -0400 Message-ID: Subject: Re: guile-readline bug -- readline module not available To: Jack Hill Content-Type: multipart/alternative; boundary="000000000000f8040405a7f8e222" Received-SPF: pass client-ip=2607:f8b0:4864:20::92f; envelope-from=joshua.r.marshall.1991@gmail.com; helo=mail-ua1-x92f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RLjMpfQw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: QAkJD8ngaskE --000000000000f8040405a7f8e222 Content-Type: text/plain; charset="UTF-8" The thing is that I want those dependencies in order to illustrate the bug that the readline module for guile is not available. On Sat, Jun 13, 2020, 00:11 Jack Hill wrote: > On Fri, 12 Jun 2020, Josh Marshall wrote: > > > Hello all, > > > > I ran into an issue where the readline module isn't available for the > > guile repl after installing `guile-readline`. It can be replicated > > via: > > > > `echo "(use-modules (ice-9 readline))" | guix environment --pure guile > > guile-readline -- guile` > > > > So with that, I'm pretty sure it isn't just me. > > I think you actually want to be using a different guix environment > command. > > guix environment --pure --ad-hoc guile guile-readline > > should get you what you want. The difference is that without --ad-hoc, > what you're asking for is an environment with all the dependencies of > guile and guile-readline. This is useful, for instance, if you want to > work on those packages. In this case, guile is available because > guile-readline depends on it, but nothing depends on guile-readline, so it > is not in the environment. > > With --ad-hoc, you specify the the packages you want in the environment > explicitly. > > See the manual [0] for more information and more advanced usage of > environment. > > [0] > https://guix.gnu.org/manual/en/html_node/Invoking-guix-environment.html > > This isn't the first time the --ad-hoc has caused confusion. I tend to use > that option more often than not. There was previous discussion [1] about > making environment more friendly to use interactively without breaking > compatibility, but more work is still needed on that front. > > [1] https://lists.gnu.org/archive/html/guix-devel/2019-12/msg00126.html > > Hope that helps, > Jack > --000000000000f8040405a7f8e222 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The thing is that I want those dependencies in order to i= llustrate the bug that the readline module for guile is not available.=C2= =A0

On Sat, Jun 13, 2020, 00:11 Jack Hill <jackhill@jackhill.us> wrote:
On Fri, 12 Jun 2020, Josh Marshall wrote:

> Hello all,
>
> I ran into an issue where the readline module isn't available for = the
> guile repl after installing `guile-readline`.=C2=A0 It can be replicat= ed
> via:
>
> `echo "(use-modules (ice-9 readline))" | guix environment --= pure guile
> guile-readline -- guile`
>
> So with that, I'm pretty sure it isn't just me.

I think you actually want to be using a different guix environment
command.

guix environment --pure --ad-hoc guile guile-readline

should get you what you want. The difference is that without --ad-hoc,
what you're asking for is an environment with all the dependencies of <= br> guile and guile-readline. This is useful, for instance, if you want to
work on those packages. In this case, guile is available because
guile-readline depends on it, but nothing depends on guile-readline, so it =
is not in the environment.

With --ad-hoc, you specify the the packages you want in the environment explicitly.

See the manual [0] for more information and more advanced usage of
environment.

[0] https://guix.g= nu.org/manual/en/html_node/Invoking-guix-environment.html

This isn't the first time the --ad-hoc has caused confusion. I tend to = use
that option more often than not. There was previous discussion [1] about making environment more friendly to use interactively without breaking
compatibility, but more work is still needed on that front.

[1] https://lists.gnu.= org/archive/html/guix-devel/2019-12/msg00126.html

Hope that helps,
Jack
--000000000000f8040405a7f8e222--