unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add ruby 1.8.7
Date: Sun, 26 Oct 2014 21:43:22 -0400	[thread overview]
Message-ID: <87siiap9s5.fsf@yeeloong.lan> (raw)
In-Reply-To: <20141026234436.GA21721@thebird.nl> (Pjotr Prins's message of "Mon, 27 Oct 2014 00:44:36 +0100")

Pjotr Prins <pjotr.public12@thebird.nl> writes:

> On Sun, Oct 26, 2014 at 07:33:51PM -0400, Mark H Weaver wrote:
>> Pjotr Prins <pjotr.public12@thebird.nl> writes:
>> >     * gnu/packages/ruby.scm: Added older Ruby 1.8.7
>> 
>> According to our conventions, this should be:
>> 
>> * gnu/packages/ruby.scm (ruby-1.8): New variable.
>
> Is a new package a variable? 

'ruby-1.8' is a Scheme variable that's bound to a package object.

I admit that I'm not fond of this convention -- I'd prefer "New package"
-- but it's what we've been doing, anyway.

> We used the same message with ruby2.  Where can I find these
> conventions, btw?

In broad strokes, we use the GNU changelog conventions:

  http://www.gnu.org/prep/standards/html_node/Change-Logs.html

but with some minor formatting differences.  However, the best thing is
to look in the commit history for examples close to what you're doing.

There is brief mention of this in the "Submitting Patches" section of
the HACKING file in the source tree.

>> It looks like the 'native-search-paths' field needs to be overridden,
>> since the existing one has "2.1.3" in it.
>
> I don't think it is used by 1.8.7. Does that matter?

Yes, otherwise users who install ruby 1.8.7 will be advised to set
GEM_PATH to $HOME/.guix-profile/lib/ruby/gems/2.1.3.

If setting GEM_PATH is not appropriate when using ruby 1.8.7, then you
should override it here to be the empty list, like so:

  (native-search-paths '())

     Thanks,
       Mark

  parent reply	other threads:[~2014-10-27  1:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-26 20:31 [PATCH] gnu: Add ruby 1.8.7 Pjotr Prins
2014-10-26 23:33 ` Mark H Weaver
2014-10-26 23:44   ` Pjotr Prins
2014-10-26 23:53     ` Pjotr Prins
2014-10-27  0:53       ` David Thompson
2014-10-27  1:44         ` Pjotr Prins
2014-10-27  1:43     ` Mark H Weaver [this message]
2014-10-27  1:56       ` Pjotr Prins
2014-10-27  4:11         ` Mark H Weaver
2014-10-27  9:05           ` ‘strip’ phase Ludovic Courtès
2014-10-27  9:28             ` Mark H Weaver
2014-10-27 12:16               ` Ludovic Courtès
2014-10-27 14:23                 ` Mark H Weaver
2014-11-22 11:53                   ` Ludovic Courtès
2014-10-27  5:17   ` [PATCH] gnu: Add ruby 1.8.7 Pjotr Prins

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=87siiap9s5.fsf@yeeloong.lan \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    --cc=pjotr.public12@thebird.nl \
    /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).