From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/2] profiles: Add xdg-desktop-database hook. Date: Tue, 02 Feb 2016 14:09:44 +0100 Message-ID: <87twlrgsx3.fsf@gnu.org> References: <1454241798-14243-1-git-send-email-iyzsong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQaiM-0006vi-F5 for guix-devel@gnu.org; Tue, 02 Feb 2016 08:09:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQaiJ-00081V-3P for guix-devel@gnu.org; Tue, 02 Feb 2016 08:09:50 -0500 In-Reply-To: <1454241798-14243-1-git-send-email-iyzsong@gmail.com> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Sun, 31 Jan 2016 20:03:17 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > * guix/profiles (xdg-desktop-database): New function. > (%default-profile-hooks): Add it. Nice! > + (update-desktop-database (string-append > + #+desktop-file-utils > + "/bin/update-desktop-database")= )) This is a small dependency, but it still depends on GLib; my understanding is that building any profile would end up pulling in GLib because of this hook. Should we have some heuristic as for the GTK+ and GHC hooks to avoid pulling it in? For instance, we could check whether GLib is already an indirect dependency of at least one of the packages. WDYT? Thank you! Ludo=E2=80=99.