all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Woodcroft <donttrustben@gmail.com>
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH 2/2] gnu: Add ruby-puma.
Date: Fri, 10 Jun 2016 19:37:13 +1000	[thread overview]
Message-ID: <575A8A49.8070206@gmail.com> (raw)
In-Reply-To: <CAJ=RwfaZoSZwHNtMyzCbT6Shqj6nLMhyvJu0OciAvn6tVvQKkg@mail.gmail.com>

Thanks Dave.

On 08/06/16 23:13, Thompson, David wrote:
> On Wed, Jun 8, 2016 at 8:55 AM, Ben Woodcroft <donttrustben@gmail.com> wrote:
>> +         (add-before 'build 'fix-gemspec
>> +           (lambda _
>> +             (substitute* "puma.gemspec"
>> +               (("git ls-files") "find * |sort"))
>> +             #t)))))
> Food for thought: With the prevalence of "git ls-files" in gemspecs
> (thanks to Bundler), maybe we should consider adding a phase to
> ruby-build-system that performs this substitution.

Sounds good to me. Next time..

>> +    (native-inputs
>> +     `(("ruby-hoe" ,ruby-hoe)
>> +       ("ruby-rake-compiler" ,ruby-rake-compiler)
>> +       ("ruby-hoe-git" ,ruby-hoe-git)
>> +       ("ruby-rack" ,ruby-rack)))
> Why are these native inputs?  rake-compiler makes sense because it's
> build-time only, but rack is most definitely a runtime dependency that
> should be in propagated-inputs.  What environment have you been using
> to test these packages?

Well, I did send this off a bit too quickly, in part because I still 
cannot get containers working after updating Ubuntu.
https://lists.gnu.org/archive/html/help-guix/2016-05/msg00003.html

You were right about the inputs to hoe-git. However, as it turns out I'm 
not sure rack is needed for puma, actually. For instance this works with 
the current patch:
$ cat >/tmp/config.ru

run Proc.new { |env| ['200', {'Content-Type' => 'text/html'}, ['get rack\'d']] }

$ environment --pure --ad-hoc ruby ruby-puma -- puma /tmp/config.ru

Also, rack is not mentioned in the gemspec. WDYT?

ben

      reply	other threads:[~2016-06-10  9:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08 12:55 (unknown), Ben Woodcroft
2016-06-08 12:55 ` [PATCH 1/2] gnu: Add ruby-hoe-git Ben Woodcroft
2016-06-08 13:09   ` Thompson, David
2016-06-08 12:55 ` [PATCH 2/2] gnu: Add ruby-puma Ben Woodcroft
2016-06-08 13:13   ` Thompson, David
2016-06-10  9:37     ` Ben Woodcroft [this message]

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

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

  git send-email \
    --in-reply-to=575A8A49.8070206@gmail.com \
    --to=donttrustben@gmail.com \
    --cc=dthompson2@worcester.edu \
    --cc=guix-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.