From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iNTPKEHlQmKPmAAAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 12:53:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0GPdJUHlQmKvDQEAauVa8A (envelope-from ) for ; Tue, 29 Mar 2022 12:53:53 +0200 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 547A95A81 for ; Tue, 29 Mar 2022 12:53:53 +0200 (CEST) Received: from localhost ([::1]:34790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZ9U0-0003p3-0I for larch@yhetil.org; Tue, 29 Mar 2022 06:53:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ9KU-0002iJ-9R for guix-patches@gnu.org; Tue, 29 Mar 2022 06:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZ9KT-0002B3-VL for guix-patches@gnu.org; Tue, 29 Mar 2022 06:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZ9KT-0001FL-S4 for guix-patches@gnu.org; Tue, 29 Mar 2022 06:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54615] [PATCH v3 1/2] gnu: spike: Substitute path to dtc instead of wrapping executables. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Mar 2022 10:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , Arun Isaac , 54615@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 54615-submit@debbugs.gnu.org id=B54615.16485505954721 (code B ref 54615); Tue, 29 Mar 2022 10:44:01 +0000 Received: (at 54615) by debbugs.gnu.org; 29 Mar 2022 10:43:15 +0000 Received: from localhost ([127.0.0.1]:59984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ9Jj-0001E4-EU for submit@debbugs.gnu.org; Tue, 29 Mar 2022 06:43:15 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ9Jh-0001Dq-2n for 54615@debbugs.gnu.org; Tue, 29 Mar 2022 06:43:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uIi+LWDnrFq95RfDevzgWUB/4kcXt4FxjNOKCQ/WcBk=; b=MPuXcpoMweog1qnygyYUQX6RLi K+jKFfnZ2rq3gW7BxeHvSs/X1DEASUHSzkdJb2TSfAAK3+PhTh/Z4YXKn/jCr6Y1od4HijaJLFW5a C/LSPBPd2PN++cBUwP0ti0FOiIFvoaq0tM1JtmYE9J5a84I/A4HTJx+rV9s90cHYKo5RjNbmsnQ/D 5ocD9FWOMzA0m63gxaZCxGul+WE1jad+xj7yHT4bP9NBkVYwFv3TtBVKoy6efLqwj61YMhlqTC1p6 7Q8MFtqausojI047NkxOxkjqvzBJl5LTWCZtmkhe+8ht3JWdZ+l1svOxeRPMXLZ+yMRCJzW5UEaAU BRQnKtWg==; Received: from [192.168.2.1] (port=6060 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nZ9JZ-000Ql6-9C; Tue, 29 Mar 2022 16:13:05 +0530 From: Arun Isaac Date: Tue, 29 Mar 2022 16:13:02 +0530 Message-Id: <20220329104303.31212-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.34.0 In-Reply-To: <73d7e30a2341d85c58abcf293d41aaa970ba17bd.camel@telenet.be> References: <73d7e30a2341d85c58abcf293d41aaa970ba17bd.camel@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648551233; 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: content-transfer-encoding:content-transfer-encoding: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=uIi+LWDnrFq95RfDevzgWUB/4kcXt4FxjNOKCQ/WcBk=; b=dLig6oD6xtzLzkPfek57yif16E41cLRVxrBvPiHDPA7y4YjfZkGGOZETUpuXp424mYvAkR /RXBRSKUrJtj7ptLrggMUXRFHKD9gv2AUgfxc2LS8ZgIDGVcQdtTkA6O1cHsPIOE4OQu4e yypAcfG7HpmD/BvNb8quIOO6OMEAFoXjf3EMeC0Mq2wZi6neaR1g2sTQxdj7H4LU+jMINm seO49k7S8JlcNEG4pT56JU1V5vmn05ib6qMyRNUtqTH+QpoxTQFBbnp8Ok1NNYJmh3o6Dw JWhSXdyAWbNfMw1gLCEDLcfWJjhbkaQROKxSm+wJ3gxHOTWlPk0EJ65pldNnyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648551233; a=rsa-sha256; cv=none; b=GalATfJhCGwUXWo1ToKytYmndDv5rZAaupLzuEjzYwr9HfLoOKkWG1bbrymmweSxHdDSLO 8YnZsOP9Vu8gjaMNZTB6JwgdIyE0pF1scWDH+eFe9GaVrgbhAs9Y301wIWrvD3xux2hHd6 y8AQHF9UrEiZFw6asTDM+XGOxQb7H/PnCIg2uRW9SapcCnp2y1DvaFasSI9GqrExwdP2sR i2nvQEUxL18mEGWteAdC1+cpC5RyyLdFQN2/cMYoiZLWXoL41u2mmJCrA6ygHfLby9HDC+ blmVTLNOUGuT/EEkhVZj66kGOXD4veyIalsCcLKT3mHC+22uhgrvN9H9RmSBdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=MPuXcpoM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=MPuXcpoM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 547A95A81 X-Spam-Score: 6.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: exyGLYHYr75I * gnu/packages/virtualization.scm (spike)[arguments]: Delete the wrap-binary phase. Add a configure-dtc-path phase that substitutes the absolute path to dtc. --- gnu/packages/virtualization.scm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index bd297977df..4c0f02154c 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2021 Raghav Gururajan ;;; Copyright © 2022 Oleg Pykhalov ;;; Copyright © 2022 Ekaitz Zarraga +;;; Copyright © 2022 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -1037,15 +1038,12 @@ (define-public spike (list #:phases #~(modify-phases %standard-phases - (add-after 'install 'wrap-binary - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (for-each - (lambda (file) - (wrap-program file - `("PATH" ":" prefix - (,(dirname (search-input-file inputs "/bin/dtc")))))) - (find-files (string-append out "/bin"))))))))) + (add-before 'configure 'configure-dtc-path + (lambda* (#:key inputs #:allow-other-keys) + ;; Reference dtc by its absolute store path. + (substitute* "riscv/dts.cc" + (("DTC") + (string-append "\"" (search-input-file inputs "/bin/dtc") "\"")))))))) (inputs (list bash-minimal dtc)) (native-inputs -- 2.34.0