all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: 01/01: gnu: dbus-glib: Propagate inputs dbus and glib.
Date: Sat, 23 May 2015 19:17:35 -0400	[thread overview]
Message-ID: <87zj4ulw8g.fsf@netris.org> (raw)
In-Reply-To: <E1YwBPu-0005Be-7W@vcs.savannah.gnu.org> (Andreas Enge's message of "Sat, 23 May 2015 15:32:50 +0000")

Andreas Enge <andreas@enge.fr> writes:

> andreas pushed a commit to branch master
> in repository guix.
>
> commit 2e88d113aac31dbea0b998fca92b35dbfc998872
> Author: Andreas Enge <andreas@enge.fr>
> Date:   Sat May 23 16:43:18 2015 +0200
>
>     gnu: dbus-glib: Propagate inputs dbus and glib.
>     
>     * gnu/packages/glib.scm (dbus-glib): Propagate inputs dbus and glib.
>     * gnu/packages/audio.scm (patchage),
>       gnu/packages/gnuzilla.scm (icecat),
>       gnu/packages/python.scm (python-dbus): Drop inputs dbus and glib.
>     * gnu/packages/gnome.scm (colord, gconf, gnome-vfs, upower),
>       gnu/packages/mail.scm (claws-mail),
>       gnu/packages/messaging.scm (hexchat),
>       gnu/packages/wicd.scm (wicd): Drop input dbus.

The only change you actually made to messaging.scm in this commit was to
add your copyright notice.

However, I have a larger question about this commit: Should 'dbus' and
'glib' be removed from the inputs of every package that has 'dbus-glib'
as an input?  My answer would be "not necessarily".  IMO, the only time
we should remove input A from a package is when it doesn't use A
directly.

Allow me to make an analogy to C include files:

Suppose I have a program that uses both 'printf' and 'ptrdiff_t', which
are documented as being declared in 'stdio.h' and 'stddef.h'
respectively.  Now, I might be clever and realize that 'stdio.h'
includes 'stddef.h', so I needn't include both.  However, I would argue
that this is bad practice for multiple reasons.  The practical reason is
that if 'stdio.h' stops including 'stddef.h' in the future for some
reason, my code will break.

On the other hand, if I have a program that doesn't need anything from
'stddef.h' but only included it to work around the fact that 'stdio.h'
needs 'stddef.h' and forgot to include it, then of course after that's
fixed it makes sense to remove the workaround.

Does that make sense?

       Mark

       reply	other threads:[~2015-05-23 23:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150523153249.19884.3207@vcs.savannah.gnu.org>
     [not found] ` <E1YwBPu-0005Be-7W@vcs.savannah.gnu.org>
2015-05-23 23:17   ` Mark H Weaver [this message]
2015-05-24  7:34     ` 01/01: gnu: dbus-glib: Propagate inputs dbus and glib Andreas Enge
2015-05-24 13:15       ` Ludovic Courtès
2015-05-24 14:33         ` Mark H Weaver
2015-05-24 20:14           ` Andreas Enge
2015-05-25 13:17             ` Ludovic Courtès

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=87zj4ulw8g.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=andreas@enge.fr \
    --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.