From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Re: Problem with `direnv` package definition Date: Sat, 20 Apr 2019 18:02:45 +0100 Message-ID: <87o950txsa.fsf@cbaines.net> References: <20190420132019.priud6wucj5l2rn6@melmoth> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHtPA-0005Jl-97 for guix-devel@gnu.org; Sat, 20 Apr 2019 13:03:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHtO9-0001c9-Cj for guix-devel@gnu.org; Sat, 20 Apr 2019 13:02:54 -0400 Received: from mira.cbaines.net ([212.71.252.8]:41464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHtO9-0001YW-3x for guix-devel@gnu.org; Sat, 20 Apr 2019 13:02:53 -0400 In-reply-to: <20190420132019.priud6wucj5l2rn6@melmoth> 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: Tanguy Le Carrour Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tanguy Le Carrour writes: > 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=E2=80=A6 > > 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 Hi Tanguy, That sounds right to me, although there have been issues with binaries generated with Go still referencing the Go compiler, and that's seemingly the case with the direnv package in Guix at the moment. There's also an important aspect of cross-compilation to these fields, which you can read about here: https://www.gnu.org/software/guix/manual/en/html_node/package-Reference.h= tml > As I said, I'm still learning. But I've tried, and here is what I've > done so far=E2=80=A6 > > I've `git clone`d the repo, ran the `guix env=E2=80=A6 guix` then `bootst= rap` > `configure` and `make` and everything seems to be fine. > Just to make sure, I did `./pre-=E2=80=A6 guix env=E2=80=A6 direnv` then > ran `./pre-=E2=80=A6 guix build direnv` and everything went well. > Then I moved the direnv dependencies from inputs to native-inputs and > build it again=E2=80=A6 and it unsurprisingly failed! The error message [= 3] > does not say much=E2=80=A6 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=E2=80=A6") > In ice-9/eval.scm: > 191:35 3 (_ #f) > In srfi/srfi-1.scm: > 863:16 2 (every1 # > =E2=80=A6) > In > /gnu/store/i5ip2vy29fqppjb4pq5isq36gqd42d89-module-import/guix/build/gn > u-build-system.scm: > 799:28 1 (_ _) > In > /gnu/store/i5ip2vy29fqppjb4pq5isq36gqd42d89-module-import/guix/build/u= tils.scm: > 616:6 0 (invoke _ . _) > /gnu/store/i5ip2vy29fqppjb4pq5isq36gqd42d89-module-import/guix/build/u= tils.scm:616:6: In procedure invoke: > Throw to key `srfi-34' with args `(# "DESTDIR=3D/gnu/store/dcvs8cq0ll4hcxc4x3mlcf24y1cw4ckm-direnv-2.15.2") > exit-status: 2 term-signal: #f stop-signal: #f] 869e80>)'. > > > 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! I tried changing the inputs to native-inputs, and the package built for me. Could you share the exact changes you made? Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAly7ULVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XdkaxAAkKpbKE47MK3GYx2Zq2gn3r3+UlUvEevxHA04PpPJwGDuU2eaawj4RCBN R+BaTh4/2ZUPHmrdWpLj4MZzf7NwB3Y1BWfsDmbYpkeqCOU9DI4KaqmuTznoZQqM APfTBrmbWk58MvEhdIbYUeo6iYq2IEiaJoZ6lKpGJLVGAEJxMIiu9LIBgC3kzasi gz8DSCEP3OtDk9ustVZz8IvV1g3DqK/mkz2yEcVn9ObELQNUJbHIL83B1ZpMdJia gfHATOcEEfCguXJtARGdMW91hhV4QD6kmDwI3plx4llqv0YsK6KDj/mUja3EvJad 4R3ttmw3BkFTldxIL+up8hUbToRYWmekB9N8F+EFZUCfaewQrN9t+t6gCWkVbZzK zY4rMF/MnVu/rbKS7qjQ19VBgVv1YlZWRRsKfJ1xXyzL+eKYZ6PyTeOOcmcYtGh+ seG4v7Y3lDpAWcmGV1HlmD+94o6Q7Z+FUnvZ3+oKI30d3Azt4haAZjI9tBUCcbWy 7x1gJU1nzwpt1NFEgT53uyRZo9FemQHCi1COb3euscDPNsXl9qImu0DhilMytgiZ yMsRuz8CLyrWhmK/efpCHyV0uRCE4Zv8PcHBO6EjTxTv3kaODsiiPWK+SxyzQB1r Mk7gl3thqJsyWOWstWRYPbHRgc628o0nOo9eE7eoDqiSN7Rbfi8= =HEp4 -----END PGP SIGNATURE----- --=-=-=--