From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CKUvI2NezmLrKgAAbAwnHQ (envelope-from ) for ; Wed, 13 Jul 2022 07:55:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WLAkI2NezmKmGAAA9RJhRA (envelope-from ) for ; Wed, 13 Jul 2022 07:55:47 +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 2CA299565 for ; Wed, 13 Jul 2022 07:55:47 +0200 (CEST) Received: from localhost ([::1]:40906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBVLd-0003Qz-Vk for larch@yhetil.org; Wed, 13 Jul 2022 01:55:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBVLb-0003Qq-FI for gwl-devel@gnu.org; Wed, 13 Jul 2022 01:55:43 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:12583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBVLY-0006Om-JL for gwl-devel@gnu.org; Wed, 13 Jul 2022 01:55:43 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4LjRg30hpmz1DPhg; Wed, 13 Jul 2022 07:55:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4LjRg30hpmz1DPhg DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1657691727; bh=ssKTH51eoa0y1+ITY1/PG8LdCAMtJ8/tbYsaGb/RepI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=jH8yoMPNJHL0sXPS1nx8ergkKpfL+kkRh5lAAj7sRmJLPMOzSY4j7wQ4l+qc/poEb WIsMyUiBARVO0lqqZIkGm7mfi8k815dtJRj1dYLKi11V3Fx3HzuZMZOkvaiw/yJM1z YGAZckETB2mYeqiMYL8lWcTvmhF0AcRICXfipwjw= Message-ID: <64aee98d3027f4b59d8f2edd4cdbefb3d3f4f7af.camel@ist.tugraz.at> Subject: Re: GWL bash-minimal masks input bash From: Liliana Marie Prikler To: Ricardo Wurmus Cc: gwl-devel@gnu.org Date: Wed, 13 Jul 2022 07:55:22 +0200 In-Reply-To: <878royxi5n.fsf@elephly.net> References: <878royxi5n.fsf@elephly.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 Received-SPF: none client-ip=129.27.2.202; envelope-from=liliana.prikler@ist.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: gwl-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+larch=yhetil.org@gnu.org Sender: "gwl-devel" 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=1657691747; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ssKTH51eoa0y1+ITY1/PG8LdCAMtJ8/tbYsaGb/RepI=; b=jIw1zVsMKiic0UhBKSz9a959/NgLCGr+nV04L/0HpqILZddn6bHnN2wdMbj2mtTF8zlfC8 B0HB3OToPq/mgUdHZ0eD2by0aodqKMEnNnGtl9OzXlYMIguVdezyzh78sYORNvjqoobm0s GS3Agcg0LxmC9Ovyqbet2GX5rvThLHFVc3z3k9XLH28IVNi8kzwolttHVf1xPozKdjve+W 3vCLANdB28I09T5WTgSY+586qRa5M4nFzfRVvywNBbUNFbU77oFCAaQBSbCFeDZj1LVAWC bKfFArpmYUOaBuysJqfhxSZ+jwnBvJR1jrCGykbIzuKYpzFRjcKMSKHGuE286w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657691747; a=rsa-sha256; cv=none; b=lLKb5/1RvLTQ9auOEjbnexCVVRDws2dSozDGKgR9ANUmZXE76A5IVj/IeeJdMEZeqpkanp SRK7iD6MWMJyYZaiPwCFk+WV4MEn00oEMJgOas9bW3FGIElke2auBRh/5sAhE4/ovPtmzh IGb23iNygxeeGbQYCZJeio2UgBpP1sL/aLViMUCSKQ9kIhd78guvhjHtZ96UBeM9HxkYG5 i/l30zyx6wOmSnKXcNgsR1AYmLSZmM9tmzuiUgOScpgA/MVHVFyE4Yxpn0MnGYeog8tNrS Lo0lmZnBTIiKfwMkQew6Czi/RmiVwKKvz6ZFkjH0NxM9+oswjIix8loQjq0sAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=jH8yoMPN; dmarc=pass (policy=none) header.from=tugraz.at; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=jH8yoMPN; dmarc=pass (policy=none) header.from=tugraz.at; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2CA299565 X-Spam-Score: -8.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: bQAKpHgVnYZA Am Dienstag, dem 12.07.2022 um 21:05 +0200 schrieb Ricardo Wurmus: > > Hi Liliana, > > > I have a scientific workflow that depends on a bash script using an > > extension.  (I wish I did not.)  Said script is the least common > > denominator working on all systems that have some basic utilities, > > and needs therefore not consider the reproducibility of its inputs > > (it is assumed, that those are up to date).  However, at least on > > my personal machine I want to ensure the reproducibility of the > > entire workflow, including the invocation of said script. > > > > I wrote a GWL workflow that calls the script, but due to the > > extension the script actually fails in the GWL context.  This is > > because GWL's process->script unconditionally conses bash-minimal > > to the process inputs.  It should probably check whether a bash > > input already exists or alternatively just append (list (bash- > > minimal)) instead. > > Would appending bash-minimal really help?  Does it really give > preference to your bash when resolving conflicts as it builds the > profile? Why should it not? > Not sure how we should check for the presence of a package providing > a shell.  We can check for certain packages by name, of course, but > it doesn’t feel right to me. I'm fairly certain this lookup uses PATH or an equivalent implementation in Guile (search-input-file springs to mind, which also uses inputs in the order given). > Any other ideas how to accommodate the need to swap out the package > providing a shell? You could check for the presence of bash in inputs before adding it, but that'd be more error-prone. Alternatively the implicit vs. explicit problem also exists in gnu-build-system, so that solution could be adapted as well. Cheers