From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:45878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwMrM-0003QM-UJ for guix-patches@gnu.org; Wed, 20 Feb 2019 03:04:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwMrM-0005tq-5k for guix-patches@gnu.org; Wed, 20 Feb 2019 03:04:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwMrK-0005tD-IS for guix-patches@gnu.org; Wed, 20 Feb 2019 03:04:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gwMrK-0006M7-Bg for guix-patches@gnu.org; Wed, 20 Feb 2019 03:04:02 -0500 Subject: [bug#34514] [PATCH 01/34] gnu: Add ruby-hamster. Resent-Message-ID: References: <87sgwm44a9.fsf@cbaines.net> <20190217192314.5666-1-mail@cbaines.net> <877edwwwi2.fsf@elephly.net> <87a7irgzh5.fsf@cbaines.net> From: Ricardo Wurmus In-reply-to: <87a7irgzh5.fsf@cbaines.net> Date: Wed, 20 Feb 2019 08:48:11 +0100 Message-ID: <874l8yvr2c.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 34514@debbugs.gnu.org Christopher Baines writes: > Ricardo Wurmus writes: > >> Christopher Baines writes: >> >>> * gnu/packages/ruby.scm (ruby-hamster): New variable. >> [=E2=80=A6] >>> + (add-after 'unpack 'remove-unnecessary-dependencies >>> + (lambda _ >>> + ;; pry is a debugging tool, and is unnecessary when running= the >>> + ;; tests >>> + (substitute* "spec/lib/hamster/vector/insert_spec.rb" >>> + (("require 'pry'") "")) >>> + (substitute* "spec/spec_helper.rb" >>> + (("require \"pry\"") "") >> >> We have a ruby-pry package. Wouldn=E2=80=99t it be nicer to add it inst= ead of >> patching the sources? > > It would make the package definition simpler, but it would lead to > redundant rebuilds of this package, and all of it's dependants if the > ruby-pry package changed. > > The ideal situation would be for things like this to be optional, but I > think where this isn't the case, it's worth putting some effort in to > the package definition to avoid unnecessary dependencies. Okay, sounds fine to me. --=20 Ricardo