unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Mathieu Lirzin <mthl@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] guix: use '@' in package-full-name instead of '-'
Date: Thu, 28 Apr 2016 14:07:05 +0200	[thread overview]
Message-ID: <87eg9qhr86.fsf@gnu.org> (raw)
In-Reply-To: <87y47yuop7.fsf@gnu.org> (Mathieu Lirzin's message of "Thu, 28 Apr 2016 10:23:16 +0200")

Mathieu Lirzin <mthl@gnu.org> skribis:

> Cyril Roelandt <tipecaml@gmail.com> writes:
>
>> * guix/packages.scm (package-full-name): Use '@' instead of '-'.
>> ---
>>  guix/packages.scm | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/guix/packages.scm b/guix/packages.scm
>> index d62d1f3..e33791e 100644
>> --- a/guix/packages.scm
>> +++ b/guix/packages.scm
>> @@ -346,7 +346,7 @@ name of its URI."
>>  
>>  (define (package-full-name package)
>>    "Return the full name of PACKAGE--i.e., `NAME-VERSION'."
>> -  (string-append (package-name package) "-" (package-version package)))
>> +  (string-append (package-name package) "@" (package-version package)))
>>  
>>  (define (%standard-patch-inputs)
>>    (let* ((canonical (module-ref (resolve-interface '(gnu packages base))
>
> Unfortunately, changing this is not as simple.
>
> When implementing the '-' to '@' thing, I have proposed to switch
> ‘package-full-name’.  While I still think it would make sense for it to
> use '@', it would require a full rebuild of every package + extra care.

No no, no full rebuild, only extra care.  :-)

> For example among other things the tests will not be happy for ‘guix
> graph‘ IIRC, and the Guix website uses it to access Hydra links.

Right, there are a few places that sorta expect a hyphen; the thing that
generates <http://gnu.org/s/guix/packages> is the only one that comes to
mind, though.

When discussing the patch series for the @ syntax, we discussed at one
point making the delimiter of ‘package-full-name’ an optional parameter
that would default to @.  It appears in the patch at:

  https://lists.gnu.org/archive/html/guix-devel/2016-01/msg00873.html

I’m not sure why we dropped it, but we should try to reinstate it.

Cyril, can you make the delimiter an optional argument and see whether
‘make check’ passes?

Thanks!

Ludo’.

  reply	other threads:[~2016-04-28 12:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-28  2:25 [PATCH] guix: use '@' in package-full-name instead of '-' Cyril Roelandt
2016-04-28  3:03 ` Eric Bavier
2016-04-28  8:23 ` Mathieu Lirzin
2016-04-28 12:07   ` Ludovic Courtès [this message]
2016-04-28  8:46 ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eg9qhr86.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mthl@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).