From patchwork Wed Nov 23 03:27:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 44776 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 9A7C027BBE9; Wed, 23 Nov 2022 03:28:31 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 DF2EB27BBEC for ; Wed, 23 Nov 2022 03:28:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxgQk-0001Cq-99; Tue, 22 Nov 2022 22:28:10 -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 1oxgQg-0001Bo-Tz for guix-patches@gnu.org; Tue, 22 Nov 2022 22:28:06 -0500 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 1oxgQd-0002uc-0d for guix-patches@gnu.org; Tue, 22 Nov 2022 22:28:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxgQc-0008EK-S0 for guix-patches@gnu.org; Tue, 22 Nov 2022 22:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59500] [PATCH 2/3] gnu: Add cl-tar-file. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Nov 2022 03:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59500 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59500@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 59500-submit@debbugs.gnu.org id=B59500.166917404231566 (code B ref 59500); Wed, 23 Nov 2022 03:28:02 +0000 Received: (at 59500) by debbugs.gnu.org; 23 Nov 2022 03:27:22 +0000 Received: from localhost ([127.0.0.1]:53058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxgPy-0008D4-0z for submit@debbugs.gnu.org; Tue, 22 Nov 2022 22:27:22 -0500 Received: from mail-40136.proton.ch ([185.70.40.136]:34795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxgPt-0008Cg-Bl for 59500@debbugs.gnu.org; Tue, 22 Nov 2022 22:27:20 -0500 Date: Wed, 23 Nov 2022 03:27:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail3; t=1669174031; x=1669433231; bh=wDdnEuX1Z0EmkIUMmenhEJR7j9hfmnbv5gjCg8gHx8s=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=CJ4K9XvaJjSW1WUiJ8vod2T9QB2FBsqCNIiwCxkGgX+JC/laLOoA46QYXQ2LiAm3l rNv/rLGIUBmISkRDNB5REpymCpNGsoC+odYS58IXjQ+hKu2DSBIbQ3B4cJF9GfJZVK +QKtNJHhZlbdaSDwGPhGri37LircJwDa3I7ypNb6F/T36bCjC8p+gktDcT4u/AxFpd LZ5EDTCoT2ctzN1rZrSRTt42QAH0I2l0Lcc9rAmGRS3qoWXgiYCcjmSyta7lidsMtt 1YlIg4wQzD0jpcakbjllMqssI4hVnr1iYZex5hd6IGEX22Ym6WkTlHVw1FD8i+LjPp QxUHDEiAKkRug== From: "Paul A. Patience" Message-ID: <20221123032653.106845-2-paul@apatience.com> In-Reply-To: <20221123032653.106845-1-paul@apatience.com> References: <20221123032653.106845-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 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: , 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/lisp-xyz.scm (sbcl-tar-file, cl-tar-file, ecl-tar-file): New variables. --- gnu/packages/lisp-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) -- 2.38.0 diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 9f0c473d4f..1e9b7260e9 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -9334,6 +9334,55 @@ (define-public cl-archive (define-public ecl-archive (sbcl-package->ecl-package sbcl-archive)) +(define-public sbcl-tar-file + (let ((commit "0c10bc82f14702c97a26dc25ce075b5d3a2347d1") + (revision "0")) + (package + (name "sbcl-tar-file") + (version (git-version "0.2.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.common-lisp.net/cl-tar/cl-tar-file") + (commit commit))) + (file-name (git-file-name "cl-tar-file" version)) + (sha256 + (base32 "0i8j05fkgdqy4c4pqj0c68sh4s3klpx9kc5wp73qwzrl3xqd2svy")))) + (build-system asdf-build-system/sbcl) + (native-inputs + (list sbcl-parachute)) + (inputs + (list sbcl-40ants-doc + sbcl-alexandria + sbcl-babel + sbcl-chipz + sbcl-flexi-streams + sbcl-salza2 + sbcl-trivial-gray-streams)) + (home-page "https://gitlab.common-lisp.net/cl-tar/cl-tar-file") + (synopsis "Read and write physical entries to and from tar files") + (description + "@code{cl-tar-file} is a Common Lisp library that allows reading from +and writing to various tar archive formats. Currently supported are the POSIX +ustar, PAX (ustar with a few new entry types), GNU, and v7 (very old) formats. + +This library is rather low level and is focused exclusively on reading and +writing physical tar file entries using streams. Therefore, it contains no +functionality for automatically building archives from a set of files on the +filesystem or writing the contents of a file to the filesystem. Additionally, +there are no smarts that read multiple physical entries and combine them into +a single logical entry (e.g., with PAX extended headers or GNU long link/path +name support). For a higher-level library that reads and writes logical +entries, and also includes filesystem integration, see @code{cl-tar}.") + (license license:bsd-3)))) + +(define-public cl-tar-file + (sbcl-package->cl-source-package sbcl-tar-file)) + +(define-public ecl-tar-file + (sbcl-package->ecl-package sbcl-tar-file)) + (define-public sbcl-misc-extensions (let ((commit "101c05112bf2f1e1bbf527396822d2f50ca6327a") (revision "1"))