all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ben Woodcroft <b.woodcroft@uq.edu.au>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: [PATCH] Add rubygems updater.
Date: Sat, 02 Jan 2016 21:54:17 +0100	[thread overview]
Message-ID: <87mvsnya6e.fsf@gnu.org> (raw)
In-Reply-To: <568715B9.5060803@uq.edu.au> (Ben Woodcroft's message of "Sat, 2 Jan 2016 10:11:37 +1000")

Ben Woodcroft <b.woodcroft@uq.edu.au> skribis:

> On 02/01/16 04:17, Ludovic Courtès wrote:
>> Ben Woodcroft <b.woodcroft@uq.edu.au> skribis:
>>
>>> On 01/01/16 19:28, Pjotr Prins wrote:
>>>> On Fri, Jan 01, 2016 at 06:27:21PM +1000, Ben Woodcroft wrote:
>>>>> It seems there's 30 packages to be updated, out of the 107 in
>>>>> ruby.scm. Going through each of these individually seems a little
>>>>> tedious, can we do them in bulk somehow or do they have to be
>>>>> committed individually? Building and testing all packages that
>>>>> require these packages would be a start - is there any way to list
>>>>> all dependent packages?
>>>>>
>>>>> gnu/packages/ruby.scm:2807:13: ruby-cutest would be upgraded from
>>>>> 1.2.2 to 1.2.3
>>>>> gnu/packages/ruby.scm:333:13: ruby-rspec-mocks would be upgraded
>>>>> from 3.2.1 to 3.4.0
>>>> (etc)
>>>>
>>>> I don't think it is a good idea to automatically update
>>>> packages. Reason being that packages should be updated by someone who
>>>> is actively using that new version. Automated tests are one thing,
>>>> real user feedback another. Not to mention that many gems don't have
>>>> tests ;).
>>> I think we should update the package definitions so that more have
>>> tests, and failing that import the library so we know it can at least
>>> be loaded, like this:
>>>
>>> +     `(#:phases
>>> +       (modify-phases %standard-phases
>>> +         (replace 'check
>>> +           (lambda _
>>> +             (zero? (system* "ruby" "-Ilib" "-r" "ansi")))))))
>> The only case where this would make a difference is for leaf packages,
>> no?  In all the other cases, building dependent packages will ensure
>> that the package at hand works as expected.
> Sure, but even in the case where they aren't leaf packages at least
> the build error gets thrown when building the package at
> fault. There's also the important difference that it makes the
> packager feel less bad about the disappointing lack of tests or the
> necessity of disabling them because of circular dependencies.

Right.  The only downside I can think of is if packagers have to copy
the above 4 lines in each and every package.  Can you think of a way
that would avoid that?

Ludo’.

  reply	other threads:[~2016-01-02 20:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-01  8:27 [PATCH] Add rubygems updater Ben Woodcroft
2016-01-01  9:28 ` Pjotr Prins
2016-01-01 11:18   ` Ben Woodcroft
2016-01-01 11:42     ` Pjotr Prins
2016-01-01 18:17     ` Ludovic Courtès
2016-01-02  0:11       ` Ben Woodcroft
2016-01-02 20:54         ` Ludovic Courtès [this message]
2016-01-03  0:50           ` Ben Woodcroft
2016-01-03 14:06             ` Ludovic Courtès
2016-01-05 13:57               ` Ben Woodcroft
2016-01-05 14:56                 ` Ricardo Wurmus
2016-01-08 18:18                 ` Ludovic Courtès
2016-01-02  3:43       ` 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

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

  git send-email \
    --in-reply-to=87mvsnya6e.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=b.woodcroft@uq.edu.au \
    --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.