From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yPVXNfXJvmPabAEAbAwnHQ (envelope-from ) for ; Wed, 11 Jan 2023 15:38:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WPDXNPXJvmOzKgAAauVa8A (envelope-from ) for ; Wed, 11 Jan 2023 15:38:45 +0100 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 91E813597B for ; Wed, 11 Jan 2023 15:38:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFcCS-00064I-W1; Wed, 11 Jan 2023 09:35:35 -0500 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 ) id 1pFcBy-0005pn-Mx for bug-guix@gnu.org; Wed, 11 Jan 2023 09:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFcBy-0002cn-CB for bug-guix@gnu.org; Wed, 11 Jan 2023 09:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pFcBy-0002f2-7I for bug-guix@gnu.org; Wed, 11 Jan 2023 09:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#60725: guix lint thinks 2019111-0.7e76d75 is older than 20191111 Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 11 Jan 2023 14:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60725 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 60725@debbugs.gnu.org, GNU Debbugs Received: via spool by 60725-submit@debbugs.gnu.org id=B60725.167344768210189 (code B ref 60725); Wed, 11 Jan 2023 14:35:02 +0000 Received: (at 60725) by debbugs.gnu.org; 11 Jan 2023 14:34:42 +0000 Received: from localhost ([127.0.0.1]:41999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFcBe-0002eG-0p for submit@debbugs.gnu.org; Wed, 11 Jan 2023 09:34:42 -0500 Received: from mail1.fsfe.org ([217.69.89.151]:57168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFcBc-0002e4-Ae; Wed, 11 Jan 2023 09:34:40 -0500 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1673447679; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sS9SLJx3tiaWv1HDkzp/fsPSBuabwJW1V7F7YcjztiM=; b=a7arrbfnH0HP9AJboeI++LA+NfAQkvvKaAVJUu1hq04r6jHpwMAq9okOrYzmVEoDSGny1g iq4dDXxx4DqSpGYCVvg9u2FPlt2Lx/bqSkodIJHHkaRsq87S3AKXWWfHoez4ttCCiWYWrq y2D/VQhGs5Xm7bov//r+FeuDajTN4oc= In-Reply-To: <87358hjifv.fsf@gmail.com> References: <878ri9kb3v.fsf@gmail.com> <87ilhdkxv3.fsf@fsfe.org> <87358hjifv.fsf@gmail.com> Date: Wed, 11 Jan 2023 15:34:39 +0100 Message-ID: <87cz7lkum8.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=a7arrbfn; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673447925; a=rsa-sha256; cv=none; b=Ypg4heKfH/af0wdopXYidd9/zO4qTQqOAizD7KF5DD7gC36mx5QuXzMYDS5R4QWL9MVw0S 5+FvSsTjyTI+UVsIiSGWstz/x/4ruVL5oOyIZ5C4rpDFMCybg3wSQPtCGHOLoAE0sakkCb hk0XJl1oSBU7n9z2lp5QrsCYtPMfvErM44ACPHY0dRpEM4d5sOay5l8lgH6zwY0VtrYWwb f4aQwjjOwxdftoWVZxmG9yllHI4KCgKYMubwOu8fnBlnRLTqh5X19VheF5VrMgcjvGTF+y kX4fC1LeMxJdFR3dVzG7NuuW99d2Zy/u/a8oAB9zCE0YlsDavbcpxdJIl454tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673447925; 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: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=sS9SLJx3tiaWv1HDkzp/fsPSBuabwJW1V7F7YcjztiM=; b=L44bUwyybF79YhJsumAm/gl/bWZ4HX7JQQ4zcZnrwHWM5pdic/ARSgeXciw4IusH5aBzWL FyBfMzpkqNrM3exF5CaukvMab0ENRPxhfW4UT8HH/tVUHfTpb4XhiiRGnhfB70JSZm36Lz Sr+e3jXGfvpjqslFqhr1wEs+KuGsnvnrAmY5XbOnrzx+9NiViJPRbAOK6xl7dZ8PuvUvcL JbRAvhGdVEJbpj/21LskD7abH1pnPDM4rjONZSibQq8QD8pVlmEtr15afUZqfNMxNecxjB C2tsQlINt6wNjW8OHM2gwUd7HvhTMshQ+aILniOHk6SX1hlEItS3OTuWw+5mbg== X-Migadu-Queue-Id: 91E813597B X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=a7arrbfn; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none) X-Migadu-Spam-Score: -2.29 X-Spam-Score: -2.29 X-TUID: EsFDp9iD3/o9 Maxim Cournoyer writes: > retitle 60725 support the special '~' character in our version parser > thanks > > Jelle Licht writes: > >> Maxim Cournoyer writes: >> >>> Hi Guix, >>> >>> If you run 'guix lint emacs-enh-ruby-mode', it'll print this: >>> >>> --8<---------------cut here---------------start------------->8--- >>> emacs-enh-ruby-mode@2019111-0.7e76d75: can be upgraded to 20191111 >>> --8<---------------cut here---------------end--------------->8--- >> In this particular case, 2019111 seems to have been a typo in the first >> place. (It misses out on a '1' in our package record). > > Thanks! With this typo fixed, 'guix lint' doesn't suggest a downgrade > anymore. > >> AFAIK, any sane versioning scheme would assert that 20191111 > 2019111-anything. > > That's not currently the case with Guix. Guix package version strings > are documented has having the requirement to be 'monotonically > increasing', so '43.rc3' as used by GNOME is seen by Guix as newer than > '43', the final release. I agree with your assesment, but note that my example (again) had one "1" less, in which case Guix does the right thing :-). > > I'll keep this bug open (and retitle it), because implementing ~ would > be useful (GNOME makes use of that scheme, and it's understood by rpm, > dpkg, pkg-config, etc.). Fixing our versioning code so "123" > "123-alpha2" will also bring us (more) in line with Semantic Versioning. - Jelle