From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Test failure in util-linux Date: Fri, 10 Apr 2015 15:09:54 +0200 Message-ID: <87twwom8nx.fsf@gnu.org> References: <7t4mop5pdg.fsf@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]:33728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgYh7-0004l3-0P for guix-devel@gnu.org; Fri, 10 Apr 2015 09:10:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgYh3-0007b6-KE for guix-devel@gnu.org; Fri, 10 Apr 2015 09:10:00 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgYh3-0007b2-ID for guix-devel@gnu.org; Fri, 10 Apr 2015 09:09:57 -0400 In-Reply-To: <7t4mop5pdg.fsf@gmail.com> ("Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama"'s message of "Thu, 09 Apr 2015 16:48:43 +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: Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama Cc: guix-devel@gnu.org Hello, csanchezdll@gmail.com (Carlos S=C3=A1nchez de La Lama) skribis: > I am trying to "guix system build" a smallish configuration (most > settings at their default values). I have installed guix on a freshly > new i686 gNewSense 3.1 (which uses kernel 2.6.32). > > The system build fails during "check" phase of util-linux-2.25.2. I have > dug a little on and found the error comes from the fscanf in > util-linux-2.25.2/sys-utils/ipcutils.c:113 > expecting 16 values in /proc/sysvipc/shm, while min having only 14. My > impression is util-linux checks have a dependency on the kernel being > fairly recent. Oh, OK. We could work around it, but since that requires a full rebuild, we=E2=80=99ll have to schedule it for the next core update cycle. That said, 2.6.32 is really old, so we probably don=E2=80=99t want to inves= t too much in that. > My points: > > 1) should check phase be disabled for util-linux depending on some > kernel version check? Yes, we could patch this specific test or code snippet. > 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. If Guile had a #:use-module-next form (akin to #include_next in C), we could do something better here. I hope this makes sense! Ludo=E2=80=99.