guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test failure in util-linux


From: Carlos Sánchez de La Lama
Subject: Re: Test failure in util-linux
Date: Tue, 14 Apr 2015 12:11:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>> 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.  “guix build” now sees your ‘util-linux’ package, but the whole
>>> package DAG uses explicit references to the <package> 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 ‘guix system’ was invoked (if ‘sudo’ 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

-- 
'[...] es muy distinto lo que una persona quiere, a lo que una persona necesita,
a lo que una persona dice que quiere.'

Javier Castillo, "El día que se perdió la cordura" (2014)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]