From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WAunMdq0tF8oJAAA0tVLHw (envelope-from ) for ; Wed, 18 Nov 2020 05:44:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YL+FLdq0tF8pVAAA1q6Kng (envelope-from ) for ; Wed, 18 Nov 2020 05:44:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4BA8494006E for ; Wed, 18 Nov 2020 05:44:58 +0000 (UTC) Received: from localhost ([::1]:42914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfGH1-00010S-PP for larch@yhetil.org; Wed, 18 Nov 2020 00:44:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfGGZ-0000zJ-0g for help-guix@gnu.org; Wed, 18 Nov 2020 00:44:28 -0500 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:38559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfGGW-0001li-OB for help-guix@gnu.org; Wed, 18 Nov 2020 00:44:26 -0500 Received: by mail-lj1-x22c.google.com with SMTP id r17so997588ljg.5 for ; Tue, 17 Nov 2020 21:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=y34ZAGVnd2g8faLa+ao3l6PAAlY80SVlUFoFSyRCM40=; b=CPnBTA4cO4GGzcFcsAbvhSkojNyxJeBpb7vP676myt8QHVHvbCzEZyFC7CgioGVE/q LDtt2jLXwkNGSR48Rp8jjqxegHjIcnLEnXaO/3DIVPsZbJsmrn2TXJAMqeJH3dhCz5kt XEZJqHSBkUtGWTJ3Lxs1e0B148b51JKRTH6JhJim9tbeUaQDqb/qhFEfkCanUVVv5jXI f4ZdUlXUdhsIcu0kxg6aDrLAsrxxJ61OMqOtKHFJoindExDvxDTAfR5UjbQY1FfD481+ /PaiT8G122ubQ8AoLeRB+zN7ZZ/Sfc/sR8R5QYJCaXkNl5p6kZ34D4jZV5irhCRwXtW5 KSEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=y34ZAGVnd2g8faLa+ao3l6PAAlY80SVlUFoFSyRCM40=; b=Lb/9YGPaa9ziVyGctiPl0zJpisxGk3ubv/ZvWE1vVpGJFuXJRkE6YRxgT8h1LPfkAC T9TFI5pqx383OXdhfuBG7sDiGD95uivogACVF77Rzt9QzpcLJDR0qOp5ghljKAy0n5lJ jLCGYzA3e4/GsbEceVMUMvNVzzoVWmzMvX3K9JrSrCduiB5fFZdFugAdAyNv2oQdOKA8 MQ+++s4qSIh1gU7W+07Wfd838znVlrtBlzVpc1H6LFgCJ2vlVE1qaEy7+vVkHBgmw4I5 oYfQdXwwi2OqLJAj7bf9o1lJAXYZRCKiJUmy/Ca/oJeCRu05rDqvDnmSWzHI53XfELaX V7ig== X-Gm-Message-State: AOAM533iaHd8/7Rx+aAL7fhSrJ/+Ni45UeD5NCtLA69N43k+ME/+lc2y 3EmggkrPGu7EdRMo8iioapLPir97iBc= X-Google-Smtp-Source: ABdhPJwScOwgC5hI1GlRJS4235Ez2OHYRy0HLnnQlw27xpXCQJgS2FVfZclLss4KuHZHBOw88NI9zw== X-Received: by 2002:a2e:99d7:: with SMTP id l23mr3450625ljj.303.1605678260341; Tue, 17 Nov 2020 21:44:20 -0800 (PST) Received: from guixsd ([178.71.226.25]) by smtp.gmail.com with ESMTPSA id b14sm908356lfp.177.2020.11.17.21.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 21:44:19 -0800 (PST) From: Oleg Pykhalov To: Stephen Scheck Subject: Re: trivial-build-system and which References: Date: Wed, 18 Nov 2020 08:44:15 +0300 In-Reply-To: (Stephen Scheck's message of "Tue, 17 Nov 2020 19:42:33 -0500") Message-ID: <874klnkymo.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x22c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=CPnBTA4c; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -3.81 X-TUID: yVi1vUNhbjWi --=-=-= Content-Type: text/plain Hello, Stephen Scheck writes: > This package definition always fails with #f returned by `(which "bash")` > ... am I missing something? > > (build-system trivial-build-system) > (arguments > `(#:builder > (begin > (use-modules (guix build utils)) > (invoke "make" (string-append "SHELL=" (which "bash")) "...")))) > (native-inputs > `(("bash" ,bash) > ("make" ,gnu-make) Inputs don't add themselves to the PATH environment variable, which is required for invoke in this case. So you want to do something like: (setenv "PATH" (string-append (assoc-ref %build-inputs "bash") "/bin" ":" (getenv "PATH"))) Or you could just invoke in another way: (invoke "make" (string-append "SHELL=" (assoc-ref %build-inputs "bash") "/bin/bash") "...") Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAl+0tK8UHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pze8Q//RCF8kJPGl2xMPrqyiGMlCHV1Bb0q ZupB/LoICVJpf3ljR4Hoo/x37+F+PPikMqy8/kV10OhNY0LSALR8ocP1rWaoSp2N KoXhj8ffLrxhjtWLQ8OyzinumwezZR3mYCLNJJ85iqPTk+bCJcD/0fbZ1l0hJNe/ +UeybvRM6gWC6VH/YdjY3gnSVU1N1mEHmj/B3jt4MfZKuSINW0yYybUEKaPiWAo9 e14vG2bvEJn9Ere4ep03ROnWs+oesK6uad7ZS9WkB7KdvJGChaVhPtt1PC7Sa5aZ 67rPgji822AgAo+FekX6Jk+lneAhiiQLUsxVL9aMux7eTEsMJjOxB4i9cG2H7O8I Yz+wPgCx+RCsp3c+LU+Z82Y4UCkUNrOQ/8jVpkcCABquM5Rbm+5kkpiZH7AkYoyN QEQwphJGxGzqqqMNKQfyqa1Vxjh6bowKk3aIEYpVdtKQiwIKMcn1VdeWGSLsn96Y o6X6IJOwR6H88hhRx8TeYuU6Hig2SsMlinZlVhz0HwHlnBzPulFajnxM1rz2WP+K IUMR6wnIeqlIimAsAI5DZnrfNTIALoiA8ORX4XBtmurYSitw8Z88qW5MrI91Jqv8 3PaS1nb6tcxLvVBUN+dbMb8/07cPUQK/9lyDkhCCbMX6cg3FL1z6TtHcP5ErBwgi QX+Ea+WYYR0eV1o= =HhyP -----END PGP SIGNATURE----- --=-=-=--