From patchwork Thu Sep 14 04:57:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "B. Wilson" X-Patchwork-Id: 53796 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 006CD27BBE9; Thu, 14 Sep 2023 05:58:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no 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 D05CE27BBE2 for ; Thu, 14 Sep 2023 05:58:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgeQQ-0000eE-16; Thu, 14 Sep 2023 00:57:58 -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 1qgeQO-0000dq-M8 for guix-patches@gnu.org; Thu, 14 Sep 2023 00:57:56 -0400 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 ) id 1qgeQO-0007Q9-Dd for guix-patches@gnu.org; Thu, 14 Sep 2023 00:57:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgeQT-0000Nu-WA for guix-patches@gnu.org; Thu, 14 Sep 2023 00:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65931] [PATCH] gnu: Add apple-bash. Resent-From: "B. Wilson" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Sep 2023 04:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65931 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65931@debbugs.gnu.org Cc: "B. Wilson" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16946674771466 (code B ref -1); Thu, 14 Sep 2023 04:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Sep 2023 04:57:57 +0000 Received: from localhost ([127.0.0.1]:36484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgeQO-0000NZ-P1 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 00:57:57 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgeQK-0000NK-5e for submit@debbugs.gnu.org; Thu, 14 Sep 2023 00:57:56 -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 1qgeQ9-0000dJ-6q for guix-patches@gnu.org; Thu, 14 Sep 2023 00:57:41 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgeQ7-0007Jd-11 for guix-patches@gnu.org; Thu, 14 Sep 2023 00:57:40 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1694667457; x=1694674657; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: Subject: Cc: To: To: From: From: Sender: Sender; bh=dxMqgic5yd9pQRjkgbdB1N0pP4a1VulLzddNkNoNumk=; b=KjP6DhlMC7TDXN1y7JQgvayUOh6gLBWnt3hzooOOkTBSjhsRCEQZMsIrdDlt1cArXdcmcKCdHQ2OTfo3H2cXMWw0jcKEFAEZcyBaeXFDZHz7WrG70N7oEFffqF+kpOOapdhFG5Ra3i8q85feij7XPs5/RHxhu2jGf+vIYdQoAOoeJRqIPMQiiuz+Oi2pyrICJq5G8hjZo3KabUNCIr6qZIiJvoAsoJg/DQccQhi04GdE+u7WmclmrsFAJ5JhnStCuzjpfnfvutzYmGB2UNLeW0My6VKVQE/3zxqKtJBjEdbyWuhsnAJLXAIiy5zrcnt00Kf6qWzm+dIOkBIwbBVHmg== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyI5MmEzMyIsImd1aXgtcGF0Y2hlc0BnbnUub3JnIiwiMDg1NDdhIl0= Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by f5d05a988795 with SMTP id 650292c1881ac90ca432f447 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Thu, 14 Sep 2023 04:57:37 GMT Received: from localhost (199.147.145.153.ap.dti.ne.jp [153.145.147.199]) by wilsonb.com (Postfix) with ESMTPSA id 8D211A0571; Thu, 14 Sep 2023 04:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1694667455; bh=dxMqgic5yd9pQRjkgbdB1N0pP4a1VulLzddNkNoNumk=; h=From:To:Cc:Subject:Date:From; b=mjKWgVSnDw9tax1He7g40rG9jxguKPXeW/XpTn6G5VuP/cN0rooZyiI+9Gs0DAWBD c73T4D3F0mJUWeyjCpxjWmwaB8UE7bNpkylMHKomHN7glJA0caHdr3hbXFyUo3DYxc chKB8L8xanpvXKwxrz+cMeSXT81XcL2q11a8QqnfrRyT5w5kDgmdTPFWCaV0egiKWA uqe7ThH24Y/M6kLeQM+do2K1DMr1lIbfY/ivKNYLYH2hAPflPKHnBWNAsQog8Fe8qI FDHQCdOcrzLmOo6EXoTfRX74a4xJsw4WyoEWMlUHaEoDgTXJeJwjusDOM4U9cvAlce Ek5FdGm5kJPSj7/uydhLmXQsH1GoL+WDmvwd+v5L4ggEnc4HJE/SjmwZ/byEyxr0qF xm4gSTK6Zja+yheoMCKRQX3awNwiCs0OeWoe8xuzlU5Qz9db8SLylQ21KDoAsAtpCP e7rjwlYGPIvA2kQa4LKm2HQ04gnXPCDalYFXS+hpYpflfgTeTeg1kyIAfJo7vmRvV+ d/9Y0eyC2zPV+LPIhYQZNMO9sYPcEbJrrA/XtFhGEO8JqyLqeGREPToMWN+jNabSgb uOcPuu07XoomX8kADJUCaw1e+HnwXFhje67Rfr+g+Jv4d7Dc11zDPOTBF6/3scDXMo f80v1NHEGT2rpsjeiWx0B1fc= Date: Thu, 14 Sep 2023 13:57:19 +0900 Message-ID: <20230914045732.1010-1-elaexuotee@wilsonb.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+686de0.08547a-guix-patches=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Reply-to: "B. Wilson" X-ACL-Warn: , "B. Wilson via Guix-patches" X-Patchwork-Original-From: "B. Wilson via Guix-patches" via From: "B. Wilson" 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 * gnu/packages/apple.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODELS): Add it. --- gnu/local.mk | 2 ++ gnu/packages/apple.scm | 57 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 gnu/packages/apple.scm diff --git a/gnu/local.mk b/gnu/local.mk index 924d497057..fcce8b39b4 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -59,6 +59,7 @@ # Copyright © 2023 Zheng Junjie <873216071@qq.com> # Copyright © 2023 Ivana Drazovic # Copyright © 2023 Andy Tai +# Copyright © 2023 B. Wilson # # This file is part of GNU Guix. # @@ -126,6 +127,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/anthy.scm \ %D%/packages/antivirus.scm \ %D%/packages/apl.scm \ + %D%/packages/apple.scm \ %D%/packages/apparmor.scm \ %D%/packages/apr.scm \ %D%/packages/arcan.scm \ diff --git a/gnu/packages/apple.scm b/gnu/packages/apple.scm new file mode 100644 index 0000000000..6b181a1fdc --- /dev/null +++ b/gnu/packages/apple.scm @@ -0,0 +1,57 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 B. Wilson +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages apple) + #:use-module (gnu packages bison) + #:use-module (guix build-system gnu) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public apple-bash + (package + (name "apple-bash") + (version "125") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apple-oss-distributions/bash.git") + (commit (string-append "bash-" version)))) + (sha256 + (base32 "1d4s1z57yiyhgb6i22kb9al31j1fv9a4rp1bb747ny6grdvc4919")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (native-inputs (list bison)) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'configure 'pre-configure + (lambda _ + ;; An XCode project wraps the actual bash source. + (chdir "bash-3.2") + ;; The xlocale.h header was removed in glibc 2.26. + (substitute* "lib/glob/smatch.c" + (("xlocale.h") "locale.h")) + ;; EBADEXEC is XNU-specific. + (substitute* "execute_cmd.c" + (("EBADEXEC") "ENOEXEC"))))))) + (home-page "https://github.com/apple-oss-distributions/bash/") + (synopsis "Bash used on Apple MacOS systems") + (description "This is the version of Bash released on Apple MacOS systems") + (license license:gpl3+)))