From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 809FD1388BF for ; Wed, 6 Jan 2016 21:30:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19D61E0888; Wed, 6 Jan 2016 21:30:00 +0000 (UTC) Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24064E0874 for ; Wed, 6 Jan 2016 21:29:58 +0000 (UTC) Received: by mail-ig0-f182.google.com with SMTP id t15so14423780igr.0 for ; Wed, 06 Jan 2016 13:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=DO/8lul1AgfV7K88xJwulxTyccx0ewVKftfzr/j2PBo=; b=0LioGpMfyUmx1AGHS7Zw2kzVaP/uJBJsfhSQKg7A81HxgIOuqaFnD+iYma4X/JpwCL pRsYCOt5h+B8fooJA++29RcdLSeFWZoQDb1H5usqxPGjyGWShV49g5zVNGi7oEHP+1OR PSSz9TV5hQ3TxB1nk3nZC26zOLI9zDaZXqB4p8BHISOI2nM7Ml6wRzgSVOiZrZ+bmltd jA3LMV01DggVQYowkf3Rz84pQP/sdPuxObkOn0XcjnuzmOJ4GyORLSfW5nBGXn1DUZ24 IHPeGmyIjnlkzh7tfdXZ5/eKnXXqNh6YIn2gc2bliQA5AZF40PNoxdggenHKyRkcrV5g TFIA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.143.105 with SMTP id sd9mr722295igb.51.1452115798342; Wed, 06 Jan 2016 13:29:58 -0800 (PST) Sender: freemanrich@gmail.com Received: by 10.64.225.228 with HTTP; Wed, 6 Jan 2016 13:29:58 -0800 (PST) In-Reply-To: <20160106194808.241d549d@localhost> References: <20160106162338.1e75682e@localhost> <568D6423.4040405@gentoo.org> <20160106194808.241d549d@localhost> Date: Wed, 6 Jan 2016 16:29:58 -0500 X-Google-Sender-Auth: 916gXxOqXPZleS6sZHlm8O5y7kg Message-ID: Subject: Re: [gentoo-dev] USE=desktop-file request From: Rich Freeman To: gentoo-dev Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 2d6109fc-39bb-4fe7-bbd2-d6ebf0013d70 X-Archives-Hash: 208ee2ad75fbb895c6972a31f425595f On Wed, Jan 6, 2016 at 2:47 PM, tot-to 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