all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Ben Sturmfels <ben@sturm.com.au>
Cc: guix-devel@gnu.org
Subject: Re: Naming of native-inputs/inputs/propagated-inputs
Date: Tue, 23 Jul 2019 12:26:45 +0200	[thread overview]
Message-ID: <878sspcahm.fsf@elephly.net> (raw)
In-Reply-To: <87zhl52t0z.fsf@sturm.com.au>


Hi Ben,

> I know this is superficial, but I wonder if these names could be refined
> to better communicate their use. What about:
>
> | Currently         | Possible new name |
> |-------------------+-------------------|
> | native-inputs     | build-inputs      |
> | inputs            | runtime-inputs    |
> | propagated-inputs | profile-inputs    |

The difference between “native-inputs” and “inputs” is not about whether
they are needed at build time or runtime.  The difference only really
comes into play when cross-building.  “native-inputs” must be of the
host architecture, while “inputs” are for the target architecture.

It is correct that “native-inputs” often happen to be only used during
the build, but that doesn’t need to be the case.

Ultimately, runtime inputs are determined by whether they are referenced
in the output.  This is orthogonal to whether they are listed in the
“native-inputs”, “inputs”, or even “propagated-inputs” field.

I empathize with the desire to remove sources of confusion, but changing
the names would blur this distinction for a superficial orthogonal
property and give the wrong impression about how these inputs are used.

--
Ricardo

  reply	other threads:[~2019-07-23 10:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-23  5:56 Naming of native-inputs/inputs/propagated-inputs Ben Sturmfels
2019-07-23 10:26 ` Ricardo Wurmus [this message]
2019-07-23 10:36   ` Ben Sturmfels

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=878sspcahm.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=ben@sturm.com.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.