public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-dev <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] USE=desktop-file request
Date: Wed, 6 Jan 2016 16:29:58 -0500	[thread overview]
Message-ID: <CAGfcS_=-noPuVWEkm-hkTUpGKep1ufUEbC76V6QqA2J_3hoy-g@mail.gmail.com> (raw)
In-Reply-To: <20160106194808.241d549d@localhost>

On Wed, Jan 6, 2016 at 2:47 PM, tot-to <gentoo-dev.list@tot-to.com> wrote:
>
> It would be great to make the intallation of desktop-files optional,
> but I mostly concerned about the dependency on
> dev-util/desktop-file-utils...
>
> I think such dependency should be either removed, because it's not
> really required or at least be optional.

Most of the packages you referenced inherit the gnome2 eclass, which
inherits the xdg eclass, which adds a DEPEND on desktop-file-utils.

Technically that should mean that it is fine to uninstall
desktop-file-utils after building most of these packages, because it
is only needed at build time.  However, I imagine that if an xdg
eclass function is called which uses these utilities the package build
will fail if you just stick it in package.provided.

If this were purely about installing the desktop files themselves I'd
say to just use the install mask.  I think you could debate whether it
is OK to pull in desktop-file-utils.  That package is just 4 binaries
and their manpages/docs, and of course the runtime dependency of glib.

I'm not sure it is really worth trying to control this via a USE flag
for such a light dependency.  However, strictly speaking this is an
optional build-time dependency, so it probably could be controlled by
flag.  I'm not so keen on making the build-time behavior automagic
based on whether the package happens to be installed and then spamming
elog on every package that uses the xdg eclass to let you know that
you could manually install that package to get your desktop files
back.

I'd have to check but I suspect that portage hangs onto build-time
dependencies by default, probably so that you're not uninstalling them
and reinstalling them anytime you do anything.  Strictly speaking,
however, it would be safe to depclean anything that is only a
build-time dependency (with the understanding that you're going to be
rebuilding it every time it is needed).

--
Rich


  reply	other threads:[~2016-01-06 21:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-06 16:23 [gentoo-dev] USE=desktop-file request tot-to
2016-01-06 18:59 ` Sergey Popov
2016-01-06 19:47   ` tot-to
2016-01-06 21:29     ` Rich Freeman [this message]
2016-01-06 21:59       ` Matthias Maier
2016-01-07  2:42       ` Peter Stuge
2016-01-09  8:24 ` Mart Raudsepp

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='CAGfcS_=-noPuVWEkm-hkTUpGKep1ufUEbC76V6QqA2J_3hoy-g@mail.gmail.com' \
    --to=rich0@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox