From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id RlwKL6geU2BIZQAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 09:34:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SKyGKqgeU2DjYAAAbx9fmQ (envelope-from ) for ; Thu, 18 Mar 2021 09:34:32 +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 242A414217 for ; Thu, 18 Mar 2021 10:34:32 +0100 (CET) Received: from localhost ([::1]:53110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMp30-0003I7-Ki for larch@yhetil.org; Thu, 18 Mar 2021 05:34:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMoze-0007Lk-DK for bug-guix@gnu.org; Thu, 18 Mar 2021 05:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMozd-0003Dz-SE for bug-guix@gnu.org; Thu, 18 Mar 2021 05:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMozd-0003nl-Oe for bug-guix@gnu.org; Thu, 18 Mar 2021 05:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47221: Guile not in native-inputs when it should Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 18 Mar 2021 09:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47221 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 47221-submit@debbugs.gnu.org id=B47221.161605981314549 (code B ref 47221); Thu, 18 Mar 2021 09:31:01 +0000 Received: (at 47221) by debbugs.gnu.org; 18 Mar 2021 09:30:13 +0000 Received: from localhost ([127.0.0.1]:45053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMoyq-0003ma-R8 for submit@debbugs.gnu.org; Thu, 18 Mar 2021 05:30:13 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:42594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMoyo-0003mN-Uj for 47221@debbugs.gnu.org; Thu, 18 Mar 2021 05:30:12 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by michel.telenet-ops.be with bizsmtp id hlW82400J0mfAB406lW8rf; Thu, 18 Mar 2021 10:30:09 +0100 Message-ID: From: Maxime Devos Date: Thu, 18 Mar 2021 10:29:59 +0100 In-Reply-To: References: <87y2ewyv7o.fsf@ngyro.com> <20210309193925.15447-1-samplet@ngyro.com> <7a04ca46ee7f332e6a31cecbdf9ad4b4133a86f3.camel@telenet.be> <87zgz1y030.fsf_-_@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-a9ZC5lE1sXWJwki7Zssi" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1616059809; bh=S4PD5EZIvDUtNH30PLTbA9xL9G9lbl+Ku5DThiI3AMM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=GHNmnEYRt04L3rhgZ/BiyxYQelTxfYoAhz/wH75Gm8yVveQWscDC/ueKZ9fbgSGf3 k9z0EyO3I4u3WUqfebpEt70RBZj78rZtp3zboKtBLBLsbSaji7eLW13LelcjoXRAER otnkA9Vjpte0Yk2oVULzEzeQDFZ8Tlg1OwVQNirf3zn5gxDY4Kdn+uvcH+TJvPHOjV c3ihp7tkgRZ3Iv1eXnSR5aQsxWJR1Wa9RbhSVaqZnjA2K2AZVPrWaUwQBPW/CcVof5 820wLcvbwtl2hoNXjC+fG0bIhDoMMSEVSlP/kib97He3Oae0oUj0UM1lUu8vi6kVGQ ooZ0RX1HO43hQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47221@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616060072; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=S4PD5EZIvDUtNH30PLTbA9xL9G9lbl+Ku5DThiI3AMM=; b=bPD7m8cnKHEBXenwZ7Hgw2yc9Ga7ceo2ePOY2t0l5Nlf7yPS/VcpQLSWuzHOZXMgxImEZn X0EO85rXqi/waC1zW/Y7Zx5eLrc0ANr4LZFOemyT1nHQKdtx4eC6EAKA+08+QFr48TOaNN md1TDt26/n/D3FXboWNt6u1+382HdA8Th5rFWsRnkV3wiW95PgnVAxFG4RxWKdyN6lk215 tsM8WdoV2U7lac0sMH6RHOu3DiEZU+ikNnQoYMtAt7V+aV72/4ES2cfMqG6fKVorV3ewAK PXOuB21q0lUf+xaur9Kydhq+e66h8g924CHpvrwqd7spTAdWBUXUoWgqflvuuA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616060072; a=rsa-sha256; cv=none; b=nhi7zXpIFI4BY2wuw32NeWzV+q9qYUePecvtVTZfUkwubjeqUG5FfLh4v4IHfQUp2Dm0BO wv6YbjP3rs6lM50mAT3mRL/C07tZGG+JZ1KfQrhSTzbCphOJtrcKCXhPCBdLneMojZGhDh iHkUK4etFVRxM6hLELBRvzYIS6pdKcg87Wd+Oh6IDJlta6r/e8/IPNKid3ldnR/b1T+RDM wl1rYtuTiaAMkTpKjfUPXOZC6+7C3LiCpTP57A9Xyea9opTGnlm6BRUPmRs5Y4n2wKFlLL KjWqtu03obIqjyUm7iOE6WPSgLbmutryMhMrjxLyrweAU4OyhEH1QQoybv3kBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=GHNmnEYR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=GHNmnEYR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 242A414217 X-Spam-Score: -3.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: EQXFOsQvS/0O --=-a9ZC5lE1sXWJwki7Zssi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2021-03-17 at 22:58 +0100, Maxime Devos wrote: > [...] > Some suspicious things: > * [...] > * clipmenu & others use "wrap-script" to define wrapper scripts > (in this case "guile" does not have to be in native-inputs). > The "wrap-script" procedure from (guix build utils) uses the > "which" procedure to determine where guile is located ... > but this is incorrect when cross-compiling! Demonstration (host system: x86-64-linux with a childhurd running, without = qemu binfmt), using the "bats" package (the "bats" package is choosen because it doesn't = have many dependencies and it uses wrap-script). ("bats" actually uses wrap-script c= orrectly, so first remove the following line ":" (assoc-ref %build-inputs "guile") "/bin= " from the package definition to simulate a misbehaving package) ./pre-inst-env guix build --system=3Di586-gnu --target=3Dx86-64-linux bats --> tcl fails to build with plenty of failing test cases ^ TODO submit a bug report, for now try without tests ./pre-inst-env guix build --system=3Di586-gnu --target=3Dx86-64-linux bats = --without-tests=3Dtcl ^ TODO this hangs the childhurd (something about paging?) ./pre-inst-env guix build --target=3Daarch64-linux bats (warning: this takes some time building the cross-compiler) --> install.sh: line 15: /gnu/store/...-coreutils-8.32/bin/install: cannot = execute binary file: Exec format error After adding "coreutils" to the native-inputs: ./pre-inst-env guix build --target=3Daarch64-linux bats (success! --> some /gnu/store/something path $STORE_ITEM) Let's look at $STORE_ITEM/bin/bats: (start snip) #!#f --no-auto-compile #!#; Guix wrapper #\-(begin (let ((current (getenv "PATH"))) (setenv "PATH" (if current (stri= ng-append "/gnu/store/qrj2w7a8ms7rkyvqhnrv8wrvqnbwv9bm-bash- 5.0.16/bin:/gnu/store/n8awazyldv9hbzb7pjcw76hiifmvrpvd-coreutils-8.32/bin:/= gnu/store/3xi5vprn92r0jcb03lk9ykind5pi789j-grep-3.4/bin:/path- not-set" ":" current) "/gnu/store/qrj2w7a8ms7rkyvqhnrv8wrvqnbwv9bm-bash-5.0= .16/bin:/gnu/store/n8awazyldv9hbzb7pjcw76hiifmvrpvd-coreutils- 8.32/bin:/gnu/store/3xi5vprn92r0jcb03lk9ykind5pi789j-grep-3.4/bin:/path-not= -set")))) #\-(let ((cl (command-line))) (apply execl "/gnu/store/qrj2w7a8ms7rkyvqhnrv= 8wrvqnbwv9bm-bash-5.0.16/bin/bash" (car cl) (cons (car cl) (append (quote ("")) cl)))) #!/gnu/store/qrj2w7a8ms7rkyvqhnrv8wrvqnbwv9bm-bash-5.0.16/bin/bash set -e BATS_READLINK=3D'true' [...] (end snip) I was worried for a moment that the inputs in "inputs" would contribute to $PATH even when cross-compiling, but this turns out not to be the case. However, I believe "wrap-script" should raise some kind of exception instead of trying to use "#f" as interpreter. -- Btw., "wrap-program" also uses "which" (but for finding the shell), but fixing that would entail a world-rebuild as "wrap-program" doesn't have a keyword argument > Greetings, > Maxime --=-a9ZC5lE1sXWJwki7Zssi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYFMdmBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kOiAP92XH51udUvXGF9KDMzyI7/dkaq 44I9spmKT0sq1mQ5XQEAzuJ+fa/ivVNmJY67j76x+QhzC+v1OYIUgvnJ1Yz0DgA= =HWeS -----END PGP SIGNATURE----- --=-a9ZC5lE1sXWJwki7Zssi--