From patchwork Thu Mar 26 22:34:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 20901 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 0D5C427BBEA; Thu, 26 Mar 2020 22:35:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 94D6927BBE4 for ; Thu, 26 Mar 2020 22:35:11 +0000 (GMT) Received: from localhost ([::1]:33648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHb5i-0002EU-Vm for patchwork@mira.cbaines.net; Thu, 26 Mar 2020 18:35:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33773) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHb5b-00029w-Nr for guix-patches@gnu.org; Thu, 26 Mar 2020 18:35:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHb5a-0002e9-EV for guix-patches@gnu.org; Thu, 26 Mar 2020 18:35:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHb5a-0002e4-Ao for guix-patches@gnu.org; Thu, 26 Mar 2020 18:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jHb5a-0003ik-6o for guix-patches@gnu.org; Thu, 26 Mar 2020 18:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40246] [PATCH] gnu: Add cramfs-tools. Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Mar 2020 22:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40246 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40246@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158526206014235 (code B ref -1); Thu, 26 Mar 2020 22:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Mar 2020 22:34:20 +0000 Received: from localhost ([127.0.0.1]:60319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHb4t-0003hW-Uw for submit@debbugs.gnu.org; Thu, 26 Mar 2020 18:34:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:35917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHb4s-0003hN-4o for submit@debbugs.gnu.org; Thu, 26 Mar 2020 18:34:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60877) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHb4q-0001MK-SS for guix-patches@gnu.org; Thu, 26 Mar 2020 18:34:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHb4p-00020W-Hl for guix-patches@gnu.org; Thu, 26 Mar 2020 18:34:16 -0400 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]:37716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHb4p-0001zX-CF for guix-patches@gnu.org; Thu, 26 Mar 2020 18:34:15 -0400 Received: by mail-il1-x12e.google.com with SMTP id a6so7001590ilr.4 for ; Thu, 26 Mar 2020 15:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aPy3W0sg1Z419xkKp44Y8zEzI3Hqs/AgOV+PZVs4+5o=; b=AtK1rk8bIcbx5OUlBmZudc+bbAdcrSsHNJWZznDSNNTR2b6cDJlegu2pFllELbk3lX m1wgp1wcvL2+TsjWrf7a0R2vXASHh0xZTg0ytX+3fj2HdfiwpilI8x6xj82qwScHKWNU 8hTsByXZ8EJBAmWhcXso/0my3R3YaUOu+iWJEtHmiaa1ZXxGlOxEjaPcg4AHB6qL0Cr3 Q/qwTxUxAe3Sj0zOE/E7J42spV5qnuORmlIks9Qfj3P0v4wNf+wCnD6edgnMRrAGkuTD H+6/G22NCQ9eZPQkKkwv2xFQks+/xjfgSKngphTa82ZSAxClTH6rhT7bMuhyX800NM7i vA1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aPy3W0sg1Z419xkKp44Y8zEzI3Hqs/AgOV+PZVs4+5o=; b=ZPe3Pt0LXGsmv7moPFY2JGfPwL5ybk5zwXx7/TZguUfDUnf4ZQjEy4On/9v/KGOd65 Ha/OOjXQ8QdoV6mLCNg1Q1pJmt2ZOXfh4n9rZ8f5Zg/l+QKNttytZH1Uf1osMefvsXK8 06p7rmY7SF8VjC7x7AoUhhF4cEier+roLiJ6crLGHmzw5kMG2n9x/3DtgZp+513+Hy9Z /v2+nF9DsNW00cnRc+Eb1LUALpmzJs6BYZzhtt7bC7RizILZrZQ7NGWFDbyuBH0xIqtp DdJGpSi1Ps5wdKGycPcdu/irrH4iVYScuOp8v2E2DEUGP5BTGJ7FJeBue7+VmCw9nMEF Ve/A== X-Gm-Message-State: ANhLgQ2hin6npweQGxar9OhBy/Iu9lT5BPfN/aE9k1UKGImqERSMQMKy Af8pfUtzOzIas1s+inX8Lufthaet7L1wR8lX0hrcdvA1XnQ= X-Google-Smtp-Source: ADFU+vtYfehr9uvJFuO8tLltN4maOBTYzdSeTSQYFNeI3xRgUx1SzPeqy0GYLPzlWFM8IpOTc65g6G2KDqxCa8DtpwI= X-Received: by 2002:a92:3c99:: with SMTP id j25mr10240590ilf.92.1585262054340; Thu, 26 Mar 2020 15:34:14 -0700 (PDT) MIME-Version: 1.0 From: Vincent Legoll Date: Thu, 26 Mar 2020 23:34:03 +0100 Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches This patch adds the updated cramfs-tools suite from Nicolas Pitre. This version has additional features implemented over the 1.1 version still packaged in some other distros, which is unmaintained (available on https://sourceforge.net/projects/cramfs/) It handles uncompressed blocks, random block placement and XiP. Lightly tested, by loop-mounting a tiny (4kB) cramfs in a file, worked fine. From ff79a4b2d798bba222ac502a7aa1f7ef0a97e249 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Thu, 26 Mar 2020 23:12:53 +0100 Subject: [PATCH] gnu: Add cramfs-tools. * gnu/packages/linux.scm (cramfs-tools): New variable. --- gnu/packages/linux.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 8fec3352f3..6ab08e18f4 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4371,6 +4371,40 @@ repair and easy administration.") from the btrfs-progs package. It is meant to be used in initrds.") (license (package-license btrfs-progs)))) +(define-public cramfs-tools + (package + (name "cramfs-tools") + (version "2.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/npitre/cramfs-tools/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "1hqwy3bsj4j7wmhj3hr4l9c1gqrscpgprcsnchxhckq3mpna9dyd")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; No tests. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "mkcramfs" (string-append out "/sbin")) + (install-file "cramfsck" (string-append out "/sbin"))) + #t))))) + (inputs + `(("zlib" ,zlib))) + (home-page "https://github.com/npitre/cramfs-tools") + (synopsis "Tools to manage Cramfs filesystems") + (description "Cramfs is a Linux filesystem designed to be simple, small, +and to compress things well. It is used on a number of embedded systems and +small devices. This version has additional features such as uncompressed +blocks and random block placement.") + (license license:gpl2))) + (define-public compsize (package (name "compsize") -- 2.25.2