From mboxrd@z Thu Jan 1 00:00:00 1970 From: csanchezdll@gmail.com (Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama) Subject: Re: Test failure in util-linux Date: Tue, 14 Apr 2015 12:11:53 +0200 Message-ID: <7tr3rnkoie.fsf@gmail.com> References: <7t4mop5pdg.fsf@gmail.com> <87twwom8nx.fsf@gnu.org> <7tbnisscwl.fsf@gmail.com> <87bnirghd9.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]:36289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhxp3-0001U2-BH for guix-devel@gnu.org; Tue, 14 Apr 2015 06:12:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yhxoy-0002ov-9Z for guix-devel@gnu.org; Tue, 14 Apr 2015 06:12:01 -0400 In-Reply-To: <87bnirghd9.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 14 Apr 2015 11:59:46 +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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org >>>> 2) I tried adding "#:tests? #f" to my own modified ~/guix/linux.scm >>>> (copied from system-wide >>>> /usr/local/share/guile/site/2.0/gnu/packages/linux.scm). >>>> This allowed building with >>>> "guix package -L $HOME/guix build util-linux" >>>> but system build still fails during the tests (would seem guix system >>>> ignores -L flag and takes system-wide recipe). >>> >>> Right. =E2=80=9Cguix build=E2=80=9D now sees your =E2=80=98util-linux= =E2=80=99 package, but the whole >>> package DAG uses explicit references to the objects, and so >>> yours is ignored. >>> >>> You may be able to get around it by defining your own (gnu packages >>> linux) package. The downside is that it would have to basically be a >>> copy of the original one with just #:tests? #f added. >> >> Hm, thats exactly what I had done (I had copied while linux.scm file, >> which AFAIU is there (gnu packages linux) is defined, and modified the >> util-linux package inside it just to ass #:tests? #f. And still guix >> system does not see it. > > Was the module called (gnu packages linux)? And was GUIX_PACKAGE_PATH > set when =E2=80=98guix system=E2=80=99 was invoked (if =E2=80=98sudo=E2= =80=99 was used, it could have > unset it, for instance)? The package was called (gnu packages linux) as original the linux.scm file itself was copied in my ~/guix directory., and only #:tests line added. So the name (and everything else) was the same. I have a slightly different set-up working so I can not recheck right now, but I am sure I was not using GUIX_PACKAGE_PATH. I was using the -L parameter, in both "guix package" (where it worked) and "guix system" (where it didn't). I tried in both cases passing it directly in the command line and using the GUIX_BUILD_OPIONS environment variable. That is what my original guess was that "guix system" did not honor that parameter. I had missed GUIX_PACKAGE_PATH in the manual, BTW. Much easier that way. BR Carlos --=20 '[...] es muy distinto lo que una persona quiere, a lo que una persona nece= sita, a lo que una persona dice que quiere.' Javier Castillo, "El d=C3=ADa que se perdi=C3=B3 la cordura" (2014)