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 CFAB81388BF for ; Sat, 9 Jan 2016 08:25:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8703E083B; Sat, 9 Jan 2016 08:25:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B464E080D for ; Sat, 9 Jan 2016 08:25:03 +0000 (UTC) Received: from [192.168.1.100] (82-234-190-90.dyn.estpak.ee [90.190.234.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: leio) by smtp.gentoo.org (Postfix) with ESMTPSA id BFE6F33BF0B for ; Sat, 9 Jan 2016 08:25:01 +0000 (UTC) Message-ID: <1452327892.14929.14.camel@gentoo.org> Subject: Re: [gentoo-dev] USE=desktop-file request From: Mart Raudsepp To: gentoo-dev@lists.gentoo.org Date: Sat, 09 Jan 2016 10:24:52 +0200 In-Reply-To: <20160106162338.1e75682e@localhost> References: <20160106162338.1e75682e@localhost> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.3 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 Content-Transfer-Encoding: 8bit X-Archives-Salt: 3e590685-783d-4344-bfb1-d34a2c65d3b9 X-Archives-Hash: b8351d2f05604a39ac8348290a9ad3cb Ühel kenal päeval, K, 06.01.2016 kell 16:23, kirjutas tot-to: > I'm a user of a KISS wm, which does not provide Windows™-like menus, > desktop icons, etc. GUI software is called just by typing the binary > name in PATH, just like any other software. For me the desktop-files > are > some kind of useless junk. > > Recently a lot of software were made harddep on > dev-util/desktop-file-utils, i.e. from now on there are not only junk > text files, but also a junk software required without any reason. > I've > added it to /etc/portage/profile/package.provided and everything > compiles and works just fine. It means that in reality there is no > real > need in this software. > > Please make these dependencies optional. > This is not going to happen, because this dependency is not optional. The fact that it seems to build for you without an apparent immediate breakage on emerge, doesn't mean things aren't broken for you. At least in the GNOME team we are not in the business of having silent breakages to avoid build time dependencies of a 19kB simple utility (192kB with a couple other tools and documentation). desktop-file-utils is used to update the MIME types handling applications cache database after .desktop files are installed or removed. xdg desktop files are not only for showing GUI applications in application menus, but also handling of automatic startup on login of things, MIME type associations (which this is used in particular at buildtime to update the association database as stated above) If you choose to INSTALL_MASK /usr/share/applications and/or other .desktop files, you aren't just avoiding tiny text files from being installed that you believe are only needed for application menu entries, you are also breaking MIME type associations and various other features these FreeDesktop.org standard files provide to the overall system. If such a USE=desktop-file is added and then these desktop-file-utils utility calls are not made via xdg.eclass, then your system will have no idea of MIME type capabilities. Your browser (opened via your dear terminal from command line) will not be able to know what to use to open a PDF file or whatever other file. That's just one example. You are free to continue having things broken in such a way, but this is not going to be made optional in the main tree in the name of avoiding a 192kB package (as is its size when installed in the system, including all of its documentation and manual pages). If you are building an embedded system or whatever, it's a buildtime dep and can be removed in the end. However care should be taken then to have a properly up to date MIME association cache shipped as well in the final image for things to work properly or in a properly performant manner. If we are looking for something to improve here, it would be in the package manager to support postinst triggers that could be grouped to not be ran after each package, but only once in a while (but at least once). Calling this after each package might be unnecessary, and a couple times in the whole emerge session should be fine - that MIME association can be a bit delayed, and not called after each package postinst. On behalf of the GNOME team, Mart Raudsepp