From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: [PATCH 0/3] Add a generalized `wrap-language-programs` Date: Wed, 16 Nov 2016 14:27:31 +0100 Message-ID: <20161116132734.5943-1-alex@pompo.co> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c70Fl-0004Xk-Sk for guix-devel@gnu.org; Wed, 16 Nov 2016 08:27:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c70Fh-00029l-Tk for guix-devel@gnu.org; Wed, 16 Nov 2016 08:27:53 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:38315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c70Fh-00029V-KF for guix-devel@gnu.org; Wed, 16 Nov 2016 08:27:49 -0500 Received: by mail-wm0-x22b.google.com with SMTP id f82so73162148wmf.1 for ; Wed, 16 Nov 2016 05:27:49 -0800 (PST) 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 Cc: Alex Sassmannshausen Hello, Following on from discussion earlier in the week, please find attached 3 patches that implement a generalized `wrap-language-programs` procedure that can be used to add a `wrap` phase to build-systems. The first patch adds the procedure, and the following 2 patches add `wrap` phase implementations using that procedure. I have tested Perl’s wrap phase, and that seems to work fine. I was unfortunately not able to test Python’s wrap phase, as I did not know of an appropriate test candidate (I tried to build offlineimap, but this failed because Guile@2.013 failed at least one of it’s tests). Feedback welcome! Ludovic: you mentioned pushing this patch series to a separate branch so we can test the builds on the build farm. What branch would you propose? Best wishes, Alex Alex Sassmannshausen (3): build/utils: Add `wrap-language-programs`. build/perl-build-system: Add `wrap` phase. build/python-build-system: Refactor `wrap`. guix/build/perl-build-system.scm | 15 +++++++++++++-- guix/build/python-build-system.scm | 36 ++++++++---------------------------- guix/build/utils.scm | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 30 deletions(-) -- 2.10.2