From unknown Mon Jun 23 04:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31088: Use '@' as version number separator in guix output Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 07 Apr 2018 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 31088@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152312035210714 (code B ref -1); Sat, 07 Apr 2018 17:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Apr 2018 16:59:12 +0000 Received: from localhost ([127.0.0.1]:41454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4rBI-0002mk-Ig for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4rBH-0002mY-N4 for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4rBB-0006vE-QL for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f4rBB-0006uX-FZ for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4rBA-0000r7-3g for bug-guix@gnu.org; Sat, 07 Apr 2018 12:59:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4rB6-0006qn-90 for bug-guix@gnu.org; Sat, 07 Apr 2018 12:59:04 -0400 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:42758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4rB6-0006qP-1o for bug-guix@gnu.org; Sat, 07 Apr 2018 12:59:00 -0400 Received: by mail-pf0-x229.google.com with SMTP id o16so2940409pfk.9 for ; Sat, 07 Apr 2018 09:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=1nBlWRZAhc58Wu2z/qWE0Qsfo5zTWpfh7gl3x9rflgw=; b=Pj6drv+W92vDaTkuxJju9G+8nqKGkEYFwiz4Dx5lG1l4rFoEwrzItgApPvsUupyP5w RSt3eurSNka0bEewRdNusaug369GShg9IPrkx4zlpG4fSyd3PQqUHrMGnA5p/H+UpvBF OWJAT2hJS1PV9Bnb9ahDB/+sGsR2Ms52UAOE5nGGvJpMrLgdDzVEQI7ac1vxXE43xw19 uAsoudmVCUI3xvfa5jdESdMnysg3PmIeKw+XiHYj/JDyFJ2WvTGGFsoYFdRNwJae1Vjw nxms9TYdYUv8YwalxPxdIJVr5JScKqIZpVdELbW9EFtzoEi/Q40Mikz2M25HHvS8X5e4 QU2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=1nBlWRZAhc58Wu2z/qWE0Qsfo5zTWpfh7gl3x9rflgw=; b=MKT53YOGZdfaHMhULTgfTZOcm4aK2kUTGS8mDTSaAABKwwo/gvzIoh97eemYgaMfSC j8kRe7PmQ4/JJC3Fg0dJvEXBlRlKqp/5w0z8REIzRGtN9p6ePSUnSrHfmiJld4nsYwgU x5ouo6DWC6IasFMyY/+Zy/fTKsPccekkXgJ+HRwchoWMxe3f2EfLZWVZOouu/tc8eZNp Hf46WGmJGvzC8+c5TW8rWoI13EvyWpnNVl3+de0vN7evPKO97vbXRjsxJloCEHl38fKH JkXiedE9cQQDEIMix7N8mBRlbFz+c8pdfkBiS8tP+BowaXdapHYXyjrAAiawMxNZNys9 gDXg== X-Gm-Message-State: AElRT7FVxIOGPwQHV/n8TYhapG3hOc9P7x1mz0gBSAnf/zpzZC9sAts0 Qj3Z5IweX9DBreTqQlHiuqyTdg== X-Google-Smtp-Source: AIpwx49vJDX0f4WKC2quAW/zRZj85nHYKRUK8CMuq4aF2qecnwELvozv2p36MDhi2kls/n1YxmS7ug== X-Received: by 10.98.73.214 with SMTP id r83mr24130534pfi.76.1523120338812; Sat, 07 Apr 2018 09:58:58 -0700 (PDT) Received: from mimimi ([103.61.255.46]) by smtp.gmail.com with ESMTPSA id g11sm17249675pgu.56.2018.04.07.09.58.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Apr 2018 09:58:58 -0700 (PDT) User-agent: mu4e 1.0; emacs 25.3.1 From: Pierre Neidhardt Date: Sat, 07 Apr 2018 22:28:55 +0530 Message-ID: <871sfr2bsg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) --=-=-= Content-Type: text/plain At the moment it seems that there is no syntactic different between the name and the version number in the output of Guix. The other day I tried to extract the version number of package dependencies with "everything after the last '-'", until I stumbled on the following: > guix package --show=ncdu | recsel -R dependencies ncurses-6.0-20170930 Here the version number contains a '-'. Because of this it makes the problem undecidable I think. Would it be possible to separate the package name from the version number with '@' instead? -- Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrI+M8ACgkQm9z0l6S7 zH/GqQf9EVSTCZYR99OL8A9qWx1H6WQhcwDPta4LNkirYTAY9GrcW/LeS4mLtcUC 9LwDr4XbYh+s14aS0s/bMIa2Q7iplK1koOekYyPvpuyq7MI+tteR2hFH1a6U2LKv 7MTBb8WvFjTkPx3H4tvHBHLun7MtSixOuvjLMOGOtJ3BU2KemYo3/iON8lCSID3s xgH+UCzeMIY4MISAcicm0MVBFEv3rMWCAkmIKd1AoBEFyqgzMXBmAy8p+n7UkH3B qROoXLc4fBcOfN7kGtPv4ZT8jjgm+b2g5lBcLdOMAcZt3jqauxPpeU3rb09z+XN/ ZLPI0xbNy5ReUxEo8EOjSVjp4X2DcA== =BjhV -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Jun 23 04:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31088: Use '@' as version number separator in guix output In-Reply-To: <871sfr2bsg.fsf@gmail.com> Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 10 Apr 2018 06:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Pierre Neidhardt , Mathieu Lirzin Cc: 31088@debbugs.gnu.org Received: via spool by 31088-submit@debbugs.gnu.org id=B31088.152334229321062 (code B ref 31088); Tue, 10 Apr 2018 06:39:02 +0000 Received: (at 31088) by debbugs.gnu.org; 10 Apr 2018 06:38:13 +0000 Received: from localhost ([127.0.0.1]:44496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5muz-0005Td-0O for submit@debbugs.gnu.org; Tue, 10 Apr 2018 02:38:13 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:33919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5mux-0005TQ-Ag for 31088@debbugs.gnu.org; Tue, 10 Apr 2018 02:38:11 -0400 Received: by mail-it0-f43.google.com with SMTP id t192-v6so13912466itc.1 for <31088@debbugs.gnu.org>; Mon, 09 Apr 2018 23:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version; bh=FkIVCXdUoAdysJxgV7i+NQn47etO+lT3JefeXWiZ2Rw=; b=uWsPewWulWW4JkWVn4qPzok+Cb+NTk9KQj3vPb048MPH5Q/GFl6jmsLb8jj55WH7aV d5HHO2PbnvZzu8/CxOXdbx/tMUx1+mCMlyZGZnBnZ876LcczVeGGDUbFXswb/UXNA9ui Fjtv1U8SAl5RVse2qAv8w0KpjljA31CNGmxGWHZIPr2CE6QBlHpF6jjgc8PkzHvxjhk3 E+IUfi0d+VTHf66nv1jTEHCfKCHSrAd4JoYMUO8Z+FEqAEHRQvMP7JTgoE5tZLK9QBqo hlQljKvK7fTYjhQFmaqT16fA6bdTMPuy+jZ2Th6r/AaBGe/o2rRkK3UBmhQQTvPYMS6q /oVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version; bh=FkIVCXdUoAdysJxgV7i+NQn47etO+lT3JefeXWiZ2Rw=; b=ctdH4j5IXGAIfOnkxj6+5OLamPl2IDy+bxq03ivtiDDFwS7H4gBk2xUwcKqV1aPVVF 4lrps7+PbgfOlnvQ34KU/yPmgesAa2J1hN2U6ju1rXbFynPdl13DChzTnb7//M7xCJNP xadCPsJSef3XjuhdfFliETtvdbdw6AblWdC+zIaKQHIhMW6IVi2BnNJ4w3wyt1U20gH+ xOhh3BqJu9O+AmSK/C2kme7DMnFtlGUpRaVNUzPgrsZJZPhmkELCqDPQY3tadTq39o0R ZFhJOmpCy+gX9+5E0NxIxN0eZ+dFye0IYlb6te9xJy/6BLRksFtn/6pBX/kYeFZQJSrO 3CnQ== X-Gm-Message-State: ALQs6tCETbysm91ja8NLghlhTHMnmY0yR/uhoHy2zuiapIo1HHhNI5VK PKEsPgH/MpyXCIR8nXRwGziiy20v X-Google-Smtp-Source: AIpwx49Z0z6fu3hWrH957F97NSzPNx7OLkdVU3edlsds6unCikKfzl1gxCmczhhrWjqxQzsBfqv7VA== X-Received: by 2002:a24:6548:: with SMTP id u69-v6mr809059itb.29.1523342285279; Mon, 09 Apr 2018 23:38:05 -0700 (PDT) Received: from garuda.local ([172.58.46.140]) by smtp.gmail.com with ESMTPSA id u16sm954810ioi.37.2018.04.09.23.38.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 23:38:04 -0700 (PDT) From: Chris Marusich References: <871sfr2bsg.fsf@gmail.com> Date: Mon, 09 Apr 2018 23:38:01 -0700 Message-ID: <87k1tf5zxy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Pierre and Mathieu, Thank you for the bug report, Pierre! Mathieu, can you take a look at the patch I've attached to this email? It should fix this bug, but since you made similar changes in the past, I'd value your feedback. Pierre Neidhardt writes: > Would it be possible to separate the package name from the version > number with '@' instead? Pierre's suggestion makes sense to me. Starting with Mathieu's commit 1b846da8c372bee78851439fd9e72b2499115e5a about one year ago, we use "@" to separate the package name from the version in commands like "guix package -i ncdu@1.13" and also in exported scheme procedures like specification->package (defined in (gnu packages)). Before that, we used "-" instead of "@". When we made the change, it looks like we did not also update the "dependencies" output from commands like "guix package --show". I've attached a patch that fixes the issue. It applies cleanly to df154c05dc65025eac2d14ab45699b34c7a1c7c8 (the tip of the master branch at the time I drafted this email), and "make check" succeeds. With the change, the output now looks like this: $ ./pre-inst-env guix package --show=3Dncdu | recsel -p dependencies dependencies: ncurses@6.0-20170930 I was not able to run "make check-system" successfully, but there is no reason to suspect that the attached patch causes any problem, since the "check-system" target was already failing in the same way at commit df154c05dc65025eac2d14ab45699b34c7a1c7c8. I'll open up a separate bug report for that separate issue. Because I changed the package-full-name procedure, this also fixes the package names in other places, such as graphs produced by "guix graph". I'm not sure how many package rebuilds (if any?) this will cause, and I'd like to hear what Mathieu has to say about my patch, so I'll wait to push it until after I get feedback from him or another interested person. We should probably also regenerate the images in guix/doc/images (so that the delimiter used in the images is "@" instead of "-", although I'm not sure yet how to regenerate the source dot files. Mathieu, please let me know what you think! In the meantime, Pierre, you can work around the issue by writing a Guile script that gets the package version using the Guix API like so: scheme@(guile-user)> ,use (gnu packages ncdu) scheme@(guile-user)> ,use (guix packages) scheme@(guile-user)> (package-version ncdu) $1 =3D "1.13" If you aren't sure how to get started writing Guile scripts, please refer to the section "Running Guile Scripts" in the Guile manual. =2D-=20 Chris --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-guix-Separate-the-package-name-and-version-with-not.patch Content-Transfer-Encoding: quoted-printable From=2096160c457c852d88e9a584cb16eb7703b02d8de5 Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sun, 8 Apr 2018 16:51:42 -0700 Subject: [PATCH] guix: Separate the package name and version with "@", not "-". * guix/packages.scm (package-full-name): By default, use "@" to separate the package name and package version. Add #:delimiter keyword argument so that there is still a way to explicitly use a different delimiter. * gnu/packages/commencement.scm (gcc-boot0) : Adjust accordingly. * tests/graph.scm: Adjust accordingly. * tests/profiles.scm: Adjust accordingly. * NEWS: Mention the change. Fixes: . Reported by Pierre Neidhardt . =2D-- NEWS | 1 + gnu/packages/commencement.scm | 2 +- guix/packages.go.134WZR | 0 guix/packages.scm | 13 +++++++++---- tests/graph.scm | 4 ++-- tests/profiles.scm | 11 ++++++----- 6 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 guix/packages.go.134WZR diff --git a/NEWS b/NEWS index 2c898e65f..9769bfc87 100644 =2D-- a/NEWS +++ b/NEWS @@ -777,6 +777,7 @@ zynaddsubfx@3.0.2 =20 ** Programming interfaces =20 +*** package-full-name (guix packages) now uses "@" instead of "-" as its d= elimiter. *** New build systems: =E2=80=98font=E2=80=99, =E2=80=98meson=E2=80=99, = =E2=80=98minify=E2=80=99, =E2=80=98scons=E2=80=99, =E2=80=98texlive=E2=80=99 *** =E2=80=98cmake-build-system=E2=80=99 now supports cross-compilation *** Various improvements to =E2=80=98asdf-build-system=E2=80=99, =E2=80=98= emacs-build-system=E2=80=99, diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index fe9fbebcc..9506fbb2b 100644 =2D-- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -282,7 +282,7 @@ ;; Drop trailing letters, as gmp-6.0.0a unpacks ;; into gmp-6.0.0. `(symlink ,(string-trim-right =2D (package-full-name lib) + (package-full-name lib #:delimiter= "-") char-set:letter) ,(package-name lib))) (list gmp-6.0 mpfr mpc)))) diff --git a/guix/packages.go.134WZR b/guix/packages.go.134WZR new file mode 100644 index 000000000..e69de29bb diff --git a/guix/packages.scm b/guix/packages.scm index b5c0b6044..38e6344bf 100644 =2D-- a/guix/packages.scm +++ b/guix/packages.scm @@ -388,10 +388,11 @@ object." (define-condition-type &package-cross-build-system-error &package-error package-cross-build-system-error?) =20 =2D =2D(define (package-full-name package) =2D "Return the full name of PACKAGE--i.e., `NAME-VERSION'." =2D (string-append (package-name package) "-" (package-version package))) +(define* (package-full-name package #:key (delimiter "@")) + "Return the full name of PACKAGE--i.e., `NAME@VERSION'. By specifying +DELIMITER (a string), you can customize what will appear between the name = and +the version. By default, DELIMITER is \"@\"." + (string-append (package-name package) delimiter (package-version package= ))) =20 (define (%standard-patch-inputs) (let* ((canonical (module-ref (resolve-interface '(gnu packages base)) @@ -935,6 +936,10 @@ and return it." (($ name version source build-system args inputs propagated-inputs native-inputs self-native-input? outputs) + ;; Even though we prefer to use "@" to separate the package + ;; name from the package version in various user-facing par= ts + ;; of Guix, checkStoreName (in nix/libstore/store-api.cc) + ;; prohibits the use of "@", so use "-" instead. (or (make-bag build-system (string-append name "-" version) #:system system #:target target diff --git a/tests/graph.scm b/tests/graph.scm index 5faa19298..34bc55d2a 100644 =2D-- a/tests/graph.scm +++ b/tests/graph.scm @@ -134,8 +134,8 @@ edges." (map (lambda (destination) (list "p-0.drv" (string-append =2D (package-full-name destination) =2D ".drv"))) + (package-name destination) "-" + (package-version destination) ".drv"))) implicit))))))) =20 (test-assert "bag DAG" ;a big town in Iraq diff --git a/tests/profiles.scm b/tests/profiles.scm index 92eb08cb9..dd0e19967 100644 =2D-- a/tests/profiles.scm +++ b/tests/profiles.scm @@ -242,8 +242,9 @@ #:hooks '() #:locales? #t #:target target))) =2D (define (find-input name) =2D (let ((name (string-append name ".drv"))) + (define (find-input package) + (let ((name (string-append (package-name package) "-" + (package-version package) ".drv"))) (any (lambda (input) (let ((input (derivation-input-path input))) (and (string-suffix? name input) input))) @@ -252,12 +253,12 @@ ;; The inputs for grep and sed should be cross-build derivations, but = that ;; for the glibc-utf8-locales should be a native build. (return (and (string=3D? (derivation-system drv) (%current-system)) =2D (string=3D? (find-input (package-full-name packages:gre= p)) + (string=3D? (find-input packages:grep) (derivation-file-name grep)) =2D (string=3D? (find-input (package-full-name packages:sed= )) + (string=3D? (find-input packages:sed) (derivation-file-name sed)) (string=3D? (find-input =2D (package-full-name packages:glibc-utf8-local= es)) + packages:glibc-utf8-locales) (derivation-file-name locales)))))) =20 (test-assert "package->manifest-entry defaults to \"out\"" =2D-=20 2.17.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlrMW8kACgkQ3UCaFdgi Rp3DQQ//ZP/y0XsOZ2mZvAQQtKuGtvj+DSUDab/WTdowFAjqfYc8qqr4NcxHHGsk h57eNbTx531fMPQBwOt3aVmmZyvnx2fSyhaBaX9LnmPt/H6qKe4QIaYFWVvpGZsK gkoScXH0jvo53OmcDxBKR6pox8vfs+ZDOFCw22n3jLkMHAEqhhCS5SW2wsInIEJV Y3UrRXwFTM/1QZb+cdEiaXPf9dpTDupkAcxPfGTYD68chVd4gybVI34v3REnrUpD z6Cjgu+39Z5f06yHbOFSF0WizOddbJnaXsyieVOY6a6B681hUq4QBrj0tZStfF3S fNgtHpn8KHZkP0GMzpPdJ4oh2eqYguijq893sqBFmvPC0lDDCUghkBUH47hmsVmh cKQ4izS9dC7B75RGAxmbGZRxYZtstmzTnXbpPJZ5Zf136pGvjcOGn4wmHSTdQz82 ksQvJYJfYRIaRs4aUlEdMR8HbJS8JHg98qkgyZVof/cQMesobjn3vl18QZ8GgLQr rZCksm43UlUIbcg3Yct3c70DVL+COgzAOFTVeoKzuuXKBCMeLHS9n6xp49BUepSf LLiO00XtPCHHix/7181pqNgkNMu+iuDwnPY/TUTZjzK+7U3TIwj6KPxN0jvAS8dd FiVjvPL4k7HPtJ2fIrJ2yvXfObhD8nIUImoE/OzRvELmWnQXmlI= =jjSw -----END PGP SIGNATURE----- --==-=-=-- From unknown Mon Jun 23 04:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31088: Use '@' as version number separator in guix output Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 10 Apr 2018 07:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: Mathieu Lirzin , 31088@debbugs.gnu.org Received: via spool by 31088-submit@debbugs.gnu.org id=B31088.152334358822937 (code B ref 31088); Tue, 10 Apr 2018 07:00:02 +0000 Received: (at 31088) by debbugs.gnu.org; 10 Apr 2018 06:59:48 +0000 Received: from localhost ([127.0.0.1]:44502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5nFs-0005xt-Fr for submit@debbugs.gnu.org; Tue, 10 Apr 2018 02:59:48 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:36635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5nFr-0005xg-7q for 31088@debbugs.gnu.org; Tue, 10 Apr 2018 02:59:47 -0400 Received: by mail-pf0-f179.google.com with SMTP id g14so7482629pfh.3 for <31088@debbugs.gnu.org>; Mon, 09 Apr 2018 23:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=fLgRws8Ls04cuVEdIlIxHlAXr/5nP5irgZJyF59k6x8=; b=tP8UTDNsAcdzjncfctuWj3q1zm0zBowJG/VwnER0G9vEEKPpe1JlnK1q2IMBryX7Ug Hn0PcPLbYYeYdr0Q+Io0dRQiu36ytBc1HxWAfZEuiraFxYrLau1MI8MmfeLMPTsuVuLj O3ZeDrKV29ehB52gngJAd0s3/v90d/DwTxvkKY+x+5mucKMKzTULPZG5SZpIaRZJwhZc ZgVkdNPtmo4FEJWA5ffmNeNDFln81CSiNSoZMI3Zf+NwH7pN0lrnAvtcugHgukvhgYR8 H1av2Jl+mHdYz2pxROK0KFC9K6z7J/oNsdQhsxqMgvmRl+D+LRYwNmCa2iHhX/E7WESI lxuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=fLgRws8Ls04cuVEdIlIxHlAXr/5nP5irgZJyF59k6x8=; b=TVk7yVGbMYXt7zwQdrWS5yGiwPMa1kt12aDrE8GxhsNEYbOgkrQGqbuLhVZuvW13xf Ixt94PPedRj4rTLHn99pyUzcduZ4UWPoYdCWtZLGnyDE1/JBMG3mcBI3D6jjHSIUBRBs zH1hljLU9wxwe5a5vUVM4cFE9AiiqMYHAIO4ndi14jYcw5yo/X4WJ7p5NAG22gBfbXpX avb8MJimI3kECcSFWRQkDbpFhypUjs23tH0K7WFUJF5telhTCP18WjmFhqW7xi+5J0RF OuX3RglZDFEDshctrTt1sGBDK0SU/Vq0iv0/43PxT+1VXDG1Em4Y5XZmbaptCRafD6SY oyGg== X-Gm-Message-State: ALQs6tBysoMeLSShzt6yeGKpC0ehYDY6WAGdr+ZRaqt+rQnTzCU2bjvt aE4i6Wc14sLXaTV1l+UdD4L6GLz9 X-Google-Smtp-Source: AIpwx48I7Il/OSyDzo/6zX4jpZmeR+dwlwmAHGe0DwApUvRbWDJC/em45NDFMcmaoyHP3MWnt1iFHw== X-Received: by 10.101.92.199 with SMTP id b7mr6108561pgt.138.1523343581253; Mon, 09 Apr 2018 23:59:41 -0700 (PDT) Received: from mimimi ([103.61.255.46]) by smtp.gmail.com with ESMTPSA id i186sm4216524pfg.53.2018.04.09.23.59.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 23:59:40 -0700 (PDT) References: <871sfr2bsg.fsf@gmail.com> <87k1tf5zxy.fsf@gmail.com> User-agent: mu4e 1.0; emacs 25.3.1 From: Pierre Neidhardt In-reply-to: <87k1tf5zxy.fsf@gmail.com> Date: Tue, 10 Apr 2018 12:29:37 +0530 Message-ID: <87h8ojfsx2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thank you very much for the hard work! -- Pierre Neidhardt We totally deny the allegations, and we're trying to identify the allegators. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [103.61.255.46 listed in dnsbl.sorbs.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ambrevar[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.179 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.192.179 listed in wl.mailspike.net] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thank you very much for the hard work! =2D-=20 Pierre Neidhardt We totally deny the allegations, and we're trying to identify the allegator= s. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrMYNkACgkQm9z0l6S7 zH+SNwgAoJcsoazpi0TZLq3J6atcFq5SiCwxm1UxRgIwJEGdXV9zyG6wTDiObKhP Fe8R0nzZ1NL2WbXStAM010TM/OTrjvrczjFWY/MF1+pBbS78jK0cga7oBPBFiGCW e8YFiEZVhg+lWS4YJM2fn1qF38TyjJlIaAa5loDb3TPtgUitSTDG7cxuPJzD/FPV VBaQoR3e9YJrR6k5mFXApO14ma6meNoNXl9EmDgBK4B4SX5mPVX8wyd/j8vDXdEK C4rqQU9zvW7XOjvdbIUoww9bQTSjUz0u1cjrrgqYsdfGQvKiaX++Pv/BS78Y/we0 zXmy8NQ+1HPsNiK3zdtB94/o7D5VMw== =QLez -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Jun 23 04:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31088: Use '@' as version number separator in guix output Resent-From: Alex Kost Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 10 Apr 2018 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: 31088@debbugs.gnu.org, Mathieu Lirzin , Pierre Neidhardt Received: via spool by 31088-submit@debbugs.gnu.org id=B31088.152337907820795 (code B ref 31088); Tue, 10 Apr 2018 16:52:01 +0000 Received: (at 31088) by debbugs.gnu.org; 10 Apr 2018 16:51:18 +0000 Received: from localhost ([127.0.0.1]:45365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5wUI-0005PL-7d for submit@debbugs.gnu.org; Tue, 10 Apr 2018 12:51:18 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:37095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5wUG-0005P6-7C for 31088@debbugs.gnu.org; Tue, 10 Apr 2018 12:51:16 -0400 Received: by mail-lf0-f68.google.com with SMTP id m200-v6so12670899lfm.4 for <31088@debbugs.gnu.org>; Tue, 10 Apr 2018 09:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=dlh2l4dPYfHl7MoCbXxTExrKkgSW4d8mz+Octf9AnT4=; b=D3E9881NNpEgqHTqo2VujNPZ8wDpr0D1d22i8n+jzgGYsxeZQkh9EKcqGn+fO9KAqB E2ZKvMTlc9BfIoP9NZphfD+3BOyy+VVzqazvy0ehJy3kT2zlQ8RQPU5oGcUezu1v/DvQ MMpsVNZjm/tn8C8oD1WCp9LzXavtpHsoHtWjFSnm2lG/kEQM213Hj85KyedTa9htzCEq mkjqsikBt6kgBZcs8c6FRc+i/MxrzqRrHVofYO/IQb7M5YXPHqAi7kDLcnXl+SuJcs6x zFheznrWAA3iZx/O/38J+Chrg6PQLbbF8L2x6/YBnA6cCoAzc66smQ9pEcQGBVTvXgFY MxOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=dlh2l4dPYfHl7MoCbXxTExrKkgSW4d8mz+Octf9AnT4=; b=IXhx7jsz+rscrTNDdzWuf0MP/8T8JPvkPyGhto4jnBsXXwqk6RNTpb10ERZ8s5PzWs lNzR1hWFUmxpmGxj2/Fy+M+zso06jVqVmT5j/8wFAjJr0BU2ZSAwq2Vr+k2Gvx2CAmQ3 HUMIGU3Edzlc4if5jXj5deWkzbvLCpJoZrlbBKYJAdA0xW3hdfh0WZz27OUeVwZguo2W vPwnr07FTErn/FHsc16fUoNPEFUlffaVWGj+VC+uT4UIF8lRblOMDtUwCioLLXbCAVss cRDL6GDNCW1JvTNACZpDV8mdlIE/3jIC+QWhcl50zFaDGuayHTb7p+wS8Qk28mbWQeWk G2jQ== X-Gm-Message-State: ALQs6tAGlIXPU+BTl00aOGxs/rcfCLWA5kWvnyiFyuhXOESRfb5hzPv1 tSnGUFTMQVwFoRuhvjT5T4EchQ== X-Google-Smtp-Source: AIpwx4+fhDENdOrPgz1Msr+zlPjJKB/Y3WRBjVh7H2scKgwEmWZKT4NOIQl0O/udFB3MLTcxZXSldw== X-Received: by 2002:a19:1d12:: with SMTP id d18-v6mr701465lfd.128.1523379070209; Tue, 10 Apr 2018 09:51:10 -0700 (PDT) Received: from leviafan ([217.107.194.34]) by smtp.gmail.com with ESMTPSA id u19sm541219lje.29.2018.04.10.09.51.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Apr 2018 09:51:09 -0700 (PDT) From: Alex Kost References: <871sfr2bsg.fsf@gmail.com> <87k1tf5zxy.fsf@gmail.com> Date: Tue, 10 Apr 2018 19:51:09 +0300 In-Reply-To: <87k1tf5zxy.fsf@gmail.com> (Chris Marusich's message of "Mon, 09 Apr 2018 23:38:01 -0700") Message-ID: <87h8ojm2de.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Chris Marusich (2018-04-09 23:38 -0700) wrote: [...] > Because I changed the package-full-name procedure, this also fixes the > package names in other places, such as graphs produced by "guix graph". I recall there was some discussion about 'package-full-name' in the past but I remember nothing about it :-) Well, maybe it is not relevant at all, but I've found there was a proposition to use "@" in 'package-full-name' and it is still not used there. Look at: http://lists.gnu.org/archive/html/guix-devel/2016-04/msg01141.html -- Alex From unknown Mon Jun 23 04:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31088: Use '@' as version number separator in guix output Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 11 Apr 2018 04:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Pierre Neidhardt Cc: Mathieu Lirzin , 31088@debbugs.gnu.org Received: via spool by 31088-submit@debbugs.gnu.org id=B31088.152342169718669 (code B ref 31088); Wed, 11 Apr 2018 04:42:01 +0000 Received: (at 31088) by debbugs.gnu.org; 11 Apr 2018 04:41:37 +0000 Received: from localhost ([127.0.0.1]:45594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f67Zg-0004r3-Im for submit@debbugs.gnu.org; Wed, 11 Apr 2018 00:41:36 -0400 Received: from mail-pl0-f49.google.com ([209.85.160.49]:44616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f67Zf-0004qr-F0 for 31088@debbugs.gnu.org; Wed, 11 Apr 2018 00:41:35 -0400 Received: by mail-pl0-f49.google.com with SMTP id b6-v6so457122pla.11 for <31088@debbugs.gnu.org>; Tue, 10 Apr 2018 21:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=QEA/t7G9lBvZx9hFanvS/2wMy8EPH9S00IQ5P1/FElI=; b=j/pct5wJGiy16Pqv39TW7M95+Z5ziVvDUaNh8Wnr+/9fvK7/d1sTkrKisAWvGTHCZD XgTywULysyfpp6DMPxnufMoiv7boC9kpHGtlI22+qF5VXqtdRCIGBnCCwhs7CVUEMJGP XRyzEQ67fI7vuM7gZiEQXVSr0WQEIdZvyIxN8aYZw1w3HrAM4dpqtToHV/e7D8V/J2Mb YGrZubvnDK9v5+fFuCk9WnIC1USS0xOs/p5uP1C90S3OO3PHbtGo7DBTRQ/fd398xyqD s54Q1zoghOvmokyb6+wsOWoinXX2++clay6cF0lUp4pPsMN7hW8T4gcQ1M4qvNkLEC7N 171A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=QEA/t7G9lBvZx9hFanvS/2wMy8EPH9S00IQ5P1/FElI=; b=JqGh/Ls9eSRCiRWNf6kQy9JcOqLjm7AsWLrLN7ANgBTcYDy9CsMCJW2eP6fEJwGg9I Ud6LPmjxg85XwOr6teO6A0COGa1E24efvRj8/1v1mbF1BXChGEGK+xDwh52PFpNqnZA+ rTw5Dhk8ar0pdbWU/1E67nAltof1lGqsZTeqo5zUYCvJRVT04/HCSlx1PT91tNfr4AOO coUycDGnRxcDMSta6LUEYuJ/qTDqa7UIJDgGLFeYak3aLz5d1TQebp2cdx8uCp9uKACr i+aXc30ntrM/Y5YADP4Cv68wlbdUxp54wbz0Kl2ufyiHZbGfzyBxuND9n9JOtsrafXcv JIgA== X-Gm-Message-State: ALQs6tCCeJzY4zuin6Xg7yfhX6tnQ473eoXhF8l4rOCXfrrho4KLQODq u0bPi58wyIRrdqw4MTe+6f0J4GkJ X-Google-Smtp-Source: AIpwx49o6sXtk1UpRzO9sX+/ZyfxnLKPyjZNMRsV0fttGxrxA+t+X8j0eaoyyomdlo3POpsIfOlXcw== X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr3413927plf.288.1523421688957; Tue, 10 Apr 2018 21:41:28 -0700 (PDT) Received: from garuda.local (c-24-18-253-84.hsd1.wa.comcast.net. [24.18.253.84]) by smtp.gmail.com with ESMTPSA id v1sm557119pfg.144.2018.04.10.21.41.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Apr 2018 21:41:27 -0700 (PDT) From: Chris Marusich References: <871sfr2bsg.fsf@gmail.com> <87k1tf5zxy.fsf@gmail.com> Date: Tue, 10 Apr 2018 21:41:23 -0700 In-Reply-To: <87k1tf5zxy.fsf@gmail.com> (Chris Marusich's message of "Mon, 09 Apr 2018 23:38:01 -0700") Message-ID: <877epegxsc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Here's a new version of the patch. The only change is: I modified the tests (tests/graph.scm and tests/profiles.scm) so that they also use the package-full-name procedure's new #:delimiter keyword argument when necessary. I intended to do that from the start, but I forgot. Alex Kost writes: > Chris Marusich (2018-04-09 23:38 -0700) wrote: > > [...] >> Because I changed the package-full-name procedure, this also fixes the >> package names in other places, such as graphs produced by "guix graph". > > I recall there was some discussion about 'package-full-name' in the past > but I remember nothing about it :-) > > Well, maybe it is not relevant at all, but I've found there was a > proposition to use "@" in 'package-full-name' and it is still not used > there. Look at: > > http://lists.gnu.org/archive/html/guix-devel/2016-04/msg01141.html Yes, we need to be careful. The most obvious problem I encountered was that the Guix daemon prohibits "@" in store item names (which I learned only after attempting to change the delimiter everywhere and then running some tests). However, my patch does not put the "@" symbol into store item names. In fact, to be extra clear, I've added a comment to the package->bag procedure to explain why we can't use "@" there. I think the risk is fairly low that something in Guix itself will malfunction if we make this change, since I've looked at the call sites for package-full-name (in the guix Git repo only), I've run "make check" successfully, and I've verified manually that a handful of guix commands still function correctly. But you never really know until you try. We should probably still check in some other places before changing the default delimiter from "-" to "@". For example, we should probably check at least the following places: * Hydra * Cuirass * Emacs-Guix Where else should we check? If it's too risky, we can always make the default delimiter "-" and only change it to "@" in those places where we really need to (e.g., the package->recutils procedure in (guix ui), to fix this specific bug report). What do you think? =2D-=20 Chris --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-guix-Separate-the-package-name-and-version-with-not.patch Content-Transfer-Encoding: quoted-printable From=2067165c95ff9b52b7ae34d7c07778138548013ccd Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sun, 8 Apr 2018 16:51:42 -0700 Subject: [PATCH] guix: Separate the package name and version with "@", not "-". * guix/packages.scm (package-full-name): By default, use "@" to separate the package name and package version. Add #:delimiter keyword argument so that there is still a way to explicitly use a different delimiter. * gnu/packages/commencement.scm (gcc-boot0) : Adjust accordingly. * tests/graph.scm: Adjust accordingly. * tests/profiles.scm: Adjust accordingly. * NEWS: Mention the change. Fixes: . Reported by Pierre Neidhardt . =2D-- NEWS | 1 + gnu/packages/commencement.scm | 2 +- guix/packages.go.134WZR | 0 guix/packages.scm | 13 +++++++++---- tests/graph.scm | 3 ++- tests/profiles.scm | 12 ++++++------ 6 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 guix/packages.go.134WZR diff --git a/NEWS b/NEWS index 2c898e65f..9769bfc87 100644 =2D-- a/NEWS +++ b/NEWS @@ -777,6 +777,7 @@ zynaddsubfx@3.0.2 =20 ** Programming interfaces =20 +*** package-full-name (guix packages) now uses "@" instead of "-" as its d= elimiter. *** New build systems: =E2=80=98font=E2=80=99, =E2=80=98meson=E2=80=99, = =E2=80=98minify=E2=80=99, =E2=80=98scons=E2=80=99, =E2=80=98texlive=E2=80=99 *** =E2=80=98cmake-build-system=E2=80=99 now supports cross-compilation *** Various improvements to =E2=80=98asdf-build-system=E2=80=99, =E2=80=98= emacs-build-system=E2=80=99, diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index fe9fbebcc..9506fbb2b 100644 =2D-- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -282,7 +282,7 @@ ;; Drop trailing letters, as gmp-6.0.0a unpacks ;; into gmp-6.0.0. `(symlink ,(string-trim-right =2D (package-full-name lib) + (package-full-name lib #:delimiter= "-") char-set:letter) ,(package-name lib))) (list gmp-6.0 mpfr mpc)))) diff --git a/guix/packages.go.134WZR b/guix/packages.go.134WZR new file mode 100644 index 000000000..e69de29bb diff --git a/guix/packages.scm b/guix/packages.scm index b5c0b6044..38e6344bf 100644 =2D-- a/guix/packages.scm +++ b/guix/packages.scm @@ -388,10 +388,11 @@ object." (define-condition-type &package-cross-build-system-error &package-error package-cross-build-system-error?) =20 =2D =2D(define (package-full-name package) =2D "Return the full name of PACKAGE--i.e., `NAME-VERSION'." =2D (string-append (package-name package) "-" (package-version package))) +(define* (package-full-name package #:key (delimiter "@")) + "Return the full name of PACKAGE--i.e., `NAME@VERSION'. By specifying +DELIMITER (a string), you can customize what will appear between the name = and +the version. By default, DELIMITER is \"@\"." + (string-append (package-name package) delimiter (package-version package= ))) =20 (define (%standard-patch-inputs) (let* ((canonical (module-ref (resolve-interface '(gnu packages base)) @@ -935,6 +936,10 @@ and return it." (($ name version source build-system args inputs propagated-inputs native-inputs self-native-input? outputs) + ;; Even though we prefer to use "@" to separate the package + ;; name from the package version in various user-facing par= ts + ;; of Guix, checkStoreName (in nix/libstore/store-api.cc) + ;; prohibits the use of "@", so use "-" instead. (or (make-bag build-system (string-append name "-" version) #:system system #:target target diff --git a/tests/graph.scm b/tests/graph.scm index 5faa19298..a2941056d 100644 =2D-- a/tests/graph.scm +++ b/tests/graph.scm @@ -134,7 +134,8 @@ edges." (map (lambda (destination) (list "p-0.drv" (string-append =2D (package-full-name destination) + (package-full-name destination + #:delimiter "-") ".drv"))) implicit))))))) =20 diff --git a/tests/profiles.scm b/tests/profiles.scm index 92eb08cb9..218bf5f8a 100644 =2D-- a/tests/profiles.scm +++ b/tests/profiles.scm @@ -242,8 +242,9 @@ #:hooks '() #:locales? #t #:target target))) =2D (define (find-input name) =2D (let ((name (string-append name ".drv"))) + (define (find-input package) + (let ((name (string-append (package-full-name package #:delimiter "-= ") + ".drv"))) (any (lambda (input) (let ((input (derivation-input-path input))) (and (string-suffix? name input) input))) @@ -252,12 +253,11 @@ ;; The inputs for grep and sed should be cross-build derivations, but = that ;; for the glibc-utf8-locales should be a native build. (return (and (string=3D? (derivation-system drv) (%current-system)) =2D (string=3D? (find-input (package-full-name packages:gre= p)) + (string=3D? (find-input packages:grep) (derivation-file-name grep)) =2D (string=3D? (find-input (package-full-name packages:sed= )) + (string=3D? (find-input packages:sed) (derivation-file-name sed)) =2D (string=3D? (find-input =2D (package-full-name packages:glibc-utf8-local= es)) + (string=3D? (find-input packages:glibc-utf8-locales) (derivation-file-name locales)))))) =20 (test-assert "package->manifest-entry defaults to \"out\"" =2D-=20 2.17.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlrNkfMACgkQ3UCaFdgi Rp2Oaw//c7DYaxpsGoi8qXiFGlz7Cic6qiQ/yDguqPlQUdioYuAdy8M5lp7eYHlR ZMGIjYqoLV/InYLWmABKquA5CXm8wxMIkgdx2UspAHKg0iWlNJ4BUNvK6p8ecDsc eA39t/Erxij6hLjPEAyCmwAyAY0lfe0jy342RArrzogRcS7aXGHuDxB2T9kzR8qN dHVW39iItaG8W6m6fidJli7Q3ki2o+qaRIDLNVNLsO6g3uF9Ep0vN5neWCbkNWdS cx+ujW9vw/d+7tqr4QcwbGQK4BbVVBbZZFSiUwKHzM3G2zCnWRpwyPmN4L3AVQHv r2i0wXAWyYlVuTOOKIdpjyJj99FTnzZD5mPnKzPiOLbTkD40288uT59B17NVd41F L5V5YPK/tFD/uwE4QaknRxGfAn7XycnL1JEZl0Hqf7tG2mmCt+plZnA+zQs8tLw9 yt3Me/tkFIHL8/JYSXkZUCXX89ptpSo4bWn+0U0bnpkmKuhL98jGw8svc5uH+MSH RzJLtcP3ZeqY1H5LWZDhpLMqKUXjaKZeLWxri488/qM6fC1l4NaTnaC84O0gP1hT LfLybObL2TabijXGf1o1NusDVlmGfK9MC8B3DG/b9PSsSgtM1YMwZq0KSDQidd45 aJXkWqqW6a4P7q3q7jHb91nMLJCu3Y1neduavufAr1SeKq44meE= =OJy6 -----END PGP SIGNATURE----- --==-=-=-- From unknown Mon Jun 23 04:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31088: Use '@' as version number separator in guix output Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 01 May 2018 21:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: Mathieu Lirzin , 31088@debbugs.gnu.org, Pierre Neidhardt Received: via spool by 31088-submit@debbugs.gnu.org id=B31088.15252086832526 (code B ref 31088); Tue, 01 May 2018 21:05:01 +0000 Received: (at 31088) by debbugs.gnu.org; 1 May 2018 21:04:43 +0000 Received: from localhost ([127.0.0.1]:46143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDcS2-0000ef-Na for submit@debbugs.gnu.org; Tue, 01 May 2018 17:04:42 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:54326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDcS0-0000eX-LG for 31088@debbugs.gnu.org; Tue, 01 May 2018 17:04:41 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id C4FAB13B3B; Tue, 1 May 2018 23:04:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7q1pLjFUQ00n; Tue, 1 May 2018 23:04:38 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id BC4C3813; Tue, 1 May 2018 23:04:37 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <871sfr2bsg.fsf@gmail.com> <87k1tf5zxy.fsf@gmail.com> <877epegxsc.fsf@gmail.com> Date: Tue, 01 May 2018 23:04:37 +0200 In-Reply-To: <877epegxsc.fsf@gmail.com> (Chris Marusich's message of "Tue, 10 Apr 2018 21:41:23 -0700") Message-ID: <874ljrnl3u.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello Chris, Thanks for digging into this. Chris Marusich skribis: > From 67165c95ff9b52b7ae34d7c07778138548013ccd Mon Sep 17 00:00:00 2001 > From: Chris Marusich > Date: Sun, 8 Apr 2018 16:51:42 -0700 > Subject: [PATCH] guix: Separate the package name and version with "@", not > "-". > > * guix/packages.scm (package-full-name): By default, use "@" to separate > the package name and package version. Add #:delimiter keyword > argument so that there is still a way to explicitly use a different > delimiter. > * gnu/packages/commencement.scm (gcc-boot0) : Adjust > accordingly. > * tests/graph.scm: Adjust accordingly. > * tests/profiles.scm: Adjust accordingly. > * NEWS: Mention the change. > > Fixes: . > Reported by Pierre Neidhardt . [...] > diff --git a/NEWS b/NEWS > index 2c898e65f..9769bfc87 100644 > --- a/NEWS > +++ b/NEWS > @@ -777,6 +777,7 @@ zynaddsubfx@3.0.2 >=20=20 > ** Programming interfaces >=20=20 > +*** package-full-name (guix packages) now uses "@" instead of "-" as its= delimiter. This is under =E2=80=9CChanges in 0.14.0 (since 0.13.0)=E2=80=9D, which is = probably not what you want. :-) > +(define* (package-full-name package #:key (delimiter "@")) > + "Return the full name of PACKAGE--i.e., `NAME@VERSION'. By specifying > +DELIMITER (a string), you can customize what will appear between the nam= e and > +the version. By default, DELIMITER is \"@\"." I=E2=80=99d prefer #:optional instead of #:key, it=E2=80=99d be less verbos= e. Other than that, please make sure =E2=80=9Cmake check=E2=80=9D passes, and = make sure this doesn=E2=80=99t trigger a full rebuild (from the patch it looks you al= ready checked both of these, but who knows ;-)). OK with this. Thank you! Ludo=E2=80=99. From unknown Mon Jun 23 04:15:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Pierre Neidhardt Subject: bug#31088: closed (Re: bug#31088: Use '@' as version number separator in guix output) Message-ID: References: <87r2ml1jc3.fsf@gmail.com> <871sfr2bsg.fsf@gmail.com> X-Gnu-PR-Message: they-closed 31088 X-Gnu-PR-Package: guix Reply-To: 31088@debbugs.gnu.org Date: Wed, 09 May 2018 05:37:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1525844225-24936-1" This is a multi-part message in MIME format... ------------=_1525844225-24936-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31088: Use '@' as version number separator in guix output which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31088@debbugs.gnu.org. --=20 31088: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31088 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1525844225-24936-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31088-done) by debbugs.gnu.org; 9 May 2018 05:36:47 +0000 Received: from localhost ([127.0.0.1]:54707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGHmR-0006Tm-7I for submit@debbugs.gnu.org; Wed, 09 May 2018 01:36:47 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:45118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGHmO-0006TY-SU for 31088-done@debbugs.gnu.org; Wed, 09 May 2018 01:36:45 -0400 Received: by mail-pg0-f51.google.com with SMTP id w3-v6so1634235pgv.12 for <31088-done@debbugs.gnu.org>; Tue, 08 May 2018 22:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version; bh=r5T0VM02nEmpSpuWtZqNGQW0KGMZhTTCSFQD838cbA0=; b=CIAI9Y2pxYDhN9gWPCPhpaxWdO6UVzLttH0nECKRtf7oWg1oBnVLnBxVqaHEE8Pl6w ymoSNYbSLdq+RB2qAb6Zujdjlv3xirJjA3u3zBrsEdqr+NydFRcalDsE3ISOd4T1YDTF G3mVSmvaYyHxQsc56dXuRWJArlpB9HTn8mYJDK7jqRR+HkDMXBiNupTdfsfSXDKZ2bgm v8vjHGf7MgCZNJqWX1yao6KgECZRgoceg9ZDt/DvC+sl0tbeKvMQOIFW+9tF26L/61co Sv2c2aAgYDusP+q9pdjo5lSuQLxZlRRbnOetMPaRnNm+Dkwd+2OWxfmpFP4OFJF9eEwc LtYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version; bh=r5T0VM02nEmpSpuWtZqNGQW0KGMZhTTCSFQD838cbA0=; b=jcnSiwsOPfOxd48fbp2QZag8ZLgOpyXnTy0tbePTXPDgjWZZPPlPTwyAaJd9D3ZNb9 Veld0xqIQeGgGus/+6tN8tzoyELiTCyYOWxEQqRAbASCfWjVva4KAjjd6vxncy8z2c4K mX9U5LnM2o07xhr2e64AAtgGPu+Ky6Hv6Rwpxf8Epb5W316QzXOUe1bRJAqDWiSlBBd0 SikRHHyZDqzWXLGUYP3Z1vBbEM6JThRxF5ezu2FhqvHTC/QcbgnqVhakoXstL/E2p5lS WfWoKYT6ibfd9TAO3yJrZbNlLARE8ysu6PVeYCJhw9NfhEpz6proTau+HXn1eWLZp/j5 GgUw== X-Gm-Message-State: ALQs6tB2y9giR5BhhvOKljfbWtgt8ZybYGg2A7QFjfwwWE0tV4cXDgkG MGw5ddo4e0R7nLRiNTH1avsgyg== X-Google-Smtp-Source: AB8JxZqET1X4hkThJZ+a0/J/EeLQTAgIdUG2urOY1Aet+F8WTDma0ZN89lr+10MtgydK9nUoHuXzDA== X-Received: by 10.98.8.69 with SMTP id c66mr30850165pfd.189.1525844198351; Tue, 08 May 2018 22:36:38 -0700 (PDT) Received: from garuda.local ([2601:602:9d02:4725:6495:ba21:1ebe:620a]) by smtp.gmail.com with ESMTPSA id q76sm56676108pfi.139.2018.05.08.22.36.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 22:36:36 -0700 (PDT) From: Chris Marusich To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=), Mathieu Lirzin , Pierre Neidhardt Subject: Re: bug#31088: Use '@' as version number separator in guix output References: <871sfr2bsg.fsf@gmail.com> <87k1tf5zxy.fsf@gmail.com> <877epegxsc.fsf@gmail.com> <874ljrnl3u.fsf@gnu.org> Date: Tue, 08 May 2018 22:36:28 -0700 Message-ID: <87r2ml1jc3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31088-done Cc: 31088-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi everyone! I've committed this as ede121de426f9c56820852888a0b370f0ccbce49 on the master branch. If anything breaks on Hydra or elsewhere, please don't hesitate to revert it. ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> diff --git a/NEWS b/NEWS >> index 2c898e65f..9769bfc87 100644 >> --- a/NEWS >> +++ b/NEWS >> @@ -777,6 +777,7 @@ zynaddsubfx@3.0.2 >>=20=20 >> ** Programming interfaces >>=20=20 >> +*** package-full-name (guix packages) now uses "@" instead of "-" as it= s delimiter. > > This is under =E2=80=9CChanges in 0.14.0 (since 0.13.0)=E2=80=9D, which i= s probably not > what you want. :-) Ah! Good catch. I've added a new section for 0.15.0 - which I'm sure will be released soon! ;-) >> +(define* (package-full-name package #:key (delimiter "@"))> > + "Return the full name of PACKAGE--i.e., `NAME@VERSION'. By specifying >> +DELIMITER (a string), you can customize what will appear between the na= me and >> +the version. By default, DELIMITER is \"@\"." > > I=E2=80=99d prefer #:optional instead of #:key, it=E2=80=99d be less verb= ose. Sounds good. I've implemented your suggestion. > Other than that, please make sure =E2=80=9Cmake check=E2=80=9D passes, an= d make sure > this doesn=E2=80=99t trigger a full rebuild (from the patch it looks you = already > checked both of these, but who knows ;-)). I've confirmed the following: 1) It builds, and "make check" passes [1]. 2) It does not trigger a full rebuild. I tested this by first invoking "./pre-inst-env guix system build gnu/system/examples/desktop.tmpl" before and after the change. 3) I reconfigured my own system a few days ago, too, using this change. So far, I have observed no problems. > OK with this. Thank you for the review! And thank you, Pierre, for reporting the bug! Footnotes:=20 [1] tests/guix-system.sh fails, but it was already failing on the master branch. I will open a bug report for that if there is not already one open. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlryiNwACgkQ3UCaFdgi Rp1tGRAAne+icVDKcC3S+w0+9Ibn5LCerQjGfiWPYWKybYUDp9eUvjyrJqxFIGv8 lTEyztYfDPp3aerE0NszivQgzGAV+CnAcL9dhc8UDX3AKYKj6FW5vb8VK4ktSy+j RSfuxwdmYM8jCb0ha4XSlA91dvsMvmf45Zc4cp3UoB2vN94c5CIMUPKtlve9ULaX sXG+eolp46bUAndX4obUMtQhO/YwC07dLdK66IIAx4wsgmySevJU5Bc74i+aK07E r5E3brQbRKOVrPS8luxXxCWbFi5YAGJYRzfvmbeC178Y1rivYbmPWmhKq7HSfqP1 8r/3vEwE4bHBrVApzOEY3+H5OgReeNL/BCQoTUNWIglMjXadbsayE3Sy2zh2CJJE EG7FXTBu+vprbSzpbLNtLoOVzo5u3PhZ7Kdim/64VLs4f9vkgOO7xASMRauoSCgv DjHJspP1uwMVgAh19OMyEvlrt54OSaszgvlY6k2yBCFerM4/UkFInzgMuCQVI8/O bDh9XmUDnQ7Xmn4MxH/7uDNoafxvhKzzSj0UcaspYEPs8ZbBBOJBIQpUOnORSCS+ Z/T8rbbiYX0wevetTrDTeULaErxqzlbHRCYTJw5hUrr46w5SIayj14ljqKu5w4sa Vy9/y0QleH2e/bZ1n3QtoN8pjK/QKjUw6ujySGkM324dBhN5Fd0= =GP6N -----END PGP SIGNATURE----- --=-=-=-- ------------=_1525844225-24936-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Apr 2018 16:59:12 +0000 Received: from localhost ([127.0.0.1]:41454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4rBI-0002mk-Ig for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4rBH-0002mY-N4 for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4rBB-0006vE-QL for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f4rBB-0006uX-FZ for submit@debbugs.gnu.org; Sat, 07 Apr 2018 12:59:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4rBA-0000r7-3g for bug-guix@gnu.org; Sat, 07 Apr 2018 12:59:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4rB6-0006qn-90 for bug-guix@gnu.org; Sat, 07 Apr 2018 12:59:04 -0400 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:42758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4rB6-0006qP-1o for bug-guix@gnu.org; Sat, 07 Apr 2018 12:59:00 -0400 Received: by mail-pf0-x229.google.com with SMTP id o16so2940409pfk.9 for ; Sat, 07 Apr 2018 09:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=1nBlWRZAhc58Wu2z/qWE0Qsfo5zTWpfh7gl3x9rflgw=; b=Pj6drv+W92vDaTkuxJju9G+8nqKGkEYFwiz4Dx5lG1l4rFoEwrzItgApPvsUupyP5w RSt3eurSNka0bEewRdNusaug369GShg9IPrkx4zlpG4fSyd3PQqUHrMGnA5p/H+UpvBF OWJAT2hJS1PV9Bnb9ahDB/+sGsR2Ms52UAOE5nGGvJpMrLgdDzVEQI7ac1vxXE43xw19 uAsoudmVCUI3xvfa5jdESdMnysg3PmIeKw+XiHYj/JDyFJ2WvTGGFsoYFdRNwJae1Vjw nxms9TYdYUv8YwalxPxdIJVr5JScKqIZpVdELbW9EFtzoEi/Q40Mikz2M25HHvS8X5e4 QU2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=1nBlWRZAhc58Wu2z/qWE0Qsfo5zTWpfh7gl3x9rflgw=; b=MKT53YOGZdfaHMhULTgfTZOcm4aK2kUTGS8mDTSaAABKwwo/gvzIoh97eemYgaMfSC j8kRe7PmQ4/JJC3Fg0dJvEXBlRlKqp/5w0z8REIzRGtN9p6ePSUnSrHfmiJld4nsYwgU x5ouo6DWC6IasFMyY/+Zy/fTKsPccekkXgJ+HRwchoWMxe3f2EfLZWVZOouu/tc8eZNp Hf46WGmJGvzC8+c5TW8rWoI13EvyWpnNVl3+de0vN7evPKO97vbXRjsxJloCEHl38fKH JkXiedE9cQQDEIMix7N8mBRlbFz+c8pdfkBiS8tP+BowaXdapHYXyjrAAiawMxNZNys9 gDXg== X-Gm-Message-State: AElRT7FVxIOGPwQHV/n8TYhapG3hOc9P7x1mz0gBSAnf/zpzZC9sAts0 Qj3Z5IweX9DBreTqQlHiuqyTdg== X-Google-Smtp-Source: AIpwx49vJDX0f4WKC2quAW/zRZj85nHYKRUK8CMuq4aF2qecnwELvozv2p36MDhi2kls/n1YxmS7ug== X-Received: by 10.98.73.214 with SMTP id r83mr24130534pfi.76.1523120338812; Sat, 07 Apr 2018 09:58:58 -0700 (PDT) Received: from mimimi ([103.61.255.46]) by smtp.gmail.com with ESMTPSA id g11sm17249675pgu.56.2018.04.07.09.58.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Apr 2018 09:58:58 -0700 (PDT) User-agent: mu4e 1.0; emacs 25.3.1 From: Pierre Neidhardt To: bug-guix@gnu.org Subject: Use '@' as version number separator in guix output Date: Sat, 07 Apr 2018 22:28:55 +0530 Message-ID: <871sfr2bsg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) --=-=-= Content-Type: text/plain At the moment it seems that there is no syntactic different between the name and the version number in the output of Guix. The other day I tried to extract the version number of package dependencies with "everything after the last '-'", until I stumbled on the following: > guix package --show=ncdu | recsel -R dependencies ncurses-6.0-20170930 Here the version number contains a '-'. Because of this it makes the problem undecidable I think. Would it be possible to separate the package name from the version number with '@' instead? -- Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrI+M8ACgkQm9z0l6S7 zH/GqQf9EVSTCZYR99OL8A9qWx1H6WQhcwDPta4LNkirYTAY9GrcW/LeS4mLtcUC 9LwDr4XbYh+s14aS0s/bMIa2Q7iplK1koOekYyPvpuyq7MI+tteR2hFH1a6U2LKv 7MTBb8WvFjTkPx3H4tvHBHLun7MtSixOuvjLMOGOtJ3BU2KemYo3/iON8lCSID3s xgH+UCzeMIY4MISAcicm0MVBFEv3rMWCAkmIKd1AoBEFyqgzMXBmAy8p+n7UkH3B qROoXLc4fBcOfN7kGtPv4ZT8jjgm+b2g5lBcLdOMAcZt3jqauxPpeU3rb09z+XN/ ZLPI0xbNy5ReUxEo8EOjSVjp4X2DcA== =BjhV -----END PGP SIGNATURE----- --=-=-=-- ------------=_1525844225-24936-1-- From unknown Mon Jun 23 04:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31088: Use '@' as version number separator in guix output Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 09 May 2018 09:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: 31088-done@debbugs.gnu.org, Mathieu Lirzin , Pierre Neidhardt Received: via spool by 31088-done@debbugs.gnu.org id=D31088.152585734214217 (code D ref 31088); Wed, 09 May 2018 09:16:01 +0000 Received: (at 31088-done) by debbugs.gnu.org; 9 May 2018 09:15:42 +0000 Received: from localhost ([127.0.0.1]:54811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGLCH-0003gw-PB for submit@debbugs.gnu.org; Wed, 09 May 2018 05:15:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGLCG-0003ZJ-1R for 31088-done@debbugs.gnu.org; Wed, 09 May 2018 05:15:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGLCA-0003cN-7R for 31088-done@debbugs.gnu.org; Wed, 09 May 2018 05:15:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGLC6-0003Yn-R5; Wed, 09 May 2018 05:15:30 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48232 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fGLC5-0007ka-Sl; Wed, 09 May 2018 05:15:30 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <871sfr2bsg.fsf@gmail.com> <87k1tf5zxy.fsf@gmail.com> <877epegxsc.fsf@gmail.com> <874ljrnl3u.fsf@gnu.org> <87r2ml1jc3.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 =?UTF-8?Q?Flor=C3=A9al?= an 226 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: Wed, 09 May 2018 11:15:28 +0200 In-Reply-To: <87r2ml1jc3.fsf@gmail.com> (Chris Marusich's message of "Tue, 08 May 2018 22:36:28 -0700") Message-ID: <87k1sdyytr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hey Chris, Chris Marusich skribis: > I've committed this as ede121de426f9c56820852888a0b370f0ccbce49 on the > master branch. If anything breaks on Hydra or elsewhere, please don't > hesitate to revert it. Awesome, thank you! Ludo=E2=80=99.