GNU bug report logs - #64509
Guile packages should install versioned aliases for binaries (guile-X.Y, guild-X.Y, etc.)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: "Zack Weinberg" <zack@HIDDEN>; dated Fri, 7 Jul 2023 13:00:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 64509 <at> debbugs.gnu.org:


Received: (at 64509) by debbugs.gnu.org; 5 Sep 2023 19:59:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 05 15:59:52 2023
Received: from localhost ([127.0.0.1]:59484 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qdcDH-0005Rc-Vx
	for submit <at> debbugs.gnu.org; Tue, 05 Sep 2023 15:59:52 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:60295)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zack@HIDDEN>) id 1qdcDG-0005RL-1m
 for 64509 <at> debbugs.gnu.org; Tue, 05 Sep 2023 15:59:50 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 57E7D3200916;
 Tue,  5 Sep 2023 15:59:43 -0400 (EDT)
Received: from imap45 ([10.202.2.95])
 by compute1.internal (MEProxy); Tue, 05 Sep 2023 15:59:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h=
 cc:cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1693943982; x=1694030382; bh=bmUl8AjlV7JKEzKodxVkpGzd8yrfs5GP9mg
 //G4eBbI=; b=FXPBuYBwLOdux4/PmrrJg/M9Rf8fLFBfNwiDwzoGmXqetY46v0F
 3PUVWJE6KgUhcAbw5pl+9ZW5ZfjIEhr/hxP3LC4FawCLA+Otv+l4ZBK+b/cHd+CE
 C6Y/eQ39UJE7NirxrDLNDJaPFRsbPa0KScypJOsea+To/MYMxbeMEbmmC+4MTsR2
 Fo38SV77PtMNjUL7quZLrC71xEYBqdcJgeR3qwZcgP8QJg8EKJ/PgV3htdDcndKA
 oO3Bx/xn/k4bvnVEGnUiIE4+MgmlWe2k1+zTYyXq4qH4+OynFfKwMHmlxLmekUKG
 68BZ0lkR8L/DZXsQ+WAkaRjiHLSx9hCt5YA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1693943982; x=1694030382; bh=bmUl8AjlV7JKEzKodxVkpGzd8yrfs5GP9mg
 //G4eBbI=; b=oEey9yGK8JJjwcWHlyGjDT2vLfEW0hufvGvg1JlagiFP4dJba1L
 uPrrwjQ6Ns47fzeEDcAP6k/GLHqtRKUtwY/PerggKXz3jPdiuwgy5BrbiQqwuwgD
 /CBUiTUrKTv1h6Gx+iCYGk7K/OANRECzuu11TttEeDPzTfXmlmcYJMiceafL3AsR
 FZmO6IUjNqhJrBdrNlr6PYQ24YS1mosshPnviw6R6jsMXGrx9ScaMLNi+mP+jnQa
 lOMwfLTvr6IBESQXIfG/BDGLdGFpoJyhYsCUMRS/dAn7lVbyKOBTmJdHU7eJ+98C
 PnrhnROs1VYDrsv9qcXQAWP5oAkTHxiqErw==
X-ME-Sender: <xms:roj3ZJo5qhyidbd6nNBSopgEXTD8hdJno3sFpignpsaIOddYqT_yvw>
 <xme:roj3ZLr-KBJWriAvJ9FGKzqxnJ6nljY7MjytFnmeukmSphLL1jZoBVGW8buWjtQQI
 XeTpYPdlaP_p0y_1-k>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehuddguddvvdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf
 kggrtghkucghvghinhgsvghrghdfuceoiigrtghksehofihlfhholhhiohdrohhrgheqne
 cuggftrfgrthhtvghrnhepudeuieegheffkeeihfdtheeivdeuffetveethfdugfeutdeu
 iedttefgteeiieeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomhepiigrtghksehofihlfhholhhiohdrohhrgh
