From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6NkzNxvxVGGhNwAAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 01:04:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8EAKMxvxVGH9KQAA1q6Kng (envelope-from ) for ; Wed, 29 Sep 2021 23:04:59 +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 5E9FA141E4 for ; Thu, 30 Sep 2021 01:04:59 +0200 (CEST) Received: from localhost ([::1]:50892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVhzn-0003hw-6P for larch@yhetil.org; Wed, 29 Sep 2021 18:24:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVhwx-0007CU-AZ for guix-patches@gnu.org; Wed, 29 Sep 2021 18:21:15 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVhww-0002FP-RA for guix-patches@gnu.org; Wed, 29 Sep 2021 18:21:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVhww-0000mF-N3 for guix-patches@gnu.org; Wed, 29 Sep 2021 18:21:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50905] [PATCH 37/38] build/qt-utils: Allow overriding the shell interpreter used. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Sep 2021 22:21:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50905 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50905@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 50905-submit@debbugs.gnu.org id=B50905.16329540362676 (code B ref 50905); Wed, 29 Sep 2021 22:21:14 +0000 Received: (at 50905) by debbugs.gnu.org; 29 Sep 2021 22:20:36 +0000 Received: from localhost ([127.0.0.1]:50711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVhwJ-0000h0-PR for submit@debbugs.gnu.org; Wed, 29 Sep 2021 18:20:36 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:36272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVhvk-0000ZR-GG for 50905@debbugs.gnu.org; Wed, 29 Sep 2021 18:20:06 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id zyKh2500E0mfAB401yL0Sb; Thu, 30 Sep 2021 00:20:00 +0200 From: Maxime Devos Date: Thu, 30 Sep 2021 00:19:37 +0200 Message-Id: <20210929221938.17168-37-maximedevos@telenet.be> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210929221938.17168-1-maximedevos@telenet.be> References: <20210929221938.17168-1-maximedevos@telenet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1632954000; bh=v8dpSt+yBNsMIXNs2uxccAIAWbz/Ch1xmzKzziL1T9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=s9ntng9iMEpfEUML5ij+zcfk5IVBk1uqG8rfc0oilNGiWGIQzyD58g1zE088d8sSv unB8SmgTVxOra1MIpMc+vMciJjNw3sbztx8kD3ohc4HD+HhX0EO/dQBhrRscEnfK1Y WUCWFiT5pp0rgXNrEqNXy2Lrl/fSEvr+N9VQzJU7jZqYwdxr+d9IVlwQDIGF689VTH Da666SolVjqS8GgcIdCOWum3Zxe9rN1kZru54hpVrQt652SDKmfhBOXIgp172h2Ak1 TBfhWnpf1qPvyQ7yWCGoi0QMf83AKOF9PDVFkaWl+UahQ8lgDwLQBE7SxJOhnhQJmu CL9Pqh+cf7HIg== 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632956699; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=v8dpSt+yBNsMIXNs2uxccAIAWbz/Ch1xmzKzziL1T9E=; b=GzDTDBaUV+7Dgn7uUFMnzFfl8htXDVJWReovmYWXSFY8dWcdvq5AMhrsxaKNDYgR9Q1rZ+ OHiLIMix7Jyb2ewqRX674oCMwpFQ2V3dT6mKyN8EG83pqONu+cRR1ZXblq0oNJGCIHeirI MWH3e44z9GneX5lnsRnjZgu0HR1iBSyZwWHsU6OC9bQslfGPAWD5ovT4UDAh3fwpB3KfQ7 lo+GOtQ7S6+IB9ifnHBTNKJHqBLJ4Q3gHJRk4WLrPuplSNcuiWuoCz4psAVlZsJeEuS2XG y/uinqBOCd3G/XidWG/S6/yjH4Ir/N6EjPVhzAxrozVXqR9OQWnOeal4jn+4zg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632956699; a=rsa-sha256; cv=none; b=piQFK9qDnT2VP/pfFqxw6/bgKY2XFXzbIjwNsrh/B2hyA/CK2X2Za0JmvFkd0mXgXVZJ1+ UEm8Jm0ptYLsY4sVBHZBVJQaRxOd+OK20UQ1JhTxEH3IDrHunIM3ZPB6gJI81+a4+h6PtY kAkPYkFM2mWuDOnD5WFk2SoLEUT7oehKUPgPZ13tIdsjRazfj83FkCmGzSCtMdVJZP7UvB l7QMsgWWIWrGdCg9ZyFGoRk9idilOXi35gdreADY/VDdKWxWTmEY7pLRlAyWBiNXkHWV3U hyjqP7YWkLrFFOlwXsl922HIu42StNbF6IJIZqdsWOn1gXQ+eyyqNXI7BnEGHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=s9ntng9i; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=s9ntng9i; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5E9FA141E4 X-Spam-Score: 3.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: nPcLia85uGry * guix/build/qt-utils.scm (wrap-qt-program*): Add #:sh argument and pass it to 'wrap-program'. (wrap-qt-program): Likewise, but pass it to 'wrap-qt-program*' instead. (wrap-all-qt-programs): Likewise, but pass it to 'wrap-qt-program' instead. --- guix/build/qt-utils.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/guix/build/qt-utils.scm b/guix/build/qt-utils.scm index c2b80cab7d..97145a116d 100644 --- a/guix/build/qt-utils.scm +++ b/guix/build/qt-utils.scm @@ -90,7 +90,7 @@ '("QTWEBENGINEPROCESS_PATH" = regular "/lib/qt5/libexec/QtWebEngineProcess")))) -(define* (wrap-qt-program* program #:key inputs output-dir +(define* (wrap-qt-program* program #:key sh inputs output-dir qt-wrap-excluded-inputs) (define input-directories @@ -105,9 +105,9 @@ (cons output-dir input-directories) output-dir))) (when (not (null? vars-to-wrap)) - (apply wrap-program program vars-to-wrap)))) + (apply wrap-program program #:sh sh vars-to-wrap)))) -(define* (wrap-qt-program program-name #:key inputs output +(define* (wrap-qt-program program-name #:key (sh (which "bash")) inputs output (qt-wrap-excluded-inputs %qt-wrap-excluded-inputs)) "Wrap the specified programm (which must reside in the OUTPUT's \"/bin\" directory) with suitably set environment variables. @@ -115,10 +115,11 @@ directory) with suitably set environment variables. This is like qt-build-systems's phase \"qt-wrap\", but only the named program is wrapped." (wrap-qt-program* (string-append output "/bin/" program-name) + #:sh sh #:output-dir output #:inputs inputs #:qt-wrap-excluded-inputs qt-wrap-excluded-inputs)) -(define* (wrap-all-qt-programs #:key inputs outputs +(define* (wrap-all-qt-programs #:key (sh (which "bash")) inputs outputs (qt-wrap-excluded-outputs '()) (qt-wrap-excluded-inputs %qt-wrap-excluded-inputs) #:allow-other-keys) @@ -144,6 +145,7 @@ add a dependency of that output on Qt." ((output . output-dir) (unless (member output qt-wrap-excluded-outputs) (for-each (cut wrap-qt-program* <> + #:sh sh #:output-dir output-dir #:inputs inputs #:qt-wrap-excluded-inputs qt-wrap-excluded-inputs) (find-files-to-wrap output-dir)))))) -- 2.33.0