From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Brielmaier Subject: Re: Permissions error during libhandy build - looking for tips Date: Sun, 7 Jul 2019 20:47:06 +0200 Message-ID: <4cfe1fd1-2a97-2f43-22db-4c19f890f286@web.de> References: <20190707124146.45d1f173@terracrypt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45327) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkCZt-0001Xn-5t for guix-devel@gnu.org; Sun, 07 Jul 2019 15:12:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkCZr-00053y-Vy for guix-devel@gnu.org; Sun, 07 Jul 2019 15:12:01 -0400 Received: from mout.web.de ([212.227.15.14]:47611) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkCZr-0004zu-JC for guix-devel@gnu.org; Sun, 07 Jul 2019 15:11:59 -0400 In-Reply-To: <20190707124146.45d1f173@terracrypt.net> Content-Language: en-US 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: guix-devel@gnu.org On 7/7/19 6:41 PM, Jonathan Frederickson wrote: > Hi! I'm trying to package libhandy for Guix, but I'm running into some > issues. libhandy uses Meson for builds - I'm not super familiar > with it, but it looks like something during the installation process is > trying to write to a path in /gnu/store that it doesn't have > permissions to write to. Hallo Jonathan, I had a quick look at the log file and found this line: PermissionError: [Errno 13] Permission denied: '/gnu/store/m4jn72l561mppfh12br1vcrp9x9y812p-glade-3.22.1/lib/glade/modules/libglade-handy.so' It tries to install the libglade-handy.so to the glade package, which is forbidden. m4jn72l561mppfh12br1vcrp9x9y812p-glade-3.22.1 is a different package, which you can't change during the install process of libhandy... So there are two options from here: - bring meson to install libglade-handy.so to the libhandy package - don't intall libglade-handy.so at all > I'm still fairly new to Guix packaging so it's not obvious to me why > this is failing at the moment. I've attached the build log and what I > have so far for the package definition. If anyone has advice that could > be helpful here, it would be highly appreciated! 0.0.10 is out, I think we should package this version. I would change this: (origin (method url-fetch) (uri (string-append "https://source.puri.sm/Librem5/libhandy/-/archive/" version "/libhandy-" version ".tar.gz")) to an origin based on git-fetch from a tag. This is usually better in terms of reproducibility: (source (origin (method git-fetch) (uri (git-reference (url "https://source.puri.sm/Librem5/libhandy") (commit version))) (file-name (git-file-name name version)) > (This package also has tests that look like they require access to an > X server, which fail - I think this is expected? I've just disabled > tests for the time being, but is there any way to actually run tests > like that during a build in Guix?) I don't how to do this. For me it would be oke to disable the tests or better to try to run those who doesn't require an X server. By the way: Am I right in the assumption that you are interested in the Librem 5? Happy Hacking Jonathan