X-ME-Proxy: <xmx:roj3ZGPpJ6dHGnYr1bZ4VIzs87kzPCyfwHdYNOAOD4SeYzpI7R4uPQ>
 <xmx:roj3ZE691E1HKgb4MZOW0kK43lS9qg4o3yI9rJuNVEd-acANaYJ3MQ>
 <xmx:roj3ZI5y1KnSFh3tNveFc3m7Ot_V9YhoqNqCy9-t7Dl9wTLHm3quiQ>
 <xmx:roj3ZNivtbZ9V09y-rfBP20ogiqlakKPGv9jW0HxfmIdoK72tjDNAQ>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id 961FE272007B; Tue,  5 Sep 2023 15:59:42 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-711-g440737448e-fm-20230828.001-g44073744
Mime-Version: 1.0
Message-Id: <2b5e958b-e29b-4147-bedd-520ce1a50aa9@HIDDEN>
In-Reply-To: <87zg2kj16a.fsf@HIDDEN>
References: <c33108af-e7b3-4f95-9624-9a702ade8f34@HIDDEN>
 <87o7j86ldw.fsf@HIDDEN> <87zg2kj16a.fsf@HIDDEN>
Date: Tue, 05 Sep 2023 15:59:21 -0400
From: "Zack Weinberg" <zack@HIDDEN>
To: "Janneke Nieuwenhuizen" <janneke@HIDDEN>,
 =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#64509: Guile packages should install versioned aliases for
 binaries (guile-X.Y, guild-X.Y, etc.)
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 64509
Cc: 64509 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Mon, Aug 21, 2023, at 3:37 AM, Janneke Nieuwenhuizen wrote:

