Subject: [bug#35050] [PATCH] gnu: direnv: Fix build failure.

From: Leo Famulari <[email-masked]>
Date: Sat, 30 Mar 2019 19:26:00 -0400

On Sun, Mar 31, 2019 at 01:25:27AM +0300, Oleg Pykhalov wrote:
> starting phase `build'
> make: *** No targets specified and no makefile found.  Stop.
> Backtrace:
>            4 (primitive-load "/gnu/store/08h2sfqxnnvp0nxymcj5mhnp28b…")
> In ice-9/eval.scm:
>    191:35  3 (_ #f)
> In srfi/srfi-1.scm:
>    863:16  2 (every1 #<procedure 719f80 at /gnu/store/i5ip2vy29fqpp…> …)
> In /gnu/store/i5ip2vy29fqppjb4pq5isq36gqd42d89-module-import/guix/build/gnu-build-system.scm:
>    799:28  1 (_ _)
> In /gnu/store/i5ip2vy29fqppjb4pq5isq36gqd42d89-module-import/guix/build/utils.scm:
>     616:6  0 (invoke _ . _)
> /gnu/store/i5ip2vy29fqppjb4pq5isq36gqd42d89-module-import/guix/build/utils.scm:616:6: In procedure invoke:
> Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "make" arguments: ("-j" "4" "DESTDIR=/gnu/store/mz7r3c6a8y0y9ldh24apahng7xprhas9-direnv-2.15.2") exit-status: 2 term-signal: #f stop-signal: #f] 86ae80>)'.
> builder for `/gnu/store/z7026csvaqv6yz5g4imgiblgx48swzdy-direnv-2.15.2.drv' failed with exit code 1
> build of /gnu/store/z7026csvaqv6yz5g4imgiblgx48swzdy-direnv-2.15.2.drv failed
> View build log at '/var/log/guix/drvs/z7/026csvaqv6yz5g4imgiblgx48swzdy-direnv-2.15.2.drv.bz2'.
> guix build: error: build of `/gnu/store/z7026csvaqv6yz5g4imgiblgx48swzdy-direnv-2.15.2.drv' failed
> 
> oleg@guixsd ~/src/guix$ git rev-parse HEAD
> 6e1f91d91ca594098a7e98ae17b301fc035a6234
> --8<---------------cut here---------------end--------------->8---

Hm, weird. I built from a fresh Git checkout and it still works for me.
On the other hand, I see it's failing like this on Hydra.

I attached the derivation I am building. Can you compare it to yours?

As an aside, we should remove the vendor directory from the direnv
source code.