From patchwork Sun Jan 30 21:15:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hamelink X-Patchwork-Id: 36902 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4DBA827BBEB; Sun, 30 Jan 2022 22:08:04 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BD94927BBE9 for ; Sun, 30 Jan 2022 22:08:02 +0000 (GMT) Received: from localhost ([::1]:35222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEIMb-00018O-Tm for patchwork@mira.cbaines.net; Sun, 30 Jan 2022 17:08:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEHaE-0007zj-Jr for guix-patches@gnu.org; Sun, 30 Jan 2022 16:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEHaE-0007i3-9t for guix-patches@gnu.org; Sun, 30 Jan 2022 16:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEHaD-0002ma-VE for guix-patches@gnu.org; Sun, 30 Jan 2022 16:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53643] [PATCH] Gnu: Elixir: Use previous method for detecting sh Resent-From: John Hamelink Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Jan 2022 21:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53643 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53643@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164357746910671 (code B ref -1); Sun, 30 Jan 2022 21:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Jan 2022 21:17:49 +0000 Received: from localhost ([127.0.0.1]:37829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEHa1-0002m2-CG for submit@debbugs.gnu.org; Sun, 30 Jan 2022 16:17:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:57632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEHZz-0002lv-Qg for submit@debbugs.gnu.org; Sun, 30 Jan 2022 16:17:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEHZz-0007xy-KQ for guix-patches@gnu.org; Sun, 30 Jan 2022 16:17:47 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:33979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEHZx-0007gm-V0 for guix-patches@gnu.org; Sun, 30 Jan 2022 16:17:47 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1BC5932009C3 for ; Sun, 30 Jan 2022 16:17:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 30 Jan 2022 16:17:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnhame.link; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; bh=x jjT1PmgtBKHsmnlp3I2O99pVG0oxVRgLgaqlkfcsbg=; b=lHebdiiIMMQvCs2/c tfUXYTCKF0q6B9vKPJMmd3sM8Hm/wVwmX+B+SqtYTOjP0FOx36pqV1qZ5lVJqIya DZLsBCRhZ8iol00Xd5GZb1pR1XDqq2M9yR/A5atUnOJ92i8M3Dd1dSU3ptAq9kXo 8epZy5C827p1NN/cYwbiYuQ/7M/Wp95B8tTszcZArz8vAeS9uDjk4rxARjmlrs0N 7dYGxlyyHpR2PWy4/l4OJEzZ5h8m6NseNRWtvtO8h39RBjZQyTQOv1kdyCqWRDbF ajZh44zhhQQFmT0M7/w3FvrMIqm/nQwELtJyObsBK4rey3jwimp4XKwupgblywVZ J4a5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=xjjT1PmgtBKHsmnlp3I2O99pVG0oxVRgLgaqlkfcs bg=; b=VyhXpzaEJxhFwqVf+PI+zEWV2ZDmrGv+6VH4+d+qHpy4Ks0kMbHnrr+0g WS/yKWf5KRQU9/3y9MYOkkjfPuQrEAn50ITIpC8gE+uCsiU807gr4Pz5mtTGdLVs lZtr1twpv3+YUHzbi4zVbT/7MBu8E0AV/Z28zkkxSscx4v2EPg19FPakAvvKRR8T rC9NccZXQMfk9hwlfZI7KaaHdsL0XpKevlLRzD/MCZGp2i+SzEu9mRRMLwnM9Xqj G3crD4iLZsUdyk2WhPc5E16i+isI13fL6eT5HIDWd8xTPLs9MRlHVh9o66pC9PqJ 7g3A7iKbo0vyN4QF2BaYyc0RH/+MQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeelgddugeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuffgfkfggtgesghdtreertd ertdenucfhrhhomheplfhohhhnucfjrghmvghlihhnkhcuoehmvgesjhhohhhnhhgrmhgv rdhlihhnkheqnecuggftrfgrthhtvghrnhepleefteevffetfeefgedtheffuddtvdettd dvvdfhhfdvfefgieeggffgtdelheejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepmhgvsehjohhhnhhhrghmvgdrlhhinhhk X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 30 Jan 2022 16:17:42 -0500 (EST) From: John Hamelink Date: Sun, 30 Jan 2022 21:15:17 +0000 User-agent: mu4e 1.6.10; emacs 28.0.50 Message-ID: <878ruwexe3.fsf@johnhame.link> MIME-Version: 1.0 Received-SPF: pass client-ip=64.147.123.24; envelope-from=me@johnhame.link; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 30 Jan 2022 17:07:53 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/elixir.scm (elixir)[arguments]: Keep G-expressions, but use ======================================================================== WHICH instead of SEARCH-INPUT-FILES. Signed-off-by: John Hamelink --- gnu/packages/elixir.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Hi there, While following a tutorial, I found myself struggling to build elixir. After discussing on #guix, and looking on the build server for clues, it seems that the SEARCH-INPUT-FILE change in 3da297997d ("gnu: elixir: Use G-expressions.") was the culprit. Within the G-expression, I reverted to the use of WHICH for the "sh" binary, while leaving the others as they are. I do not understand the differences between these two functions or why SEARCH-INPUT-FILE is preferential, so there may be additional caveats I'm not aware of that SEARCH-INPUT-FILE addresses. Thanks John diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 3fb74a56a5..5df50902ce 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -68,7 +68,7 @@ (define-public elixir (substitute* '("lib/mix/lib/mix/release.ex" "lib/mix/lib/mix/tasks/release.init.ex") (("#!/bin/sh") - (string-append "#!" (search-input-file inputs "sh")))) + (string-append "#!" (which "sh")))) (substitute* "bin/elixir" (("^ERTS_BIN=$") (string-append