> It's terrible that guile.m4 has this feature of preferring numbered
> binaries (even if they're later in PATH, and even if that binary
> doesn't match GUILE_LOAD_*PATHs)

I can see why it does this -- it wants to find the newest available
Guile and it wants to be sure that all the binaries it uses are a
matched set. The original design assumption was probably that, if you're
using numbered binaries, then the un-suffixed "guile" can't be relied on
to be the newest available.  (Not as strange as it might sound; I have a
login on a machine where un-suffixed "perl" still runs Perl 5.005_02,
because the admins want to make absolutely sure that they never break
any user's #! scripts.)

It would probably be a good idea for guile.m4 to be altered to take the
un-suffixed binaries if that's the only way it can get a full set, but
given how long it takes for Autoconf macro changes to propagate to the
world, I think Guix should provide the numbered binaries regardless.

> and that Guix doesn't provide them. What about a wrapper package that
> provides these?

Why bother with a wrapper?  It should be _easier_ to have the main guile
package supply the numbered binaries.

>> I think the solution is to use =E2=80=98guix shell -D guix -CP'
...
> Hmm, yeah -- that sounds like the proper way of doing things
...

Not an option for me, for reasons explained in my earlier reply to
Ludovic.

zw




Information forwarded to bug-guix@HIDDEN:
bug#64509; Package guix. Full text available.

Message received at 64509 <at> debbugs.gnu.org:


Received: (at 64509) by debbugs.gnu.org; 21 Aug 2023 07:38:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 21 03:38:07 2023
Received: from localhost ([127.0.0.1]:55401 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qXzUE-0001hW-Sb
	for submit <at> debbugs.gnu.org; Mon, 21 Aug 2023 03:38:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1qXzUC-0001h2-LC
 for 64509 <at> debbugs.gnu.org; Mon, 21 Aug 2023 03:38:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <janneke@HIDDEN>)
 id 1qXzU2-0006Rq-MM; Mon, 21 Aug 2023 03:37:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=vAeTJzJ+RVmTjExtCflQoc4HQv6wLip21ApuIOBMTOM=; b=UaCYFYl/pRmhcuIuiw3d
 2gb+PFqd600WdU80225CLbzmWogbBHxN9GsE807d920bI3acDVNiVLNLkrcN2034F2z3wSnwPh/Hy
 U8MHfRjZ/1XRxjseC+1ayXXmM+A97uDQ2M5N1a0bB3iblTaM5WuY/mOow0pkoYYegGdPaUS17IkXr
 YqXtLlRFpJNYBJVMQlUq26mas1jYCIQpler+S62bfCTLshUftKP1oTD1c4xLygU125cQWBjDNadYS
 iUjF42xfymN16e8viFif/M+I0W3pTW0/jUho0QbXNAszMIncuASOmA3I3ASRlu3uJvq5pX6PkpTvk
 fRcT1rEJTCCH4Q==;
From: Janneke Nieuwenhuizen <janneke@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#64509: Guile packages should install versioned aliases for
 binaries (guile-X.Y, guild-X.Y, etc.)
References: <c33108af-e7b3-4f95-9624-9a702ade8f34@HIDDEN>
 <87o7j86ldw.fsf@HIDDEN>
Date: Mon, 21 Aug 2023 09:37:49 +0200
In-Reply-To: <87o7j86ldw.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Tue, 15 Aug 2023 23:33:47 +0200")
Message-ID: <87zg2kj16a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64509
Cc: 64509 <at> debbugs.gnu.org, Zack Weinberg <zack@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s writes:

Hello!

> "Zack Weinberg" <zack@HIDDEN> skribis:
>
>> The Guile packages currently install all their binaries under their
>> basic name only, e.g.
>>
>> $ ls /gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0.9/bin
>> /gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0.9/bin:
>> guild  guile  guile-config  guile-snarf  guile-tools
>>
>> However, the Autoconf macro GUILE_PROGS (from guile.m4) looks first
>> for a guile binary with a version number suffix (e.g. =E2=80=98guile-3.0=
=E2=80=99).
>> If it finds one, then it looks *only* for a matching guild-X.Y and
>> errors out if it can=E2=80=99t find that.  This is a problem for buildin=
g Guix
>> itself from source in a non-pure =E2=80=98guix shell -D guix=E2=80=99 on=
 top of a
>> foreign distro that provides a =E2=80=98guile-3.0=E2=80=99 binary but no=
t the other
>> four programs:

It's an interesting idea.  It's a common source of problems for non-guix
system users.  It's terrible that guile.m4 has this feature of
preferring numbered binaries (even if they're later in PATH, and even if
that binary doesn't match GUILE_LOAD_*PATHs), and that Guix doesn't
provide them.

What about a wrapper package that provides these?

> I think the solution is to use =E2=80=98guix shell -D guix -CP=E2=80=99: =
that=E2=80=99ll give
> you a container, where /usr/bin/guile-3.0 isn=E2=80=99t accessible, which
> ensures there=E2=80=99s no interference.
>
> (FWIW this is what I do, even on Guix System, for my development
> environments.)

Hmm, yeah -- that sounds like the proper way of doing things.  Maybe my
pracice and advise should go into that direction instead.

Greetings,
Janneke

--=20
Janneke Nieuwenhuizen <janneke@HIDDEN>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade=
my.com




Information forwarded to bug-guix@HIDDEN:
bug#64509; Package guix. Full text available.

Message received at 64509 <at> debbugs.gnu.org:


Received: (at 64509) by debbugs.gnu.org; 16 Aug 2023 16:09:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 16 12:09:50 2023
Received: from localhost ([127.0.0.1]:41892 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qWJ5h-0003lC-KT
	for submit <at> debbugs.gnu.org; Wed, 16 Aug 2023 12:09:49 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:36573)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zack@HIDDEN>) id 1qWJ5f-0003l0-GG
 for 64509 <at> debbugs.gnu.org; Wed, 16 Aug 2023 12:09:47 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 388E25C0362;
 Wed, 16 Aug 2023 12:09:42 -0400 (EDT)
Received: from imap45 ([10.202.2.95])
 by compute1.internal (MEProxy); Wed, 16 Aug 2023 12:09:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h=
 cc:cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1692202182; x=1692288582; bh=lLNd2+p84b/6IrjOSmUapCmG3W5q7sDy5pR
 w2MiaREI=; b=QW8kGu4z6vE4rAoCZuAc/NDS5D7foIvcmRwUsA1pLvv1TmbFw3y
 eMX1IKe7JmmK70fSy//BshCAcXi2F9B57PdIZW01J9geSiisj5JGzQCMwnQW2yhg
 Kd7g9rAAw0SKPra71U+/sk67KxGtBx0WSnYN0tj8tA7myYZYqC/T5qE0Qn2scEZO
 e9JzJSpj4igGdeTT0Es7uuelkxQHYeMLLDrT1Rvn1/27VPRKwPBrfXUq2Yx7AiPf
 /cawmUjAewjXruBRBE4ZXhCi6/i8hyMAQ7z6VBw3G1UBU5tmQoMNH86+c6G1G/nE
 L+JxPaVJdBrTPCS+KKopvJLpabL/PzhL++A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1692202182; x=1692288582; bh=lLNd2+p84b/6IrjOSmUapCmG3W5q7sDy5pR
 w2MiaREI=; b=qnBGPWm6ItRQRzA4CLCJWlkN4xIkGlZRd5iAjOTInoVI2r6ocd8
 gN4XYfG8gTIv1KNd7wtHHhYX5H66Mbnliw+2DEtoJ0dPKs4X6NoN66e5QJCAlbWj
 mhWY0y7e+1tmYIbiFeRBjDKgqQ+G3jtkjjLiKm3YOO7nNDfglqtaCzcBkt9GVumb
 zC8eFIjolgHAmJ5PdnbxSRMZTg63PuB3gvClCCHTNXf8/JwNV0VrPw8yBd8zJl6m
 f1TuDIG0mzmwFYi/5SkFPcb+hOw1xgTSBSMlOdpcLA5Ioy9ntnYMgi+6V0skzQ3d
 pJi7BEYYlCrkRRp00Yrh2pQExKExnOvRu8w==
X-ME-Sender: <xms:xfTcZDCLUjHOLHK_nY3vs0XKGpRLxWw6Wau37zQhL5fJsoSIhLm-xA>
 <xme:xfTcZJh_aGH6uKGBpkiNYzJqC1EiuwqKjRIrk9pBxJhj_wexUj3I2M6p1OkaeV3U3
 5HM--8OBVZe5rwVaEI>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddtledgleelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdgk
 rggtkhcuhggvihhnsggvrhhgfdcuoeiirggtkhesohiflhhfohhlihhordhorhhgqeenuc
 ggtffrrghtthgvrhhnpeduveevffekieeuvddtueffffehtdfgieetleeljeffleehleeh
 ffetheeuffehtdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrh
 fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepiigrtghksehofihlfhholhhi
 ohdrohhrgh
X-ME-Proxy: <xmx:xfTcZOk7ocPBzFgeeZNxAibOHJUiM_F7pCcN6rdVF5uN240hynaTAQ>
 <xmx:xfTcZFxEKbV8Go5Tii6l-_x1eDeWvCxUEYK5rRST653mOK2z5COiDQ>
 <xmx:xfTcZISHED_zZ5SZ7rm2Now7Q4i0ZcgDYgJByRPvqoHeUid1C1Njgg>
 <xmx:xvTcZHMNdL7iCZCvvzGfuUwiSkJ72K97WonmYO51QyZQgyrrdD4fvg>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id ADD9A272007B; Wed, 16 Aug 2023 12:09:41 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440
Mime-Version: 1.0
Message-Id: <c66d5270-6a44-4d23-8f5b-830d7f58bbe4@HIDDEN>
In-Reply-To: <87o7j86ldw.fsf@HIDDEN>
References: <c33108af-e7b3-4f95-9624-9a702ade8f34@HIDDEN>
 <87o7j86ldw.fsf@HIDDEN>
Date: Wed, 16 Aug 2023 12:09:21 -0400
From: "Zack Weinberg" <zack@HIDDEN>
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#64509: Guile packages should install versioned aliases for
 binaries (guile-X.Y, guild-X.Y, etc.)
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 64509
Cc: 64509 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Tue, Aug 15, 2023, at 5:33 PM, Ludovic Court=C3=A8s wrote:
>> The Guile packages currently install all their binaries under their
>> basic name only, e.g.
...
>> This is a problem for building Guix
>> itself from source in a non-pure =E2=80=98guix shell -D guix=E2=80=99=
 on top of a
>> foreign distro that provides a =E2=80=98guile-3.0=E2=80=99 binary but=
 not the other
>> four programs:
>
> I think the solution is to use =E2=80=98guix shell -D guix -CP=E2=80=99=
: that=E2=80=99ll give
> you a container, where /usr/bin/guile-3.0 isn=E2=80=99t accessible, wh=
ich
> ensures there=E2=80=99s no interference.

I can't use container mode (or pure mode), because there's another
layer in the way: I'm using <https://github.com/purcell/envrc> to
pull settings out of `guix shell` and poke them into Emacs.  This
inherently only supports non-pure operation.

zw




Information forwarded to bug-guix@HIDDEN:
bug#64509; Package guix. Full text available.

Message received at 64509 <at> debbugs.gnu.org:


Received: (at 64509) by debbugs.gnu.org; 15 Aug 2023 21:33:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 15 17:33:57 2023
Received: from localhost ([127.0.0.1]:36961 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qW1fp-0001SZ-AF
	for submit <at> debbugs.gnu.org; Tue, 15 Aug 2023 17:33:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51914)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1qW1fm-0001SJ-LS
 for 64509 <at> debbugs.gnu.org; Tue, 15 Aug 2023 17:33:55 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1qW1fg-00051i-Ps; Tue, 15 Aug 2023 17:33:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=KTS1f27DOx0l0UvdNz20FrWkV4dzzKE96fUNaGv1X/0=; b=liGfFoYusJ5gsmgyoxz8
 6f9yAn2v0QNoDFEunLhmi9nvECJnMhVq9L9lE9W1S9vQvbt2+zKcG7ku/LgBb9y3aL/HAA3LZmRJC
 QDdsNJyMziQ6PaPH1Y2filpvI0xNtp19Z992hEz2ziexN+dD3YRfJp6DR51JQjPZypPbFnB8TDDMg
 boCB2ySk7yUaEhpoR+ynZ2m3JzwrOKlYKIa7BaVzqFfU2CzE2kilYqkAQzQ6LesqYyIldIy+fq3zb
 trgh1rk9pSEc3weU6DycuYWkAf7L4/Ky1UMyoWi7sGuwPLLgRNI3RHhSH1h+Fjj3WBZzftN0y8us4
 yzc8SCu1NRP+Cg==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: "Zack Weinberg" <zack@HIDDEN>
Subject: Re: bug#64509: Guile packages should install versioned aliases for
 binaries (guile-X.Y, guild-X.Y, etc.)
References: <c33108af-e7b3-4f95-9624-9a702ade8f34@HIDDEN>
Date: Tue, 15 Aug 2023 23:33:47 +0200
In-Reply-To: <c33108af-e7b3-4f95-9624-9a702ade8f34@HIDDEN> (Zack
 Weinberg's message of "Fri, 07 Jul 2023 08:59:10 -0400")
Message-ID: <87o7j86ldw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64509
Cc: 64509 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Zack,

"Zack Weinberg" <zack@HIDDEN> skribis:

> The Guile packages currently install all their binaries under their
> basic name only, e.g.
>
> $ ls /gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0.9/bin
> /gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0.9/bin:
> guild  guile  guile-config  guile-snarf  guile-tools
>
> However, the Autoconf macro GUILE_PROGS (from guile.m4) looks first
> for a guile binary with a version number suffix (e.g. =E2=80=98guile-3.0=
=E2=80=99).
> If it finds one, then it looks *only* for a matching guild-X.Y and
> errors out if it can=E2=80=99t find that.  This is a problem for building=
 Guix
> itself from source in a non-pure =E2=80=98guix shell -D guix=E2=80=99 on =
top of a
> foreign distro that provides a =E2=80=98guile-3.0=E2=80=99 binary but not=
 the other
> four programs:

I think the solution is to use =E2=80=98guix shell -D guix -CP=E2=80=99: th=
at=E2=80=99ll give
you a container, where /usr/bin/guile-3.0 isn=E2=80=99t accessible, which
ensures there=E2=80=99s no interference.

(FWIW this is what I do, even on Guix System, for my development
environments.)

Does that work for you?

If your distro doesn=E2=80=99t support unprivileged user namespaces, which =
=E2=80=98-C=E2=80=99
relies on, you can fall back to =E2=80=98--pure=E2=80=99.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#64509; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Jul 2023 12:59:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 07 08:59:47 2023
Received: from localhost ([127.0.0.1]:42756 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qHl3p-0003pS-Es
	for submit <at> debbugs.gnu.org; Fri, 07 Jul 2023 08:59:46 -0400
Received: from lists.gnu.org ([209.51.188.17]:59370)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zack@HIDDEN>) id 1qHl3l-0003pI-Ag
 for submit <at> debbugs.gnu.org; Fri, 07 Jul 2023 08:59:45 -0400
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 <zack@HIDDEN>) id 1qHl3k-0007ie-02
 for bug-guix@HIDDEN; Fri, 07 Jul 2023 08:59:40 -0400
Received: from wout4-smtp.messagingengine.com ([64.147.123.20])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zack@HIDDEN>) id 1qHl3h-00012J-4t
 for bug-guix@HIDDEN; Fri, 07 Jul 2023 08:59:39 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id B63613200A58
 for <bug-guix@HIDDEN>; Fri,  7 Jul 2023 08:59:31 -0400 (EDT)
Received: from imap45 ([10.202.2.95])
 by compute1.internal (MEProxy); Fri, 07 Jul 2023 08:59:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h=
 cc:content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:message-id:mime-version:reply-to:sender
 :subject:subject:to:to; s=fm1; t=1688734771; x=1688821171; bh=Qo
 s530ysIqtmf4709UtiJmwe9w7YSY06Q5bEN5Yjfjc=; b=w1zLUltkYLXoKbd8yp
 i6ezmad9n0FY+z0AtSh1uyMD75OCsnKpxYT7bGh3KGMzXAo/qszF41ypAo7bWZwK
 x+7QnWycGfCrTMIbGfSIYTtUnW92KTcR+uKaf2L8bcnZkh7bwdFhBRkiRdf0+JFB
 VYNAqyC+ph6kA0I2YLTeUN9Uyr0egDNiZPCpDtlkjSe3fi33dLq8zlBLyyxlgAnz
 ZFN1oXWBdZxJtYNr4g4Jk9SfP7jzWVyuIL4ZpV2WBwxq8dcppxSdHe+TX2MG/tEY
 z/j7mvIff10TvJdooEcRZG3SJ6fqi1LRZXE9Br1vjQN5+8T77j3PGf/H+SlYOj8l
 EwBg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:message-id:mime-version:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm2; t=1688734771; x=1688821171; bh=Qos530ysIqtmf
 4709UtiJmwe9w7YSY06Q5bEN5Yjfjc=; b=e6mFDuESkOIXEjTOO+Lb27oVK4Ls/
 17v3XBvuK/MK13JCFU1UZJmvyzrMZp2+Ke9Ak5RZqT/ZgQ5jEtVxAyhWch5pn15I
 YZN8LyarfAH1WoptQHjwqp327rpHRdGVRqPuE5AjnrDI1CyrsQUU8yt8Zo4UEf/F
 tBeA6R46OdrvvujIhIEhe1nRsR/XOfXHCZYAXE7+bly92tFOIwc5NRiIkFWuLkPs
 xTaZgVOmms74P9xeVQ/Q9HE2ijeZiIXnfFP9/wttariNQolCsX/YLcgpMxDn0zr1
 pMbt+lJ2blhaBrSTu2BGNzrKNfn2dZkFLnfaC3J/ZG7s/ViDEo3BeMNCQ==
X-ME-Sender: <xms:MgyoZPWu3_vwO4wj7IeZQhPdbT_p8eT5t5_OuBBWSlEjSFBL-LA6QA>
 <xme:MgyoZHm4Pz1YXXHXUEUTDOepEaojjDSjetHr9INxFekLpf5WF_HqRRiF5mVxaxPyO
 id011MQn0I-s7WjQes>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrvddugdehlecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgfgsehtqhertd
 erreejnecuhfhrohhmpedfkggrtghkucghvghinhgsvghrghdfuceoiigrtghksehofihl
 fhholhhiohdrohhrgheqnecuggftrfgrthhtvghrnheptdffudegteevgffhgfdthfelfe
 eutdduteduueeufedtteejgffgudehhefhkeehnecuffhomhgrihhnpehstghmrdiifien
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiirggtkh
 esohiflhhfohhlihhordhorhhg
X-ME-Proxy: <xmx:MwyoZLaZykgCao0tI7u-VeW5zX6pYjFzUpfN121YavYSR6JuTdP_cg>
 <xmx:MwyoZKViCNGvPKRN7CwhfymcBKGoYtQVjcMYF-W0Awsxp8ohRaRVVA>
 <xmx:MwyoZJkCkst5r-F8Csh2PIkUB5ofxTKyO-yWll-RMOTycJeWgMCfYQ>
 <xmx:MwyoZFwjOWYkc2vny-mzWWwMr1BM00kdil62H3d1cSxMmKnIsbacYQ>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id E6BC2272007A; Fri,  7 Jul 2023 08:59:30 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-531-gfdfa13a06d-fm-20230703.001-gfdfa13a0
Mime-Version: 1.0
Message-Id: <c33108af-e7b3-4f95-9624-9a702ade8f34@HIDDEN>
Date: Fri, 07 Jul 2023 08:59:10 -0400
From: "Zack Weinberg" <zack@HIDDEN>
To: bug-guix@HIDDEN
Subject: Guile packages should install versioned aliases for binaries
 (guile-X.Y, guild-X.Y, etc.)
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=64.147.123.20; envelope-from=zack@HIDDEN;
 helo=wout4-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.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,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

The Guile packages currently install all their binaries under their
basic name only, e.g.

$ ls /gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0.9/bin
/gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0.9/bin:
guild  guile  guile-config  guile-snarf  guile-tools

However, the Autoconf macro GUILE_PROGS (from guile.m4) looks first
for a guile binary with a version number suffix (e.g. =E2=80=98guile-3.0=
=E2=80=99).
If it finds one, then it looks *only* for a matching guild-X.Y and
errors out if it can=E2=80=99t find that.  This is a problem for buildin=
g Guix
itself from source in a non-pure =E2=80=98guix shell -D guix=E2=80=99 on=
 top of a
foreign distro that provides a =E2=80=98guile-3.0=E2=80=99 binary but no=
t the other
four programs:

$ which guile || echo not found
/gnu/store/1yg0gg12m2cj2lj08r3qx8yx6zir4a38-profile/bin/guile

$ which guile-3.0 || echo not found
/usr/bin/guile-3.0

$ which guild || echo not found
/gnu/store/1yg0gg12m2cj2lj08r3qx8yx6zir4a38-profile/bin/guild

$ which guild-3.0 || echo not found
not found

$ ./configure --localstatedir=3D/var
...
checking pkg-config is at least version 0.9.0... yes
configure: checking for guile 3.0
configure: found guile 3.0
checking for guile-3.0... /usr/bin/guile-3.0
checking for Guile version >=3D 3.0... 3.0.8
checking for guild-3.0... no
checking for guile-config-3.0... no
checking for guile-tools-3.0... no
configure: error: 'guild' binary not found; please check your Guile inst=
allation.

Thus, I suggest that all of the Guix guile packages should be modified
to install =E2=80=98guile-X.Y=E2=80=99, =E2=80=98guild-X.Y=E2=80=99, etc=
. as well as the unsuffixed
program names.  I do not immediately see how to make this change in
gnu/packages/guile.scm.

zw




Acknowledgement sent to "Zack Weinberg" <zack@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#64509; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 5 Sep 2023 20:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.