From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uK21B03swWMZVQEAbAwnHQ (envelope-from ) for ; Sat, 14 Jan 2023 00:42:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GOapB03swWN/GAAA9RJhRA (envelope-from ) for ; Sat, 14 Jan 2023 00:42:05 +0100 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 B80333EF25 for ; Sat, 14 Jan 2023 00:42:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGTg2-00024E-9s; Fri, 13 Jan 2023 18:41:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGTg0-000244-Hj for guix-devel@gnu.org; Fri, 13 Jan 2023 18:41:36 -0500 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGTfy-0003nq-OB for guix-devel@gnu.org; Fri, 13 Jan 2023 18:41:36 -0500 Received: by mail-qk1-x734.google.com with SMTP id k2so11609183qkk.7 for ; Fri, 13 Jan 2023 15:41:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=n3KUIEeD1eLkB9XG3xwKX97Bdc90pgAqqlBSxXcD/PU=; b=goSL4dpRtrfs9JiCOStfGV12q/UUhB+Hsh+g22HAYXOwV2GWXMrpz0zsZJTxn+w8Eh 3SSQpcjzvnZzWHfbOg2nuu2jUNAyN9n+MNf7rmbvmTqaKhAZlgKZAHmmkEc6v/0MAp1k bQwWE2umEyn8Z3r6oomhPqbXZPtFptdi1fVE4l/iPzr8WakMPu3RPZ8tySEn/+QimYCM 2hxktXyyMkv5sFcvCO+UKrT+FdRe1v8JqQQWwn1mPcaRrVhDBfzVhGgqU4LJ3LPNH+aa vDUkgcgkFYEFgRIsGGfiatJTebbCOplCpIno3FWBSTEjHxapJdtERFwvNCYlEHZ4x4lu n/wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=n3KUIEeD1eLkB9XG3xwKX97Bdc90pgAqqlBSxXcD/PU=; b=pNMrFD+7pQNxm2aF+ebLRvfnDgkLPlg5CQOPCmKFs8KZm02iiJcFpZjOR/TF6mqJNO 4SeyWWrFTAMtFN9YnVuvIl2hbEHca0jjCosI/YZz2puOs9CazxpIC5wTwHkxV3cPQA3d EcIgz6xSKGqJuo2iO7kCeD/EmPUOCPLq/i+taqRWem3jViNDkhRfHG4bjBnfphNBlv/z HMlyKOAZKEO6ujixC7Yaw91cmc4xEYWsSCyOuWOqa88saEGC7195wOIJcFR6ML9m0JU2 IZptxncpgOFguBjRtpZjxFSpZLeoDe61RWXvTzd52QW3puQtpKIUHGNyAPFQmHLHCxj0 tpgQ== X-Gm-Message-State: AFqh2ko3BYRdMx6k0tthjqFtwLPrnYBqvPhB1lOWJIvvRnsMMdMsHi7S Ix3NCE8wrMrjBJWp8Y9GMhBPc34H3A4937LE2T2v3EkW X-Google-Smtp-Source: AMrXdXuKAEPy7POoMxwQ7IOmFHmhM8reNULIBHNWbzAAuQdDdH5tClAVziSR427UsPKfHd/etMgmOUslMyZl7sEjgVs= X-Received: by 2002:a05:620a:4f:b0:6fc:a988:bb93 with SMTP id t15-20020a05620a004f00b006fca988bb93mr4699421qkt.628.1673653293231; Fri, 13 Jan 2023 15:41:33 -0800 (PST) MIME-Version: 1.0 From: Andy Tai Date: Fri, 13 Jan 2023 15:40:57 -0800 Message-ID: Subject: /bin/sh in package definitions To: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=lichengtai@gmail.com; helo=mail-qk1-x734.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.092, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673653325; a=rsa-sha256; cv=none; b=RZeq2p35NqW59maXv7ABHkeuQVVfoSsLCFGoq1kpMAUkl1RGCKVaelmwdwBJKH8Du0C1fV RN6kYjh2SmUSgRCOcGm1bVV9f2b5QTrkWNH5WS+W0bDe1hAVb/nTtKeFifHgTNo2KX2JEN z+jy+DjTmTRlVMxpI+7EMz/mMdgR4/pd0bWEqCnFiwMNNuqhDDJQcqejZwoGTgyoxe0DR3 g2s+oq8mp9p7uGryLPaSDxT7nAxOHHY2PFmbHuEQMgp0xvnAzb86ZDv1Zm2u8VlUcOsJ22 odACMDNGqYs13VUCdyTTyF0BxLxPSrY5Zg5gJMN6IHHqxRPKqFlvp8AEHhQ/Bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=atai-org.20210112.gappssmtp.com header.s=20210112 header.b=goSL4dpR; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673653325; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=n3KUIEeD1eLkB9XG3xwKX97Bdc90pgAqqlBSxXcD/PU=; b=qqlCUEIUM055JYAmIgKxWSrbdSrfpCTB3TABC08oAy+EZkiqJJKA3cC2X4AWokKvOcDNWO Q7NlnO3k5jKw/jJIJ+2DcNm4EdESKm0S/yyF95D0MdAweaD1k7w4PTeVP7CUSzuk6VQ12W dXtXZN/ztjMDZVIDHgCfzCy4BZ+iU3oNkb54FuRqs/Dpc08z04fjt2av+ya4IZ22nM7N+N NTEvixbQkc9NxmTGVsZn6hQLSYVxhvYLdhhjxs6cc40pb3MxKKmh2bgzk9s2jgrBxdJ1XN iD62vviYOmkCrfgd83ZwZTdsFQ4xoLerrfWstF54iaMSoXGmVY5YdMac4e86HA== X-Migadu-Spam-Score: -4.08 X-Spam-Score: -4.08 X-Migadu-Queue-Id: B80333EF25 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=atai-org.20210112.gappssmtp.com header.s=20210112 header.b=goSL4dpR; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: g9R8xFQqHu12 Hi, currently package definitions often need to patch references to /bin/sh as common in package sources or makefiles to make it refer to the actual bash shell used in Guix in /gnu/store/... somewhere. question 1: is there a way, to simulate /bin/sh using container or some such set up so the actual shell used by Guix can appear as /bin/sh in the package build process? (sorry if this is a wild question) question 2: (if question 1 is not possible) in guile, how to replace only occurrences of /bin/sh, not substring "/bin/sh" in some strings like /usr/bin/shsomethingsomethng, in the "patch" stage of package building?