>>>> 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)