Subject: bug#27314: guix includes wrong directory in build environment

From: [email-masked] (Ludovic Courtès)
Date: Fri, 16 Jun 2017 10:48:12 +0200

Hi ng0,

ng0 <[email-masked]> skribis:

> gnunet-fuse 'picks' the first gnunet it finds in the /gnu/store/:
>
> checking for fuse.h... yes
> checking for GNUnet core... /gnu/store/01ja9wj2v48y5www5bhpmkx94wc4b553-gnunetgf-0.10.114b59076f
> checking for GNUnet util library in /gnu/store/01ja9wj2v48y5www5bhpmkx94wc4b553-gnunetgf-0.10.114b59076f... checking for gnunet/gnunet_util_lib.h... no
> configure: error: gnunet-fuse requires GNUnet
> phase `configure' failed after 2.0 seconds
> note: keeping build directory `/tmp/guix-build-gnunet-fuse-0.10.114b59076f.drv-0'
> builder for `/gnu/store/qc0va2siswmc72bdk8xi4hm7dwz09xpy-gnunet-fuse-0.10.114b59076f.drv' failed with exit code 1
> @ build-failed /gnu/store/qc0va2siswmc72bdk8xi4hm7dwz09xpy-gnunet-fuse-0.10.114b59076f.drv - 1 builder for `/gnu/store/qc0va2siswmc72bdk8xi4hm7dwz09xpy-gnunet-fuse-0.10.114b59076f.drv' failed with exit code 1
> guix build: error: build failed: build of `/gnu/store/qc0va2siswmc72bdk8xi4hm7dwz09xpy-gnunet-fuse-0.10.114b59076f.drv' failed

Could you run “guix build gnunet-fuse -K” and then check
/tmp/guix-build-gnunet-fuse-0.10.114b59076f.drv-0/environment-variables
as well as the ‘config.log’ file in there?

The build environment includes only the ‘gnunet’ package that the recipe
provides, not another ‘gnunet’.

HTH,
Ludo’.