From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: gnome-tweak-tool tweaks Date: Sat, 11 Jun 2016 11:49:07 +0800 Message-ID: <87y46cpeq4.fsf@member.fsf.org> References: <87wpm23l2w.fsf@gnu.org> <87ziqt2pvo.fsf@gnu.org> 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]:51864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBZvl-0007cY-NN for guix-devel@gnu.org; Fri, 10 Jun 2016 23:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBZvf-0006OW-UJ for guix-devel@gnu.org; Fri, 10 Jun 2016 23:49:52 -0400 In-Reply-To: <87ziqt2pvo.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 10 Jun 2016 14:24:27 +0200") 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" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > [...] > >> I/O error : Permission denied >> I/O error : Permission denied >> Failed to write XML file; For permission problems, try rerunning as root > > I found that string comes from =E2=80=98shared-mime-info=E2=80=99, which = is itself used > by the =E2=80=98xdg-mime-database=E2=80=99 hook in (guix profiles) (a hoo= k that runs > when the profile is created to update the MIME database): > > static gboolean save_xml_file(xmlDocPtr doc, const gchar *filename, GErro= r **error) > { > #if LIBXML_VERSION > 20400 > if (xmlSaveFormatFileEnc(filename, doc, "utf-8", 1) < 0) > { > g_set_error(error, G_FILE_ERROR, G_FILE_ERROR_FAILED, > "Failed to write XML file; For permission problems, try rerunning = as root"); > return FALSE; > } > #else > > =E5=AE=8B=E6=96=87=E6=AD=A6: any idea what the problem might be? Perhaps > =E2=80=98update-mime-database=E2=80=99 is trying to write to /gnu/store/= =E2=80=A6-something? Yep, it happends when '$out/share/mime/application' is not writable. The xml files under 'application' are going to be generated by update-mime-database, and the shared-mime-info package has it pre-generated, so after union "share/mime", an un-writable 'application' directory point to the store will cause the problem. Commit 359f06aa fix this by union the "share/mime/packages" directory. > > Also, it=E2=80=99s a problem that =E2=80=98update-mime-database=E2=80=99 = returns 0 here, as > seems to be the case. It returns 256 here for the problem, but the derivation still built and profile got updated, I have no idea about this :- Does a failing hook (returns #f) supposed to top the profile update?