From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AFbvN8hnlmDcbgAAgWs5BA (envelope-from ) for ; Sat, 08 May 2021 12:28:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gLytM8hnlmC+PAAA1q6Kng (envelope-from ) for ; Sat, 08 May 2021 10:28:24 +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 21B4511647 for ; Sat, 8 May 2021 12:28:24 +0200 (CEST) Received: from localhost ([::1]:40258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfKC7-0004VS-3C for larch@yhetil.org; Sat, 08 May 2021 06:28:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfKBm-0004VF-Q9 for bug-guix@gnu.org; Sat, 08 May 2021 06:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfKBm-0007NF-Gx for bug-guix@gnu.org; Sat, 08 May 2021 06:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfKBm-0003BT-Cp for bug-guix@gnu.org; Sat, 08 May 2021 06:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48225: Wrong result of package-name->name+version Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 08 May 2021 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48225 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Guillaume Le Vaillant Received: via spool by 48225-submit@debbugs.gnu.org id=B48225.162046965012225 (code B ref 48225); Sat, 08 May 2021 10:28:02 +0000 Received: (at 48225) by debbugs.gnu.org; 8 May 2021 10:27:30 +0000 Received: from localhost ([127.0.0.1]:49367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfKBF-0003B7-Nh for submit@debbugs.gnu.org; Sat, 08 May 2021 06:27:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfKBD-0003Az-Qc for 48225@debbugs.gnu.org; Sat, 08 May 2021 06:27:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56660) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfKB7-00072M-Ai; Sat, 08 May 2021 06:27:21 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60478 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfKB6-00031A-CE; Sat, 08 May 2021 06:27:20 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87o8dqy636.fsf@yamatai> <8735v0b53e.fsf@yamatai> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?UTF-8?Q?Flor=C3=A9al?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 08 May 2021 12:27:19 +0200 In-Reply-To: <8735v0b53e.fsf@yamatai> (Guillaume Le Vaillant's message of "Thu, 06 May 2021 09:10:13 +0000") Message-ID: <87v97t8qrc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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: , Cc: 48225@debbugs.gnu.org, Leo Prikler , Sharlatan Hellseher Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620469704; 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; bh=i9Gs+X+akLrdQDs1HLy5M7yPVS3Xealg5ZwqR6xpHEE=; b=bfkaMBT9cS6wR2H4CVZMHFrOLP1ZDshbPtHoCjWJcPEw3YBvF4CjF8gV1Qyok+Qf5ezRAg vg1iFHy5CwkK4C90H1zW3nbIttt7x7LDs9nWBoEVcUQriEMQf82aboQuOjGbUBtjdlJTIu itsBVbUzol0LhT6CHjuCuCOvBuF2gfcbGN6TCxU7xSySaciA2Gqvv3WAO4LLmzQDwkSJIH G/71r3RpLMfqxf2/dZApDhahThRww5EM4BlHae+p/tZmO7KPd6+b/7n0J097YFc/w9NzLS OJ8bqsGPLqpewlSvy5qk2/AZukD2t8sm5EUCoNuY489LKU9o9JonzGBS6H+4HA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620469704; a=rsa-sha256; cv=none; b=WfYwCIwEY07MT77kraerjF+JC6IITYeY24uUnC4MozcKoCU7sJ+DVEoXahJOSCt14K7w+l Fr3NyzbfAMbEMK3qFOYwJ7kVjUYvalAOogm2afMXsqdpdM9euWIc4EeDVhvTcGGPBQSrfX jJxyCLaqeFgI/Eeqs8Ptprt+i9rRc6pvmsxAYTFixadJsXLk6PDTTGZ7pgTHWn2XclZSoU SpWESdO8adZlLqhmPC4hQ5rqkJgtvpxuCZ0XYsmlqAfSePAdMihdiold3RAPokLcvg8e9O yyAFngSmlzROr308aW4e4vgButcqpRMszfOOjz9RfmjdrQAZieUZ3TrEYEJm+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 21B4511647 X-Spam-Score: -2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4u3ep+X4fqPL Hi Guillaume, Guillaume Le Vaillant skribis: > From 1e37a89b943a818b5274c1d5f31143ca48bad40a Mon Sep 17 00:00:00 2001 > From: Guillaume Le Vaillant > Date: Thu, 6 May 2021 10:32:56 +0200 > Subject: [PATCH] build-system: asdf: Work around package-name->name+versi= on > bug. > > This patch modifies how the name of the main Common Lisp system is extrac= ted > from the full Guix package name to work around bug#48225 concerning the > 'package-name->name+version' function. > > Fixes . > > * guix/build-system/asdf.scm (asdf-build): Fix 'systems' function. > * guix/build/asdf-build-system.scm (main-system-name): Fix it. If it works for you, sounds good to me. Please do rebuild as many CL packages, with different CL implementations, to make sure we do not overlook any corner case. > + (let* ((lisp-prefix (string-append lisp-type "-")) > + (package-name (hyphen-separated-name->name+version > + (if (string-prefix? lisp-prefix name) > + (string-drop name > + (string-length lisp-pre= fix)) > + name)))) > + `(quote ,(list package-name))) I=E2=80=99d like to see a FIXME in there: this is all guesswork and we shou= ld eventually replace guesses with known-good info. What would it take to pass the right package name and implementation name upfront from the package? Thanks, Ludo=E2=80=99.