Message ID | 123d8bbbda215439ea79e7b94c6b3e7b425ffcbe.1731999203.git.janneke@gnu.org |
---|---|
State | New |
Headers | show
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9152427BBEC; Tue, 19 Nov 2024 07:01:51 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 50FFC27BBE9 for <patchwork@mira.cbaines.net>; Tue, 19 Nov 2024 07:01:51 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1tDICg-0008Mo-Ju; Tue, 19 Nov 2024 01:59:14 -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 <Debian-debbugs@debbugs.gnu.org>) id 1tDICe-0008LF-LV for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:12 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tDICe-0004JY-Bj for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=O2paMw05P4xg8gLY+nDmUoHYGnjWMhlOcVokJPZ7WCA=; b=aQnzHT+VKmBSg+H959kHcrxQesJ+hkgonFw8ozUqWx7UzANQe6AmQM6pfhu8Plle9RFWpHI5h5u8nwjNI7OSnKeD3ULlpf4OoeCdsefzfW08aKD9pOIOFVAepyigmkFDYUwDzbK9mNJZSb4C93fjiE54qexYdhaVn9lNRpP0n8GZtIVN1ZubkBfWvkgueY6yVX298XUKaCMul50h65Bq9Q2qvVQjyf6OyJeHTR9/tTUHM33Q/pWvWKsbL2XXtVnuTuxUmzQRB8pVUMIQ3lwW/T/SIzGSo2/sfTF/MBDoxhC9IcSQ+b17UxRsUwi41K4ICWSgVVr3YdyKVbY4d+3v7A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tDICe-0005Gm-5B for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:12 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v3 13/51] gnu: bash: Avoid hang when cross-built for the Hurd. Resent-From: Janneke Nieuwenhuizen <janneke@gnu.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Nov 2024 06:59:12 +0000 Resent-Message-ID: <handler.74290.B74290.173199950619769@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74290 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74290@debbugs.gnu.org Received: via spool by 74290-submit@debbugs.gnu.org id=B74290.173199950619769 (code B ref 74290); Tue, 19 Nov 2024 06:59:12 +0000 Received: (at 74290) by debbugs.gnu.org; 19 Nov 2024 06:58:26 +0000 Received: from localhost ([127.0.0.1]:40469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tDIBt-00058a-Li for submit@debbugs.gnu.org; Tue, 19 Nov 2024 01:58:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <janneke@gnu.org>) id 1tDIBl-00056P-BZ for 74290@debbugs.gnu.org; Tue, 19 Nov 2024 01:58:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <janneke@gnu.org>) id 1tDI9a-0003xv-As; Tue, 19 Nov 2024 01:56:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=O2paMw05P4xg8gLY+nDmUoHYGnjWMhlOcVokJPZ7WCA=; b=q/2hchVg6Ykh361KRq3i kBrEZ6WLN2KpoWyZgPtIFUlF78xBmezHb2FQzsbcokkYN5h1gfmgbHeD6cZ2x9Xj3nu6gOXL522IW wP/Q4jbwRjirQtIOWjZqWy9kTQxAHX73uh8Ej39qD9hb6lfGf0P5gTfZB6IPMzgeoyseSQOKrixQQ 4wlCuhHjcQ5zQ8ETVcLAU0862lgcJUzyKizUJhpJrWxaJWgkoKjxHVdM9F6cn/aTCT1jHWgkZx7A/ qmy4mrH9vyFEn1RzAFU40nxTux/BFXvPlw9Hg4chxolp9FidG3CEJf4EbMr7Ckl7KHAK3CsxkKnsP UFDFIhQGJikAhQ==; From: Janneke Nieuwenhuizen <janneke@gnu.org> Date: Tue, 19 Nov 2024 07:54:43 +0100 Message-ID: <123d8bbbda215439ea79e7b94c6b3e7b425ffcbe.1731999203.git.janneke@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <cover.1731999202.git.janneke@gnu.org> References: <cover.1731999202.git.janneke@gnu.org> 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Add support for x86_64-gnu, aka the 64bit Hurd.
|
expand
|
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 56918d79bd..642a405985 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -175,6 +175,20 @@ (define-public bash #:phases (modify-phases %standard-phases + ,@(if (and (target-hurd?) (not (system-hurd?))) + `((add-after 'configure 'create-pipesize.h + ;; The Bash Makefile mentions how PIPESIZE calculation is + ;; "technically wrong" when cross-compiling, and offers no + ;; way to override it. On the 64bit Hurd, it can make + ;; bash hang. + (lambda _ + (with-directory-excursion "builtins" + (with-output-to-file "psize.aux" + (lambda _ (display "dummy to pacify make\n"))) + (with-output-to-file "pipesize.h" + (lambda _ (display "#define PIPESIZE 16384\n"))))))) + '()) + (add-after 'install 'install-sh-symlink (lambda* (#:key outputs #:allow-other-keys) ;; Add a `sh' -> `bash' link.