From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 UD1vDYnMW2OwZAEAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 14:35:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WHwKDYnMW2NOtgAAauVa8A (envelope-from ) for ; Fri, 28 Oct 2022 14:35:21 +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 5CC98F205 for ; Fri, 28 Oct 2022 14:35:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooOZl-0001UJ-Qc; Fri, 28 Oct 2022 08:35:05 -0400 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 1ooOUt-0005ND-Ed for guix-patches@gnu.org; Fri, 28 Oct 2022 08:30:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooOUs-0003kw-Vi for guix-patches@gnu.org; Fri, 28 Oct 2022 08:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooOUr-0005z0-QU for guix-patches@gnu.org; Fri, 28 Oct 2022 08:30:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58834] [PATCH 1/3] gnu: gzip: Fix script interpreters when cross-compiling. References: <871qqs6sz7.fsf@cbaines.net> In-Reply-To: <871qqs6sz7.fsf@cbaines.net> Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Oct 2022 12:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58834 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58834@debbugs.gnu.org Received: via spool by 58834-submit@debbugs.gnu.org id=B58834.166696018022931 (code B ref 58834); Fri, 28 Oct 2022 12:30:01 +0000 Received: (at 58834) by debbugs.gnu.org; 28 Oct 2022 12:29:40 +0000 Received: from localhost ([127.0.0.1]:60571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooOUV-0005xl-SE for submit@debbugs.gnu.org; Fri, 28 Oct 2022 08:29:40 -0400 Received: from mira.cbaines.net ([212.71.252.8]:41642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooOUU-0005xX-Rr for 58834@debbugs.gnu.org; Fri, 28 Oct 2022 08:29:39 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id ECCD327BBE9 for <58834@debbugs.gnu.org>; Fri, 28 Oct 2022 13:29:36 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 99887388 for <58834@debbugs.gnu.org>; Fri, 28 Oct 2022 12:29:36 +0000 (UTC) From: Christopher Baines Date: Fri, 28 Oct 2022 13:29:34 +0100 Message-Id: <20221028122936.3717-1-mail@cbaines.net> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666960520; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=LULMb57zNkvc7DY5TZCJ6hIyMOdWo5VK6O6Wn6D0EUo=; b=tLs9cIlV6jrDdGhnbL+r4iiy4rcF11Us7zTjd739sYEcPnEBsjpYpyQGnoBWXfxn9B92J1 tlUx7aVXzmsvmGaVRI0rEedBdzh2avUiushLEg/xQtddqA+/XTJZVITruFRhEu43PPly7B drVZ/C9fyjRSL1hnIvpH5qB41UNXZU6QCUxHGHUe0wlbbHmY5nJHlUjRxhWLuTDBkbHtqN ERm7HuqAq4w6jjEcRoipYNOHlVqmGdEqKUuwmpuAF89qUwsqdjyYepccdP7kGZQDtMukyj yUYZEb92mu1uh8mEiXHVorHd3vGXsTjchXzH3pb6FOOjDY+qhKwcM5p5zOV4Hg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666960520; a=rsa-sha256; cv=none; b=NpX1SjyRZjN1c7WWtLzQVk9UrQA7NrLXvKmGgzjyRvg2gHwHYi3zPYeAoTS3SNGPB88vB1 stA72TLBUKsTRO6vLJ7poKxWNJg6GzwbRtgM6Kj7k4Dzfaeedrty+AEdtzutEm6pyBHuhg dGpiKdIppdAGXIl1WRoNVvHYYHoVI+wyqabUpKg0TuezTBk01jozabsSRkJoTUXY6qPadv +dRJaBRfmn/1oeRvOuMXRGxltMqBIhHC2fb4F1Ewv9ZYhEL+ENfG1BIy/foYijYkWls3yJ oTw+N6ywVLRjq8cKiNvNoEqPv3ZGagcJPx8fTksjLshDX5NXfR5wuo2DlSt6iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 5CC98F205 X-Spam-Score: -1.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: dOP3p4sD4MA+ Add bash-minimal as an input fixes the interpreters for various scripts (like zcat and zless) when cross-compiling. * gnu/packages/compression.scm (gzip)[inputs]: Add bash-minimal when cross compiling. --- gnu/packages/compression.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index f2bf5c443c..b3a678480d 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -70,6 +70,7 @@ (define-module (gnu packages compression) #:use-module (gnu packages autotools) #:use-module (gnu packages backup) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages benchmark) #:use-module (gnu packages boost) #:use-module (gnu packages check) @@ -281,6 +282,10 @@ (define-public gzip (string-append "exec " (assoc-ref outputs "out") "/bin/gzip"))) #t))))) + (inputs + `(,@(if (%current-target-system) + `(("bash" ,bash-minimal)) + '()))) (description "GNU Gzip provides data compression and decompression utilities; the typical extension is \".gz\". Unlike the \"zip\" format, it compresses a single -- 2.37.3