From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH 0/2]: ruby-build-system: Extract gemspec during configure. Date: Sun, 22 May 2016 09:16:59 +1000 Message-ID: <1463872621-17738-1-git-send-email-donttrustben@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4G94-0004iW-Je for guix-devel@gnu.org; Sat, 21 May 2016 19:17:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4G8y-0003kl-Jo for guix-devel@gnu.org; Sat, 21 May 2016 19:17:21 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:35822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4G8y-0003kh-Cd for guix-devel@gnu.org; Sat, 21 May 2016 19:17:16 -0400 Received: by mail-pa0-x22d.google.com with SMTP id tb2so33556108pac.2 for ; Sat, 21 May 2016 16:17:15 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id e7sm36354692pfa.28.2016.05.21.16.17.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 May 2016 16:17:13 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Previously the gemspec was extracted during the build phase. The problem was that this was then immediately used to build the gem, leaving no ability to modify it before building (without replacing the entire phase). I figure building a gemspec is kind of like a configure, so made the extraction step the configure step. I built quite a few ruby packages and didn't come across an error, but this does require a rebuild of all ruby packages. The first patch makes the change, and the second is an example of how it can be useful. Thanks in advance for the review. ben [PATCH 1/2] guix: ruby-build-system: Extract gemspec during configure. [PATCH 2/2] gnu: ruby-nokogiri: Update to 1.6.7.2.