unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41149] [PATCH] Add cachefilesd
@ 2020-05-09 13:19 Jean-Baptiste Note
  2020-05-10  7:53 ` bug#41149: " Mathieu Othacehe
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Baptiste Note @ 2020-05-09 13:19 UTC (permalink / raw)
  To: 41149


[-- Attachment #1.1: Type: text/plain, Size: 562 bytes --]


Dear guix maintainers,

Please find attached a patch to add a package for the cachefilesd
daemon, mostly used for read caching of NFS data. I've put in into
linux.scm as it's tightly coupled to the fscache linux module and is
being developed on git.kernel.org.

There's a lint warning for Software Heritage; however i've followed the
convention of using snapshot tarballs from kernel.org (we could also
directly go through git, but this seems less common).

A service will follow as soon as I understand how to correctly write
one.

Kind regards,
Jean-Baptiste

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-cachefilesd.patch --]
[-- Type: text/x-patch, Size: 2455 bytes --]

From 82a2807bd06abf88e8d01272e72635df9a077132 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Note <jean-baptiste.note@m4x.org>
Date: Fri, 8 May 2020 20:26:02 +0000
Subject: [PATCH] gnu: Add cachefilesd.

* gnu/packages/linux.scm (cachefilesd): New public variable.
---
 gnu/packages/linux.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2d31444ea6..418b868698 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -6802,3 +6802,38 @@ utilities.  Using @code{kexec}, it is possible to boot directly into a new
 kernel from the context of an already-running kernel, bypassing the normal
 system boot process.")
     (license license:gpl2)))
+
+(define-public cachefilesd
+  (package
+    (name "cachefilesd")
+    (version "0.10.10")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells"
+                    "/cachefilesd.git/snapshot/cachefilesd-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "0g40ljjnn3wzh9gp6il21c95f977298qrrkrxfnwfl3k3asfmnbi"))))
+    (build-system gnu-build-system)
+    (outputs '("out"))
+    (arguments
+     `(#:tests? #f ; there are no tests
+       ; we emulate PREFIX with available variables
+       #:make-flags (let ((pfxdir (lambda (var dir)
+                                    (string-append var "=" %output "/" dir))))
+                      (list "CC=gcc"
+                            (pfxdir "SBINDIR" "sbin/")
+                            (pfxdir "ETCDIR" "etc/")
+                            (pfxdir "MANDIR" "share/man/")))
+       #:phases (modify-phases %standard-phases (delete 'configure))))
+    (home-page "https://people.redhat.com/~dhowells/cachefs/")
+    (synopsis "Backend daemon for the linux fscache")
+    (description "cachefilesd is a userspace daemon that implements the only
+cache backend currently available for FS-Cache, the linux caching system for
+network filesystems (such as NFS).  It does the real work of caching by using
+files in a directory nominated by the administrator to store the data given to
+it.  The contents of the cache, which should be stored locally, are persistent
+over reboots.")
+    (license license:gpl2+)))
-- 
2.26.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#41149: [PATCH] Add cachefilesd
  2020-05-09 13:19 [bug#41149] [PATCH] Add cachefilesd Jean-Baptiste Note
@ 2020-05-10  7:53 ` Mathieu Othacehe
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2020-05-10  7:53 UTC (permalink / raw)
  To: Jean-Baptiste Note; +Cc: 41149-done


Hello Jean-Baptiste,

Thanks for this patch! I fixed cross-compilation, adapted the synopsis
and description fields and pushed.

We will be happy to help write the associated service :)

Mathieu




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-10  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 13:19 [bug#41149] [PATCH] Add cachefilesd Jean-Baptiste Note
2020-05-10  7:53 ` bug#41149: " Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).