all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@member.fsf.org>
Cc: guix-devel@gnu.org
Subject: Re: should gnome-desktop-service really provide all of this to a profile?
Date: Thu, 10 Mar 2016 00:02:08 +0100	[thread overview]
Message-ID: <87d1r38dcf.fsf@gnu.org> (raw)
In-Reply-To: <87egbkf6d5.fsf@member.fsf.org> ("宋文武"'s message of "Wed, 09 Mar 2016 15:38:46 +0800")

iyzsong@member.fsf.org (宋文武) skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Pulseaudio also propagates a few things.
> Yes, I think it should be splited into “out” and “dev”, if we can make
> only the “dev” output propagating libcap and gdbm.

Yeah.

>> Two things here:
>>
>>   • Back in the day, I couldn’t think of a situation where it would make
>>     sense for ‘propagated-inputs’ to be different from
>>     ‘propagated-user-env-packages’ (at the time, the latter was little
>>     known so in practice people had to install dependencies by
>>     themselves.)  So in Guix I chose to have just one.
> In nix ‘propagated-build-inputs’ is propagations and ‘inputs’ for building
> while ‘propagated-user-env-packages’ is propagations for profile.
> In guix ‘propagated-inputs’ is propagations for both building and profile
> and at the same time is ‘inputs’ for building.

Yes.

> I agree that propagations for building or for profile is the same thing,
> and there’re some runtime only dependencies worthing treating as
> non-inputs (eg: adwaita-icon-themes, plugins for gstreamer).

Yes, though I would not worry about these “non-inputs” for now.

> How about seperating propagations from ‘propagated-inputs’?
> This requires listing some packages twice, but I think it will be more
> clear considering ‘inputs’ are for building the whole package while
> ‘propagations’ are (should be) per-output.
>
> eg:
> (package
>   (name "pulseaudio")
>   (outputs '("out" "include" "lib" "dev"))
>   (inputs
>    `(("libpcap" ,libcap)
>      ("gdbm" ,gdmb)
>      ...))
>   (propagations
>     #:output "dev"
>     `(("pulseaudio:include" ,pulseaudio "include")
>       ("pulseaudio:lib"     ,pulseaudio "lib")
>       ("libpcap" ,libpcap)
>       ("gdbm" ,gdbm)))
>   ...)

Sure.  There’s a years-old example in ‘TODO’, even.  :-)

The syntax cannot be exactly like what you suggest, but it could be
along the lines of what’s in ‘TODO’:

  (propagated-inputs
    `(((("i1" ,p1 "o1")
        ("i2" ,p2))
       => "include")
      ("i3" ,p3)))

>>   • I found the ‘nix-support’ trick (that is, having high-level
>>     information on the build side) kind of hacky, which is why this
>>     information is solely on the build side in Guix.  This is what
>>     allows higher-level functionality such as --search-paths to be
>>     implemented on the host side.
>>
>>     OTOH, things like <http://bugs.gnu.org/22138> could be more easily
>>     addressed if all the info was already on the build side.
> Agree :-)

With which part?  :-)

>> Anyway, what do you think would be the best way to avoid “profile
>> pollution” with the GNOME meta-package?
> I think, for now:
>
> From 7206310f7320ed99eabd7f774a083c7b1f78c81f Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@gmail.com>
> Date: Wed, 9 Mar 2016 13:17:48 +0800
> Subject: [PATCH] gnu: nautilus: Don't propagate gtk+.
>
> This reduces "profile pollution" of the 'gnome' meta package.
> See <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
>
> * gnu/packages/gnome.scm (nautilus): Move gtk+ from propagated-inputs to inputs.

Please move the sentence “This reduces …” to a comment in the code.
Otherwise LGTM!

Thanks,
Ludo’.

      reply	other threads:[~2016-03-09 23:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-07 15:50 should gnome-desktop-service really provide all of this to a profile? Andy Wingo
2016-03-07 21:11 ` Ludovic Courtès
2016-03-08  8:48   ` Andy Wingo
2016-03-08  9:15     ` Ludovic Courtès
2016-03-08 14:31       ` 宋文武
2016-03-08 16:35         ` Ludovic Courtès
2016-03-09  7:38           ` 宋文武
2016-03-09 23:02             ` Ludovic Courtès [this message]

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=87d1r38dcf.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=iyzsong@member.fsf.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.