From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eI6vCCOjkWDbKAAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 21:40:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8IxHBCOjkWBWeQAAB5/wlQ (envelope-from ) for ; Tue, 04 May 2021 19:40:19 +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 AB6411A1A2 for ; Tue, 4 May 2021 21:40:18 +0200 (CEST) Received: from localhost ([::1]:55770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le0u1-0004HW-SZ for larch@yhetil.org; Tue, 04 May 2021 15:40:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le0tm-0004GW-Rq for bug-guix@gnu.org; Tue, 04 May 2021 15:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1le0tm-0005Sg-K0 for bug-guix@gnu.org; Tue, 04 May 2021 15:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1le0tm-0007Yk-HT for bug-guix@gnu.org; Tue, 04 May 2021 15:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48225: Wrong result of package-name->name+version Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 04 May 2021 19:40: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 , 48225@debbugs.gnu.org Received: via spool by 48225-submit@debbugs.gnu.org id=B48225.162015717229046 (code B ref 48225); Tue, 04 May 2021 19:40:02 +0000 Received: (at 48225) by debbugs.gnu.org; 4 May 2021 19:39:32 +0000 Received: from localhost ([127.0.0.1]:55005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le0tH-0007YQ-QB for submit@debbugs.gnu.org; Tue, 04 May 2021 15:39:31 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:22834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le0tE-0007YK-Ob for 48225@debbugs.gnu.org; Tue, 04 May 2021 15:39:30 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FZVXX5Nncz3wGC; Tue, 4 May 2021 21:39:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620157164; bh=R37ACKQmbfaOLeL+x4/z6BA/SR0782oCxSCRPwfRrpw=; h=Subject:From:To:Date:In-Reply-To:References; b=Mi5vLS9022hcPpw+kD/NdGARLXblqvPZ0/7kolBkLPpZu1sobWMy11TbtDvd6kWjH EYhPgJ/QaqYKZOih3X+QQC2jyGeIAy83oxK3t7BFceg7K/dn8Z6DuIp2RTLHd011Xr gY4L5y6YdJlJpAqjv7oWTcbl7he3BWe7h0ceRDEc= Message-ID: <240d6f2933bcf78ef7d08eb2003d562b10cca2bc.camel@student.tugraz.at> From: Leo Prikler Date: Tue, 04 May 2021 21:39:24 +0200 In-Reply-To: <87o8dqy636.fsf@yamatai> References: <87o8dqy636.fsf@yamatai> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620157218; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=R37ACKQmbfaOLeL+x4/z6BA/SR0782oCxSCRPwfRrpw=; b=YSwcVqiCHqUPN93jDB4GbB4IJbpoGtk31vbrk5Cvc/D4mZ9aUEWTf+wVrh5GyCIFAPV4VI j+HJA4Pp4nxKU6quRU8x2QVkezXJwiOKwW7sMUpjgCs8m33AGCpTlMwgoyL27SwnTT/kYT L6d8OyglELtNZZPTgeXBvi1R+SlDLp8UrYWmRYY/GBmP6taQgzyMJj8o46Rd1Uv56MVEwG q9DU/f6lFz5oT5di28tTkH6kANl3Hm92sb8urzs3cGq/mtsXgqptQs3BsXCkvhOmbnQ/Fu mAkUBCjZx+Pgd/719Rcq4IwN5m2iFkJynRC+CHP+SrY2V63/L2E/9hgsQOWrdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620157218; a=rsa-sha256; cv=none; b=elLJ7J3b9nRbn20PaFouP3Y1zAGX+9cViAHdv1yuk/4tIb6ennRezJ51/2ccRtKuq7zugW lMPsVzyfFsrS+KFwRCIdmpahmaiYdcAu6jjSTGlQtQ8OZRjOjmD6WNBsia0ecqhWCpqOOw K0xfv+LZdjwLZuav31e8LC+dNBrHjkcxXH5SoumNORMtQaxnLaf5nA1xF+AayPlveR+oFA S6Un5QyUejeltuOi2C2jVOyAlYmLa2Cwy0/OsGP5nVkQFFD55ahGiFMf0GNNJG68fq42ki n7PZ4a20ynqNfKupN/fTOQBdK+rSI7AzsWltzAbEpeRIxjvRksjGzMqKiEPCFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=Mi5vLS90; 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: 0.14 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=Mi5vLS90; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); 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: AB6411A1A2 X-Spam-Score: 0.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: rVxk8OvTlb7M Am Dienstag, den 04.05.2021, 13:35 +0000 schrieb Guillaume Le Vaillant: > Hi, > > The 'package-name->name+version' function defined in > "guix/build/utils.scm" returns a wrong result if there is a '-' > followed by a number in the package name: > > --8<---------------cut here---------------start------------->8--- > (use-modules ((guix build utils))) > (package-name->name+version "sbcl-3d-vectors-3.1.0-1.29bb968") > > $1 = "sbcl" > $2 = "3d-vectors-3.1.0-1.29bb968" > --8<---------------cut here---------------end--------------->8--- > > It should be: > > --8<---------------cut here---------------start------------->8--- > $1 = "sbcl-3d-vectors" > $2 = "3.1.0-1.29bb968" > --8<---------------cut here---------------end--------------->8--- > > Can someone think of an elegant modification for > 'package-name->name+version' so that it finds where the version is > even if there are several hyphens before of after it (as in > "sbcl-3d-vectors-3.1.0-1.29bb968" or "nyxt-2-pre-release-6")? > > This is related to issue #48208, and also probably to issue #41437. I don't think there's any way to cleverly match this. For all we know, 3d could be a version, we have 2019c, 2021a, 1a, 9d, 9100h and 063a already. Perhaps we should forward name and version as keyword arguments, so that we don't have to reconstruct them, or alternatively use a different delimiter (e.g. @) I'm honestly surprised, that many other stuff "works fine" despite the fact, that they'd probably also suffer from this bug. Can anyone tell me why emacs-2048-game builds?