From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OJqkGnf+k1/SEAAA0tVLHw (envelope-from ) for ; Sat, 24 Oct 2020 10:14:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iKeHFnf+k199EQAA1q6Kng (envelope-from ) for ; Sat, 24 Oct 2020 10:14:15 +0000 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 2C6EB940223 for ; Sat, 24 Oct 2020 10:14:12 +0000 (UTC) Received: from localhost ([::1]:33400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWGYs-0003y7-CB for larch@yhetil.org; Sat, 24 Oct 2020 06:14:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWGYk-0003xe-W1 for guix-patches@gnu.org; Sat, 24 Oct 2020 06:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWGYk-0006NS-M6 for guix-patches@gnu.org; Sat, 24 Oct 2020 06:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWGYk-0000AE-FL for guix-patches@gnu.org; Sat, 24 Oct 2020 06:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44176] Acknowledgement (gnu: Add bash-ctypes) Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Oct 2020 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44176 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: david larsson Cc: Guix-patches , 44176@debbugs.gnu.org Received: via spool by 44176-submit@debbugs.gnu.org id=B44176.1603534385512 (code B ref 44176); Sat, 24 Oct 2020 10:14:02 +0000 Received: (at 44176) by debbugs.gnu.org; 24 Oct 2020 10:13:05 +0000 Received: from localhost ([127.0.0.1]:32785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWGXo-000089-Pl for submit@debbugs.gnu.org; Sat, 24 Oct 2020 06:13:05 -0400 Received: from mail-m972.mail.163.com ([123.126.97.2]:42676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWGXc-00007P-NY for 44176@debbugs.gnu.org; Sat, 24 Oct 2020 06:13:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=QHUMk 3wUTmVhsNiQdxunjN59nLuSbcpY24ShnJEPHOc=; b=PRhy5jBFY996uOWymyHVa WryuO0qFK6GqdGywkloehuE6xGeHWwA/XVqLWh7s15HEdhprFcDJ5X1UOUqHBOn9 mn3oR2V7WP7utRuSCXuwermkmC4fCiniJ9aruAO4Ij2VqRhGMHy5dEeVDgWOkIRT J82zz0k3/ORqzBbQ6fanwE= Received: from asus-laptop (unknown [27.39.89.5]) by smtp2 (Coremail) with SMTP id GtxpCgD3yXsb_pNflZbJVQ--.34919S2; Sat, 24 Oct 2020 18:12:44 +0800 (CST) References: <86wnzhm7e2.fsf@163.com> <86mu0dm65b.fsf@163.com> <861rhpdk9w.fsf@163.com> <86mu0dc585.fsf@163.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao In-reply-to: Date: Sat, 24 Oct 2020 18:12:43 +0800 Message-ID: <86imb0c4pw.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: GtxpCgD3yXsb_pNflZbJVQ--.34919S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU1xhLDUUUU X-Originating-IP: [27.39.89.5] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiTwXHr1sGWMxEcAABse X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=163.com header.s=s110527 header.b=PRhy5jBF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.01 X-TUID: r6FkKgsPD6Sw --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain The git version lacks configure script, so we have to generate it first. That means we need to add autoconf, automake and libtool to native-inputs. And IIUC Guix's distributing strategy is distribute a release rather than rolling on Git. Do you think it's worth to change to git-fetch? I move bash from inputs to native-inputs because we just need it for test. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl+T/hsVHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRhamVQ0IAL+s68gHXcmBrLDjxgvC4yaqyOmv fpYSR7D04iI6NySztusM/1dHwBWcpc/42UGVk5Sug2L7K7AwEBrpVE8P+Iop22yH bObMRfBdLzjRkAX6UDGsg5GhrRgkK+Rnq014+oqxunqpyPmEOkXhW6umtxV2ifM4 F8GjeDVcckcLPu/Kx8umFPtYO1wr58VcwUon2d24HmdcubGxNSd9W9L8JTxEuATy ncf8ofe3+LYb3ilMDO3nGROhciiemUTSKmobZFmaiYWVeP3p3c0sA/lR0Tq+gQ3z Fn2jU0Od5JBd0j6EpZEAdAPkqGaPNRvfbkaPgdWvO4SU1jDE9ZGuGWEbuRs= =pOJz -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-bash-ctypes.patch Content-Transfer-Encoding: quoted-printable >From 8210f5f95ca4f33dce35ed0c9bb20c8f615ab079 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Fri, 23 Oct 2020 20:47:04 +0800 Subject: [PATCH 1/2] gnu: Add bash-ctypes * gnu/packages/bash.scm(bash-ctypes): New variable. --- gnu/packages/bash.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 47ca625d9a..f7d3cd2892 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -5,6 +5,7 @@ ;;; Copyright =C2=A9 2016, 2017, 2018, 2019 Efraim Flashner ;;; Copyright =C2=A9 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2019 Mathieu Othacehe +;;; Copyright =C2=A9 2020 Zhu Zihao ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,10 +27,14 @@ #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages bootstrap) + #:use-module (gnu packages compression) + #:use-module (gnu packages elf) #:use-module (gnu packages ncurses) #:use-module (gnu packages readline) #:use-module (gnu packages bison) #:use-module (gnu packages linux) + #:use-module (gnu packages libffi) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages guile) #:use-module (guix packages) #:use-module (guix download) @@ -415,3 +420,31 @@ framework for Bash. It provides a simple way to verif= y that the UNIX programs you write behave as expected. Bats is most useful when testing software w= ritten in Bash, but you can use it to test any UNIX program.") (license expat))) + +(define-public bash-ctypes + (package + (name "bash-ctypes") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/taviso/ctypes.sh/releases/d= ownload/v" + version "/ctypes-sh-" version ".tar.gz")) + (sha256 + (base32 "0s1sifqzqmr0dnciv06yqrpzgj11d7n0gy5zaxh6b3x8bx7k75l8")))) + (build-system gnu-build-system) + (inputs + `(("elfutils" ,elfutils) + ("libelf" ,libelf) + ("libffi" ,libffi) + ("zlib" ,zlib) + ;; Require a bash with C plugin support to build. + ("bash" ,bash))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://github.com/taviso/ctypes.sh") + (synopsis "FFI for Bash") + (description "Bash-ctypes is a bash plugin that provides a foreign fun= ction +interface directly in your shell. In other words, it allows you to call ro= utines +in shared libraries from within bash.") + (license expat))) --=20 2.28.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-Use-prefix-license-to-import-guix-licenses.patch >From 663104a3945696323d893443a3ab0c96c17e07e3 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Fri, 23 Oct 2020 23:43:05 +0800 Subject: [PATCH 2/2] gnu: Use prefix "license:" to import (guix licenses) * gnu/packages/bash.scm (bash, bash-completion, bash-tap, bats, bash-ctypes)[license]: Rename with prefix "license:". --- gnu/packages/bash.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index f7d3cd2892..59f6e7fc69 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -23,7 +23,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages bash) - #:use-module (guix licenses) + #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages bootstrap) @@ -215,7 +215,7 @@ from the Korn Shell and the C Shell and new improvements of its own. It allows command-line editing, unlimited command history, shell functions and aliases, and job control while still allowing most sh scripts to be run without modification.") - (license gpl3+) + (license license:gpl3+) (home-page "https://www.gnu.org/software/bash/")))) (define-public bash-minimal @@ -325,7 +325,7 @@ without modification.") "This package provides extensions that allow Bash to provide adapted completion for many common commands.") (home-page "https://github.com/scop/bash-completion") - (license gpl2+))) + (license license:gpl2+))) (define-public bash-tap (package @@ -369,7 +369,7 @@ test library") for Bash shell scripts and functions. Along with the Test::More-style testing helpers it provides helper functions for mocking commands and in-process output capturing.") - (license expat))) + (license license:expat))) (define-public bats (package @@ -419,7 +419,7 @@ capturing.") framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected. Bats is most useful when testing software written in Bash, but you can use it to test any UNIX program.") - (license expat))) + (license license:expat))) (define-public bash-ctypes (package @@ -447,4 +447,4 @@ in Bash, but you can use it to test any UNIX program.") (description "Bash-ctypes is a bash plugin that provides a foreign function interface directly in your shell. In other words, it allows you to call routines in shared libraries from within bash.") - (license expat))) + (license license:expat))) -- 2.28.0 --=-=-= Content-Type: text/plain david larsson writes: > On 2020-10-23 15:49, Zhu Zihao wrote: >> Push another commit to fix import conflict of name "zlib" > > Thanks for adding this package! > > Though, if you'd rather add a git-fetch version of it, which I think is > generally preferred over a url-fetch of a tarball so you can more easily > inherit the package and just update the commit, you could perhaps edit from this > old version: > > https://gitlab.com/methuselah-0/bash-coding-utils.sh/-/blob/master/guix-channel/bash-coding-utils.scm#L81 > > Best regards, > David -- Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao --=-=-=--