From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanguy Le Carrour Subject: Problem with `direnv` package definition Date: Sat, 20 Apr 2019 15:20:19 +0200 Message-ID: <20190420132019.priud6wucj5l2rn6@melmoth> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHpup-0007lF-Pe for guix-devel@gnu.org; Sat, 20 Apr 2019 09:20:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHpuo-0002ZQ-7R for guix-devel@gnu.org; Sat, 20 Apr 2019 09:20:23 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:60757) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHpuo-0002Yz-0x for guix-devel@gnu.org; Sat, 20 Apr 2019 09:20:22 -0400 Received: from localhost (89-92-229-106.hfc.dyn.abo.bbox.fr [89.92.229.106]) (Authenticated sender: tanguy@bioneland.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id B4B99FF807 for ; Sat, 20 Apr 2019 13:20:19 +0000 (UTC) Content-Disposition: inline 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" To: guix-devel@gnu.org Dear Guix As I'm still in the process of setting up my environment, I am not (yet) able to write and submit a patch for package `direnv`, so I'm sending this report instead… As mentioned on the `direnv` homepage, "direnv is compiled into a single static executable" [1]. As I understand it, this means that Go is required to build it, but not to run it. [1]: https://github.com/direnv/direnv However, in the package definition [2], 3 Go packages are listed as "inputs" whereas they should be listed as "native-inputs". Is this correct? [2]: gnu/packages/shellutils.scm As I said, I'm still learning. But I've tried, and here is what I've done so far… I've `git clone`d the repo, ran the `guix env… guix` then `bootstrap` `configure` and `make` and everything seems to be fine. Just to make sure, I did `./pre-… guix env… direnv` then ran `./pre-… guix build direnv` and everything went well. Then I moved the direnv dependencies from inputs to native-inputs and build it again… and it unsurprisingly failed! The error message [3] does not say much… at least to me! ^_^' [3]: output of `./pre-inst-env guix build --keep-failed direnv` direnv-2.15.2/version.txt direnv-2.15.2/xdg.go phase `unpack' succeeded after 0.0 seconds starting phase `bootstrap' no 'configure.ac' or anything like that, doing nothing phase `bootstrap' succeeded after 0.0 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `build' make: *** No targets specified and no makefile found. Stop. Backtrace: 4 (primitive-load "/gnu/store/7rrxdai48si293dihzf55zn3svn…") In ice-9/eval.scm: 191:35 3 (_ #f) In srfi/srfi-1.scm: 863:16 2 (every1 # …) In /gnu/store/i5ip2vy29fqppjb4pq5isq36gqd42d89-module-import/guix/build/gn u-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 `(#)'. I've tried to read the rest of the package definition, but as I'm still attending Guile 1-0-1, that didn't help much! I would very much appreciate it if someone could point out my mistake! Regards, -- Tanguy