From patchwork Mon Nov 12 17:22:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leo Famulari X-Patchwork-Id: 193 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 94494167F8; Mon, 12 Nov 2018 17:39:30 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id 623E2167F6 for ; Mon, 12 Nov 2018 17:39:29 +0000 (GMT) Received: from localhost ([::1]:49947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMGBM-00076H-AO for patchwork@mira.cbaines.net; Mon, 12 Nov 2018 12:39:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMFwT-0008Qk-E8 for guix-patches@gnu.org; Mon, 12 Nov 2018 12:24:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMFwQ-0008TY-9d for guix-patches@gnu.org; Mon, 12 Nov 2018 12:24:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMFwQ-0008TL-2o for guix-patches@gnu.org; Mon, 12 Nov 2018 12:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gMFwP-00030x-V8 for guix-patches@gnu.org; Mon, 12 Nov 2018 12:24:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33355] [PATCH] gnu: Add apfs-fuse. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Nov 2018 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33355 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33355@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154204338811520 (code B ref -1); Mon, 12 Nov 2018 17:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Nov 2018 17:23:08 +0000 Received: from localhost ([127.0.0.1]:48293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMFvX-0002zk-Mq for submit@debbugs.gnu.org; Mon, 12 Nov 2018 12:23:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMFvW-0002yp-Rq for submit@debbugs.gnu.org; Mon, 12 Nov 2018 12:23:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMFvQ-0007mb-NS for submit@debbugs.gnu.org; Mon, 12 Nov 2018 12:23:01 -0500 Received: from lists.gnu.org ([2001:4830:134:3::11]:54419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMFvQ-0007mJ-IC for submit@debbugs.gnu.org; Mon, 12 Nov 2018 12:23:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMFvP-0007cp-CW for guix-patches@gnu.org; Mon, 12 Nov 2018 12:23:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMFvM-0007j8-8A for guix-patches@gnu.org; Mon, 12 Nov 2018 12:22:59 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34147) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMFvM-0007iz-2j for guix-patches@gnu.org; Mon, 12 Nov 2018 12:22:56 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7A29022169; Mon, 12 Nov 2018 12:22:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 12 Nov 2018 12:22:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=/urXKhueTYQNfbrPKo12C9Z UqoSpGLyjhqfOC7J7nnE=; b=FEIyNf2xIF82/rxLDz7JYs25iIKHBNsPqyuqSj0 PUi54q4fFQwmJgFW8Gh5S+zwWJhImrscnkO9OAUbemtapNM/ZT43cLSLb21sOSLb EjAoiPKROdZ32MdaSP8nfhNkcSoHSyHs4dkLmmY5Ibxe5ZGdlr5OhY9hmlCm943n 4H2s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=/urXKh ueTYQNfbrPKo12C9ZUqoSpGLyjhqfOC7J7nnE=; b=UwuZEcJNZGI9j7MpO/MmVS MPz/VuGG7N03Rdm6PYcH8DnIk1XdlrxZjaXXDYUi+XOu4Vb7X2FaL1v1rpVnj2qR Xh4xUzRPdRLCgKmYvJ2/1fbI0CMyKLowUm3uBHnUPlhmLLxROt11LpqwPlCZrM8P TlNHykHov9/ImPhn48wUKuyU0Gu0vnk66D9sbS4T1MA9I7d1S20CWedUIpPliZXV E1LINpTfEmeoPssw3kiWzysCNY29DgvRSXI6D7cc9hgLk9Hfy5mkFmf+sghav6fx qMiE45HtkVSAjA/oDuf1rnxhTiVoTgI18QT3CSed8ZeL5AU563xuKIS5Z7ESZktw == X-ME-Sender: X-ME-Proxy: Received: from jasmine.lan (pool-71-105-200-72.nycmny.fios.verizon.net [71.105.200.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 183A4102F1 for ; Mon, 12 Nov 2018 12:22:55 -0500 (EST) From: Leo Famulari Date: Mon, 12 Nov 2018 12:22:49 -0500 Message-Id: <8476480843b3008eefec00ec40903fda58a0c57c.1542043368.git.leo@famulari.name> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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 * gnu/packages/file-systems.scm (apfs-fuse): New variable. --- gnu/packages/file-systems.scm | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index f250719bb..9483cf9a0 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice ;;; Copyright © 2017 Gábor Boskovits ;;; Copyright © 2017, 2018 Ricardo Wurmus +;;; Copyright © 2018 Leo Famulari ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +24,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix utils) #:use-module (gnu packages) @@ -245,3 +247,50 @@ All of this is accomplished without a centralized metadata server.") (description "This is a file system client based on the FTP File Transfer Protocol.") (license license:gpl2+))) + +(define-public apfs-fuse + (let ((commit "c7036a3030d128bcecefc1eabc47c039ccfdcec9") + (revision "0")) + (package + (name "apfs-fuse") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sgan81/apfs-fuse") + (recursive? #t) ; for lzfse + (commit commit))) + (sha256 + (base32 + "1akd4cx1f9cyq6sfk9ybv4chhjwjlnqi8ic4z5ajnd5x0g76nz3r")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No test suite + #:phases + (modify-phases %standard-phases + ;; No 'install' target in CMakeLists.txt + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (lib (string-append out "/lib")) + (doc (string-append out "/share/doc/" + (string-append ,name "-" ,version)))) + (install-file "apfs-dump" bin) + (install-file "apfs-dump-quick" bin) + (install-file "apfs-fuse" bin) + (install-file "libapfs.a" lib) + (install-file "../source/LICENSE" doc) + #t)))))) + (inputs + `(("bzip2" ,bzip2) + ("fuse" ,fuse) + ("zlib" ,zlib))) + (synopsis "Read-only FUSE driver for the APFS filesystem") + (description "Apfs-fuse is a read-only FUSE driver for the Apple File +System (@dfn{APFS}). It is currently in an experimental state — it may not be +able to read all files, and it does not support all the compression methods in +APFS.") + (home-page "https://github.com/sgan81/apfs-fuse") + (license license:gpl2+))))