all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>, ericbavier@openmailbox.org
Subject: Re: [PATCH 1/2] build: Generalize 'package-with-explicit-python'.
Date: Thu, 09 Feb 2017 10:24:10 +0000	[thread overview]
Message-ID: <87inojr7at.fsf@gmail.com> (raw)
In-Reply-To: <CAKrPhPOya7M6pw9QBwL7KibWFU7=_Hfhy8_3x=fE2MS4vjqJ8A@mail.gmail.com>



on [2017-02-09] at 07:58 Federico Beffa writes:

> On Wed, Feb 8, 2017 at 8:09 PM, Ricardo Wurmus <rekado@elephly.net> wrote:
>>
>> Federico Beffa <beffa@ieee.org> writes:
>>
>>> Generalize the Python procedure to recursively replace compiler/interpreter.
>>> From a8220b430d196e5bb079e23ac63b1acd16fdaaee Mon Sep 17 00:00:00 2001
>>> From: Federico Beffa <beffa@fbengineering.ch>
>>> Date: Wed, 8 Feb 2017 18:55:32 +0100
>>> Subject: [PATCH 1/2] build: Generalize 'package-with-explicit-python'.
>>>
>>> * guix/build-system/python.scm (package-with-explicit-python): Remove it and
>>>   replace it with the generalized procedure 'package-with-explicit-compiler'
>>>   in the new file. (package-with-python2): Adapt it.
>>> * guix/build-system/utils.scm: New file with the generalized procedure.
>>> * Makefile.am (MODULES): Add new file.
>>
>> The goal here is to override packages in build system arguments, right?
>> This is great and we really need something like this to make building
>> package variants simpler.  (I ran into a problem that would be solved by
>> this when I tried to build Perl modules for different variants of Perl.)
>
> Hi Ricardo,
>
> The goal is to exploit the compiler keyword argument of many
> build-systems (such as #:python, #:haskell, ...) to pass the desired
> compiler instead of the default one.
>
>> Looking over the patch it feels inelegant to have a whitelist of
>> permitted arguments, as in “compiler-keyword”.  We already have a
>> procedure called “package-input-rewriting” that replaces any (explicit
>> input-) package in the dependency graph with a different package.  What
>> I like about that is that it is generic.  Is there a way we could extend
>> it to include packages pulled in by the build system, e.g. by making it
>> work at the level of bags?
>
> The procedure was not written by me: 99% of it comes from the
> python-build-system.  The only thing that I did is to replace the
> hard-coded '#:python' keyword with a variable one such that it can be
> used with some other build systems. This seemed to me as one step in
> the right direction, but if you have a better idea then please go
> ahead and write it.  I will not feel offended ;-)

Thanks a lot for doing this it seems to work fine so far.  I think it
might cause a warning:

guix build: warning: deprecated NAME-VERSION syntax; use NAME@VERSION
instead

(I have reached a blockage to do with Haskell package dependencies, I am
trying to build hledger, here is my effort so far, 27 new packages!:
http://paste.lisp.org/+79B8 ).

Myles

  reply	other threads:[~2017-02-09 10:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-08 18:17 [PATCH 1/2] build: Generalize 'package-with-explicit-python' Federico Beffa
2017-02-08 19:09 ` Ricardo Wurmus
2017-02-09  7:58   ` Federico Beffa
2017-02-09 10:24     ` Myles English [this message]
2017-02-10 16:18 ` Ludovic Courtès
2017-02-13  8:28   ` Federico Beffa

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=87inojr7at.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=beffa@ieee.org \
    --cc=ericbavier@openmailbox.org \
    --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.